[LLVMbugs] [Bug 5747] New: oprofile support not working

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Dec 10 02:06:09 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5747

           Summary: oprofile support not working
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


LLVM compiled with oprofile was crashing, I fixed that in r91046, however
oprofile is still not working correctly.

I tried it on a simple code:
int main() { while(1) {}}

Compile that to bc with clang -O0 -g -emit-llvm -c, and run with lli
$ lli --debug-only=oprofile-jit-event-listener x.bc
Connected to OProfile agent.
Mapping 0x7f5c24449010 to x.c:1
Mapping 0x7f5c24449018 to x.c:1

Everything seems fine there, however oprofile can't process the samples:
$ sudo opreport
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files

$ sudo less /var/lib/oprofile/samples/oprofiled.log

oprofiled started Thu Dec 10 11:58:36 2009
kernel pointer size: 8
Start opjitconv was triggered
Read buffer of 1746 entries.
CPU_SWITCH to 3
CPU_SWITCH to 1
CPU_SWITCH to 0
CPU_SWITCH to 1
CPU_SWITCH to 2
CPU_SWITCH to 3
...
start time/end time is 1260439116/1260439129
opjitconv: Ending with rc = 2. This code is usually OK, but can be useful for
debugging purposes.
JIT dump processing complete.
JIT dump processing complete.
Start opjitconv was triggered
Read bustart time/end time is 1260439116/1260439139
opjitconv: Ending with rc = 2. This code is usually OK, but can be useful for
debugging purposes.
JIT dump processing complete.
buffer of 1167 entries.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list