Skip to content

Commit cdfe5e0

Browse files
lukemujicagregkh
authored andcommitted
perf tools: Fix paths in include statements
[ Upstream commit 2b75863 ] These paths point to the wrong location but still work because they get picked up by a -I flag that happens to direct to the correct file. Fix paths to lead to the actual file location without help from include flags. Signed-off-by: Luke Mujica <lukemujica@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/20190719202253.220261-1-lukemujica@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 43894a0 commit cdfe5e0

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎tools/perf/arch/x86/util/kvm-stat.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <errno.h>
3-
#include "../../util/kvm-stat.h"
4-
#include "../../util/evsel.h"
3+
#include "../../../util/kvm-stat.h"
4+
#include "../../../util/evsel.h"
55
#include <asm/svm.h>
66
#include <asm/vmx.h>
77
#include <asm/kvm.h>

‎tools/perf/arch/x86/util/tsc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#include <linux/stddef.h>
66
#include <linux/perf_event.h>
77

8-
#include "../../perf.h"
8+
#include "../../../perf.h"
99
#include <linux/types.h>
10-
#include "../../util/debug.h"
11-
#include "../../util/tsc.h"
10+
#include "../../../util/debug.h"
11+
#include "../../../util/tsc.h"
1212

1313
int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
1414
struct perf_tsc_conversion *tc)

‎tools/perf/ui/helpline.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#include <stdlib.h>
44
#include <string.h>
55

6-
#include "../debug.h"
6+
#include "../util/debug.h"
77
#include "helpline.h"
88
#include "ui.h"
9-
#include "../util.h"
9+
#include "../util/util.h"
1010

1111
char ui_helpline__current[512];
1212

‎tools/perf/ui/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include "util.h"
3-
#include "../debug.h"
3+
#include "../util/debug.h"
44

55

66
/*

0 commit comments

Comments
 (0)