]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
0edfbb011a3358e1720fe0ac0277a22569cca93e
[thirdparty/kernel/stable-queue.git] /
1 From carnil@debian.org Fri Nov 20 09:33:00 2020
2 From: Salvatore Bonaccorso <carnil@debian.org>
3 Date: Fri, 20 Nov 2020 08:39:09 +0100
4 Subject: Revert "perf cs-etm: Move definition of 'traceid_list' global variable from header file"
5 To: stable@vger.kernel.org
6 Cc: Salvatore Bonaccorso <carnil@debian.org>, Leo Yan <leo.yan@linaro.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Namhyung Kim <namhyung@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Suzuki Poulouse <suzuki.poulose@arm.com>, Tor Jeremiassen <tor@ti.com>, linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo <acme@redhat.com>, Guenter Roeck <linux@roeck-us.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 Message-ID: <20201120073909.357536-1-carnil@debian.org>
8
9 From: Salvatore Bonaccorso <carnil@debian.org>
10
11 This reverts commit 168200b6d6ea0cb5765943ec5da5b8149701f36a upstream.
12 (but only from 4.19.y)
13
14 The original commit introduces a build failure as seen on Debian buster
15 when compiled with gcc (Debian 8.3.0-6) 8.3.0:
16
17 $ LC_ALL=C.UTF-8 ARCH=x86 make perf
18 [...]
19 Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'
20 CC util/cs-etm-decoder/cs-etm-decoder.o
21 CC util/intel-pt.o
22 util/cs-etm-decoder/cs-etm-decoder.c: In function 'cs_etm_decoder__buffer_packet':
23 util/cs-etm-decoder/cs-etm-decoder.c:287:24: error: 'traceid_list' undeclared (first use in this function); did you mean 'trace_event'?
24 inode = intlist__find(traceid_list, trace_chan_id);
25 ^~~~~~~~~~~~
26 trace_event
27 util/cs-etm-decoder/cs-etm-decoder.c:287:24: note: each undeclared identifier is reported only once for each function it appears in
28 make[6]: *** [/build/linux-stable/tools/build/Makefile.build:97: util/cs-etm-decoder/cs-etm-decoder.o] Error 1
29 make[5]: *** [/build/linux-stable/tools/build/Makefile.build:139: cs-etm-decoder] Error 2
30 make[5]: *** Waiting for unfinished jobs....
31 make[4]: *** [/build/linux-stable/tools/build/Makefile.build:139: util] Error 2
32 make[3]: *** [Makefile.perf:633: libperf-in.o] Error 2
33 make[2]: *** [Makefile.perf:206: sub-make] Error 2
34 make[1]: *** [Makefile:70: all] Error 2
35 make: *** [Makefile:77: perf] Error 2
36
37 Link: https://lore.kernel.org/stable/20201114083501.GA468764@eldamar.lan/
38 Cc: Leo Yan <leo.yan@linaro.org>
39 Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
40 Cc: Jiri Olsa <jolsa@redhat.com>
41 Cc: Mark Rutland <mark.rutland@arm.com>
42 Cc: Namhyung Kim <namhyung@kernel.org>
43 Cc: Peter Zijlstra <peterz@infradead.org>
44 Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
45 Cc: Tor Jeremiassen <tor@ti.com>
46 Cc: linux-arm-kernel@lists.infradead.org
47 Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
48 Cc: Guenter Roeck <linux@roeck-us.net>
49 Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
50 Cc: <stable@vger.kernel.org> # 4.19.y
51 Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
52 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
53 ---
54 tools/perf/util/cs-etm.c | 3 ---
55 tools/perf/util/cs-etm.h | 3 +++
56 2 files changed, 3 insertions(+), 3 deletions(-)
57
58 --- a/tools/perf/util/cs-etm.c
59 +++ b/tools/perf/util/cs-etm.c
60 @@ -87,9 +87,6 @@ struct cs_etm_queue {
61 struct cs_etm_packet *packet;
62 };
63
64 -/* RB tree for quick conversion between traceID and metadata pointers */
65 -static struct intlist *traceid_list;
66 -
67 static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
68 static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
69 pid_t tid, u64 time_);
70 --- a/tools/perf/util/cs-etm.h
71 +++ b/tools/perf/util/cs-etm.h
72 @@ -53,6 +53,9 @@ enum {
73 CS_ETMV4_PRIV_MAX,
74 };
75
76 +/* RB tree for quick conversion between traceID and CPUs */
77 +struct intlist *traceid_list;
78 +
79 #define KiB(x) ((x) * 1024)
80 #define MiB(x) ((x) * 1024 * 1024)
81