linux/tools/perf/lib
Jiri Olsa b81d39c7a1 libperf: Fix arch include paths
Guenter Roeck reported problem with compilation when the ARCH is
specified:

  $ make ARCH=x86_64
  In file included from tools/include/asm/atomic.h:6:0,
                   from include/linux/atomic.h:5,
                   from tools/include/linux/refcount.h:41,
                   from cpumap.c:4: tools/include/asm/../../arch/x86/include/asm/atomic.h:11:10:
  fatal error: asm/cmpxchg.h: No such file or directory

The problem is that we don't use SRCARCH (the sanitized ARCH version)
and we don't get the proper include path.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: 3143504918 ("libperf: Make libperf.a part of the perf build")
Link: http://lkml.kernel.org/r/20190820124624.GG24105@krava
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-08-20 12:29:36 -03:00
..
Documentation libperf: Initial documentation 2019-07-29 18:34:47 -03:00
include libperf: Add tests support 2019-07-29 18:34:46 -03:00
tests libperf: Add perf_evsel__enable/disable test 2019-07-29 18:34:47 -03:00
Build libperf: Adopt the readn()/writen() functions from tools/perf 2019-07-29 18:34:46 -03:00
core.c libperf: Add debug output support 2019-07-29 18:34:44 -03:00
cpumap.c libperf: Add perf_cpu_map__for_each_cpu() macro 2019-07-29 18:34:46 -03:00
evlist.c libperf: Adopt perf_evlist__enable()/disable() functions from perf 2019-07-29 18:34:46 -03:00
evsel.c libperf: Add perf_evsel__attr() function 2019-07-29 18:34:46 -03:00
internal.h libperf: Add debug output support 2019-07-29 18:34:44 -03:00
lib.c libperf: Adopt the readn()/writen() functions from tools/perf 2019-07-29 18:34:46 -03:00
libperf.map libperf: Add perf_evsel__attr() function 2019-07-29 18:34:46 -03:00
libperf.pc.template libperf: Add install targets 2019-07-29 18:34:46 -03:00
Makefile libperf: Fix arch include paths 2019-08-20 12:29:36 -03:00
threadmap.c libperf: Add perf_thread_map__get()/perf_thread_map__put() 2019-07-29 18:34:44 -03:00
xyarray.c libperf: Adopt xyarray class from perf 2019-07-29 18:34:45 -03:00