]> Git Repo - linux.git/commit
perf tools: Fix dynamic libbpf link
authorJiri Olsa <[email protected]>
Sat, 8 May 2021 20:50:20 +0000 (22:50 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 10 May 2021 12:01:00 +0000 (09:01 -0300)
commitad1237c30d975535a669746496cbed136aa5a045
treeebff335ac7245c253c577468f9bd1c2436f9cde3
parenta11c9a6e472457cf9eeafb585fc5c912f51d1b23
perf tools: Fix dynamic libbpf link

Justin reported broken build with LIBBPF_DYNAMIC=1.

When linking libbpf dynamically we need to use perf's
hashmap object, because it's not exported in libbpf.so
(only in libbpf.a).

Following build is now passing:

  $ make LIBBPF_DYNAMIC=1
    BUILD:   Doing 'make -j8' parallel build
    ...
  $ ldd perf | grep libbpf
        libbpf.so.0 => /lib64/libbpf.so.0 (0x00007fa7630db000)

Fixes: eee19501926d ("perf tools: Grab a copy of libbpf's hashmap")
Reported-by: Justin M. Forbes <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile.config
tools/perf/util/Build
This page took 0.046386 seconds and 4 git commands to generate.