mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
perf tools: Add feature detection for gelf_getnote()
That is not present on some libelf implementations, such as the one used in Alpine Linux: libelf-0.8.13. This ends up disabling the SDT code, that relies on this function. One alternative would be to provide an weak fallback implementation or the open coded variant used by the buildid sysfs notes reading code. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: David Ahern <dsahern@gmail.com> Cc: Hemant Kumar <hemant@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-82lh22ybedy9b9lych8xj12g@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
c8a3f7de76
commit
1c1a3a4729
8 changed files with 28 additions and 1 deletions
|
@ -1790,6 +1790,7 @@ void kcore_extract__delete(struct kcore_extract *kce)
|
|||
unlink(kce->extract_filename);
|
||||
}
|
||||
|
||||
#ifdef HAVE_GELF_GETNOTE_SUPPORT
|
||||
/**
|
||||
* populate_sdt_note : Parse raw data and identify SDT note
|
||||
* @elf: elf of the opened file
|
||||
|
@ -2041,6 +2042,7 @@ int sdt_notes__get_count(struct list_head *start)
|
|||
count++;
|
||||
return count;
|
||||
}
|
||||
#endif
|
||||
|
||||
void symbol__elf_init(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue