Skip to content

Commit 7d380c8

Browse files
Ingo Molnartorvalds
authored andcommitted
perf: Fix UAPI fallout
The UAPI commits forgot to test tooling builds such as tools/perf/, and this fixes the fallout. Manual conversion. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3d6ee36 commit 7d380c8

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

tools/perf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
252252

253253
LIB_FILE=$(OUTPUT)libperf.a
254254

255-
LIB_H += ../../include/linux/perf_event.h
255+
LIB_H += ../../include/uapi/linux/perf_event.h
256256
LIB_H += ../../include/linux/rbtree.h
257257
LIB_H += ../../include/linux/list.h
258-
LIB_H += ../../include/linux/const.h
258+
LIB_H += ../../include/uapi/linux/const.h
259259
LIB_H += ../../include/linux/hash.h
260260
LIB_H += ../../include/linux/stringify.h
261261
LIB_H += util/include/linux/bitmap.h

tools/perf/perf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void get_term_dimensions(struct winsize *ws);
112112
#include <sys/types.h>
113113
#include <sys/syscall.h>
114114

115-
#include "../../include/linux/perf_event.h"
115+
#include "../../include/uapi/linux/perf_event.h"
116116
#include "util/types.h"
117117
#include <stdbool.h>
118118

tools/perf/util/evsel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "thread_map.h"
2020
#include "target.h"
2121
#include "../../../include/linux/hw_breakpoint.h"
22-
#include "../../include/linux/perf_event.h"
22+
#include "../../../include/uapi/linux/perf_event.h"
2323
#include "perf_regs.h"
2424

2525
#define FD(e, x, y) (*(int *)xyarray__entry(e->fd, x, y))

tools/perf/util/evsel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <linux/list.h>
55
#include <stdbool.h>
6-
#include "../../../include/linux/perf_event.h"
6+
#include "../../../include/uapi/linux/perf_event.h"
77
#include "types.h"
88
#include "xyarray.h"
99
#include "cgroup.h"

tools/perf/util/header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef __PERF_HEADER_H
22
#define __PERF_HEADER_H
33

4-
#include "../../../include/linux/perf_event.h"
4+
#include "../../../include/uapi/linux/perf_event.h"
55
#include <sys/types.h>
66
#include <stdbool.h>
77
#include "types.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#include <asm/types.h>
2-
#include "../../../../include/linux/swab.h"
2+
#include "../../../../include/uapi/linux/swab.h"

tools/perf/util/include/linux/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#include "../../../../include/linux/const.h"
1+
#include "../../../../include/uapi/linux/const.h"

tools/perf/util/parse-events.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/list.h>
88
#include <stdbool.h>
99
#include "types.h"
10-
#include "../../../include/linux/perf_event.h"
10+
#include "../../../include/uapi/linux/perf_event.h"
1111
#include "types.h"
1212

1313
struct list_head;

tools/perf/util/pmu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __PMU_H
33

44
#include <linux/bitops.h>
5-
#include "../../../include/linux/perf_event.h"
5+
#include "../../../include/uapi/linux/perf_event.h"
66

77
enum {
88
PERF_PMU_FORMAT_VALUE_CONFIG,

tools/perf/util/session.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "symbol.h"
88
#include "thread.h"
99
#include <linux/rbtree.h>
10-
#include "../../../include/linux/perf_event.h"
10+
#include "../../../include/uapi/linux/perf_event.h"
1111

1212
struct sample_queue;
1313
struct ip_callchain;

0 commit comments

Comments
 (0)