Re: Wrong Perf Backtraces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Sounds Good. Thanks for the help!

On 2020-03-27 17:55, Milian Wolff wrote:

On Freitag, 27. März 2020 13:58:33 CET ahmadkhorrami wrote:

Thanks Milian. So if I am right, I should do the following:
1) Run "perf buildid-list" and catch all the <file path, build-ids>
2) First check for the existence of the file path.
3) If failed, concatenate "~/.debug", file path, "/" and buildid and use
it as the alternative.

you missed the trailing "/elf" but otherwise yes :)

I thought that GDB is smart enough to detect these situations in the
same way that it detects debug info files.
Should I check any directory other than ~/.debug?

Hmm good point, GDB should indeed do that by default but maybe it doesn't do
it for the `file` command for some reason? I cannot answer this, sorry.


On 2020-03-27 16:40, Milian Wolff wrote: On Freitag, 27. März 2020 12:04:20 CET ahmadkhorrami wrote: I do the following:
If this line is in the perf script backtrace:
7f21ffe256db g_main_context_iteration+0x2b
I run the following command:
gdb -batch -ex 'file
-ex 'disass g_main_context_iteration'.
You can try to parse the output of `perf buildid-list` to get a mapping
can be used to run this on another person's machine. E.g.

$ perf buildid-list
5837b1e7495db791f9a3a56fb6ca29958da75b0c [kernel.kallsyms]
f6ca5853dae87d9f0503a9ef230f6d1fa15a832d /usr/lib/
92883b06055e8e21ded8eb0cd5a61f5704531152 [vdso]
8b04d1825b63d9a600e3d57ac71058935e7ad757 /usr/lib/
09639b80a8fad179004f2484608764d2b336dd4a /usr/lib/
33d1f350f13728651d74dd2a56bad1e4e4648f5e /usr/lib/
$ file
f6ca5853dae87d9f0503a9ef230f6d1fa15a832d/elf: ELF 64-bit LSB shared
x86-64, version 1 (SYSV), statically linked,
BuildID[sha1]=f6ca5853dae87d9f0503a9ef230f6d1fa15a832d, not stripped

I'm afraid to say that I currently don't have the time required to be
of more
help in debugging this issue in general.

Good luck!

[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux