Issue metadata
Sign in to add a comment
|
perf in host SDK segfaults |
||||||||||||||||||||||
Issue descriptionRunning `perf record <command>` in the host chroot results in perf segfaulting. Possibly due to perf being built against kernel 4.14 headers and my workstation being on a 4.18 kernel?
,
Jan 11
I tested a caroline running 4.19 and perf record works on that device, so I don't think this is just a kernel version issue.
,
Jan 13
It looks like this broke with the most recent change to the perf ebuild: 9fd67b584922 perf: Depend on llvm-libunwind instead of libunwind If I revert that change, unmerge llvm-libunwind and emerge perf, then perf record works again. I don't know enough about libunwind to say why this is broken
,
Jan 15
afaik, the two libs are supposed to be compatible bounce to Luis for triage
,
Jan 15
The issue seems to be somewhere in perf build detecting libunwind: With llvm-libunwind: with libunwind: Auto-detecting system features: ... libunwind: [ off ] with libunwind: Auto-detecting system features: ... libunwind: [ on ]
,
Jan 15
Also from build.log when using llvm-libunwind: Makefile.config:445: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR So, seems like some problem in perf's detection of llvm's libunwind.
,
Jan 15
looks like the build really wants the extended unwind lib names:
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
$(call detected,CONFIG_X86_64)
afaik, libunwind-llvm doesn't provide the libunwind-$ARCH libs.
so whoever manages the perf tool now (kernel?) can debug it.
,
Jan 16
(6 days ago)
can we disable the use of unwind in perf? This is a use flag and currently enabled by default. As I understand, that functionality is only used for "-g dwarf". Chatted with Gabriel and CWP does not need that. We have enabled frame-pointer for x86. And for ARM we don't generate stack traces from perf. cjmcdonald@, what are you trying to use perf on? could you use perf outside the chroot as a workaround?
,
Jan 17
(5 days ago)
Tiancong is using perf for a project we have and he may need to modify it. I will assign to him for further analysis. Not using unwind should be a possibility. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by sonnyrao@chromium.org
, Jan 11