Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some weird start log messages on AArch64 #829

Open
honggyukim opened this issue Jul 9, 2019 · 0 comments
Open

Some weird start log messages on AArch64 #829

honggyukim opened this issue Jul 9, 2019 · 0 comments
Labels

Comments

@honggyukim
Copy link
Collaborator

honggyukim commented Jul 9, 2019

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:

  1. prog is failed in check_binary even though it's compiled with -pg.
  2. I'm curious why it's not exited if check_binary is failed.
  3. 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)
    ...
@honggyukim honggyukim added the arch label Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant