LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gmon.out: No such file or directory (https://www.linuxquestions.org/questions/linux-software-2/gmon-out-no-such-file-or-directory-4175512462/)

zerop 07-27-2014 09:52 PM

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


notKlaatu 07-27-2014 11:14 PM

I think maybe some line breaks got lost while posting.

Also, there is no question here.

zerop 07-28-2014 05:07 AM

question is how to gprofile module


All times are GMT -5. The time now is 07:32 AM.