Skip to content

Commit 22ec0fa

Browse files
committed
perf test: Fix a build error in x86 topdown test
There's an environment that caused the following build error. Include "debug.h" (under util directory) to fix it. arch/x86/tests/topdown.c: In function 'event_cb': arch/x86/tests/topdown.c:53:25: error: implicit declaration of function 'pr_debug' [-Werror=implicit-function-declaration] 53 | pr_debug("Broken topdown information for '%s'\n", evsel__name(evsel)); | ^~~~~~~~ cc1: all warnings being treated as errors Link: https://lore.kernel.org/r/[email protected] Fixes: 5b546de ("perf topdown: Use attribute to see an event is a topdown metic or slots") Reported-by: Naresh Kamboju <[email protected]> Signed-off-by: Namhyung Kim <[email protected]>
1 parent c17b750 commit 22ec0fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/perf/arch/x86/tests/topdown.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include "arch-tests.h"
33
#include "../util/topdown.h"
4+
#include "debug.h"
45
#include "evlist.h"
56
#include "parse-events.h"
67
#include "pmu.h"

0 commit comments

Comments
 (0)