diff options
| author | Guilherme Amadio <[email protected]> | 2024-06-06 15:33:01 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-06-21 23:19:03 +0000 |
| commit | 0f0e1f44569061e3dc590cd0b8cb74d8fd53706b (patch) | |
| tree | 10dd5ce96d16e17f90e9c7cd8c5e79eac561ea7b /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | perf arm: Workaround ARM PMUs cpu maps having offline cpus (diff) | |
| download | kernel-0f0e1f44569061e3dc590cd0b8cb74d8fd53706b.tar.gz kernel-0f0e1f44569061e3dc590cd0b8cb74d8fd53706b.zip | |
perf build: Use pkg-config for feature check for libtrace{event,fs}
Needed to add required include directories for the feature detection
to succeed. The header tracefs.h is installed either into the include
directory /usr/include/tracefs/tracefs.h when using the Makefile, or
into /usr/include/libtracefs/tracefs.h when using meson to build
libtracefs. The header tracefs.h uses #include <event-parse.h> from
libtraceevent, so pkg-config needs to pick the correct include directory
for libtracefs and add the one for libtraceevent to succeed.
Note that in baa2ca59ec1e31ccbe3f24ff0368152b36f68720 the variable
LIBTRACEEVENT_DIR was introduced, and now the method to compile against
non-standard locations requires PKG_CONFIG_PATH to be set instead, which
works for both libtraceevent and libtracefs.
Signed-off-by: Guilherme Amadio <[email protected]>
Reviewed-by: Leo Yan <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
