summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-07-08 17:41:43 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-07-08 21:56:22 +0300
commitd155bef0636e019418ef5a69cafce129cc202b78 (patch)
tree27a64d162a92f6d4d27258df55583c900d5cd185 /tools/perf/util/scripting-engines/trace-event-python.c
parent985863d00a8feb597a38df38f8fc2f70e980156f (diff)
downloadlinux-d155bef0636e019418ef5a69cafce129cc202b78.tar.xz
amdgpu: make pmu support optional
When CONFIG_PERF_EVENTS is disabled, we cannot compile the pmu portion of the amdgpu driver: drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:48:38: error: no member named 'hw' in 'struct perf_event' struct hw_perf_event *hwc = &event->hw; ~~~~~ ^ drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:51:13: error: no member named 'attr' in 'struct perf_event' if (event->attr.type != event->pmu->type) ~~~~~ ^ ... Use conditional compilation for this file. Fixes: 9c7c85f7ea1f ("drm/amdgpu: add pmu counters") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions