diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-07-22 18:18:34 +0400 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2016-05-03 11:25:30 +0300 |
commit | f5d163aad31e4ec30f7258e655503824a2b03d45 (patch) | |
tree | 3676736b21b8b3b641dc837be9e937fcc2eb65bf /tools/perf/scripts/python/stackcollapse.py | |
parent | 879d08ec30586ade3e785fe993ba50b8c89d05ef (diff) | |
download | linux-f5d163aad31e4ec30f7258e655503824a2b03d45.tar.xz |
metag: perf: fix build on Meta1
Meta1 doesn't support PERF_ICORE or PERF_CHAN registers resulting in
build errors due to missing definitions. Fix this with an ifdef matching
the one in asm/metag_mem.h.
The build errors (found by a randconfig):
arch/metag/kernel/perf/perf_event.c: In function 'metag_pmu_enable_counter':
arch/metag/kernel/perf/perf_event.c:639: error: 'PERF_ICORE0' undeclared (first use in this function)
arch/metag/kernel/perf/perf_event.c:639: error: (Each undeclared identifier is reported only once
arch/metag/kernel/perf/perf_event.c:639: error: for each function it appears in.)
arch/metag/kernel/perf/perf_event.c:643: error: 'PERF_CHAN0' undeclared (first use in this function)
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions