History

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

Namhyung Kim committed 1 year ago

Commit 22ec0fa1 parent c17b7501 file · +1 −0Browse files

Unified · Split

tools/perf/arch/x86/tests/topdown.c+1−0
@@ -1,6 +1,7 @@
1// SPDX-License-Identifier: GPL-2.01// SPDX-License-Identifier: GPL-2.0
2#include "arch-tests.h"2#include "arch-tests.h"
3#include "../util/topdown.h"3#include "../util/topdown.h"
4#include "debug.h"
4#include "evlist.h"5#include "evlist.h"
5#include "parse-events.h"6#include "parse-events.h"
6#include "pmu.h"7#include "pmu.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t