You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that we have a few more problems on various arch environments. I got the following starting log messages while running on AArch64 and prog is compiled with -pg -fno-omit-frame-pointer.
$ aarch64-linux-nm ./prog | grep mcount
U _mcount@@GLIBC_2.18
The problems are as follows:
prog is failed in check_binary even though it's compiled with -pg.
I'm curious why it's not exited if check_binary is failed.
perf event check is failed with Function not implemented message.
uftrace: checking binary ./prog
uftrace: /usr/src/debug/uftrace/1.0-r0/git/cmds/record.c:1626:check_binary
ERROR: Can't find 'mcount' symbol in the './prog'.
It seems not to be compiled with -pg or -finstrument-functions flag
which generates traceable code. Please check your binary file.
uftrace: checking binary ./prog
uftrace: skipping perf event due to error: Function not implemented
uftrace: creating 1 thread(s) for recording
uftrace: start writer thread 0
uftrace: using /usr/lib64/libmcount.so library for tracing
mcount: initializing mcount library
mcount: mcount setup done
uftrace: MSG SESSION: 1057: ./prog (14f7e88373ba5b66)
mcount: new session started: 14f7e88373ba5b66: prog
mcount: preparing shmem buffers: tid = 1057
uftrace: MSG START: /uftrace-14f7e88373ba5b66-1057-000
uftrace: MSG TASK_START : 1057/1057
mcount: <0> enter 556c5c6cac
mcount: tr->flags: 0, filter mode, count: [0] 0/0
mcount: <1> enter 556c6073e4
mcount: tr->flags: 0, filter mode, count: [0] 0/0
mcount: <2> enter 556c6072f8
mcount: tr->flags: 0, filter mode, count: [0] 0/0
mcount: <3> exit 556c6072f8
mcount: task 1057 recorded 64 bytes (record count = 4)
mcount: rstack[0] ENTRY 556c5c6cac
mcount: rstack[1] ENTRY 556c6073e4
mcount: rstack[2] ENTRY 556c6072f8
mcount: rstack[2] EXIT 556c6072f8
mcount: <2> exit 556c6073e4
mcount: task 1057 recorded 16 bytes (record count = 1)
...
The text was updated successfully, but these errors were encountered:
It seems that we have a few more problems on various arch environments. I got the following starting log messages while running on AArch64 and
prog
is compiled with-pg -fno-omit-frame-pointer
.The problems are as follows:
prog
is failed incheck_binary
even though it's compiled with-pg
.check_binary
is failed.Function not implemented
message.The text was updated successfully, but these errors were encountered: