LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2014, 09:52 PM   #1
zerop
Member
 
Registered: Jul 2014
Posts: 65

Rep: Reputation: Disabled
Question gmon.out: No such file or directory


wonder@wonder-VirtualBox:~/layer$ ls
built-in.o gprof.output hello.mod.c main.c modules.order tempfile
cli.c hello.c hello.mod.o main.c~ Module.symvers
cli.c~ hello.c~ hello.o Makefile snull.h
core hello.ko main Makefile~ sysdep.h
wonder@wonder-VirtualBox:~/layer$ sudo gprof ./hello.o

gmon.out: No such file or directory

how to gprofile module

Code:
ccflags-y += -pg # enable profiling
obj-m += hello.o

hello.o:
    make -o hello -C /usr/src/linux-headers-3.8.0-29-generic -C /usr/include/i386-linux-gnu/sys M=$(PWD) modules

clean:
    make -C /usr/src/linux-headers-3.8.0-29-generic -C /usr/include/i386-linux-gnu/sys M=$(PWD) clean

Last edited by zerop; 07-28-2014 at 05:08 AM.
 
Old 07-27-2014, 11:14 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
I think maybe some line breaks got lost while posting.

Also, there is no question here.
 
Old 07-28-2014, 05:07 AM   #3
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
question is how to gprofile module
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gprof gmon.out no such file or directory laopi Programming 15 08-11-2011 10:51 AM
gcc -pg, but no gmon.out produced? Some__Guy Programming 6 06-25-2011 10:17 AM
Problem with gprof, no gmon.out file !! taj2000 Linux - Software 2 05-21-2009 09:01 PM
gprof: gmon.out: not in a.out format hemk76 Programming 7 11-06-2005 10:05 AM
gprof: gmon.out file is missing call-graph data hemk76 Programming 0 01-07-2005 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration