Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1192657pxb; Fri, 20 Nov 2020 03:39:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnZCGCgmhd7AZRczu9PrM83drbr1hXU/4pN697ZIjI1PwerSkYtK5smvd40QdcFd0uAAjZ X-Received: by 2002:aa7:cac2:: with SMTP id l2mr35363014edt.141.1605872380944; Fri, 20 Nov 2020 03:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605872380; cv=none; d=google.com; s=arc-20160816; b=y8ptdqNlZ8iAfETR1owDMXQaIx5tN9zgyX3jf6IYAFXP2VLjX12IUzGI+VtAJBY5av M8ng0SINHaRyfyFNc1rwO70VF/RH4huFzfkPWSVqOYZLh+2xurQ9TprpbpCIYKgF+0U+ B41NH18OQtlT0Nbd4sxBJrNUYtVvIRG6zfjJPXdkBWXI/g2GiSpn4P7oApVgyi7YkxUV utDHSD6F3Nh2jP8TqZguzbULcFXsHnW0btX1yiexGetpdE58dFXFSyro7IrIl6gGCIky 9K6eHX8WUqAwh7K1ZRMB8Yj7kgbkIni8KBHwlgJe4295CS9Teg6LQY8eHW4IW17xJv9L GuDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VQ+r0Cv1vtN6AfC/oB4KzsRD28JJwCKRvsjerOfisy8=; b=dD886F3JnDm/VzVZB7l3RLOw+HbWZH1aVurUULsdmYG6ZO1TfzkRekIjnkD7p59wD3 bzdMWykk+pPRWoFpy/VqLjVPmR5RA3B4BjD2GUbO2N4yAidLqV6nNXnSdc/P6T72tBZ0 +WPRvEYeae8vNVPNp8B0BfYBCO+jcKcubuK/fF7s/VydAK9GVdSWyhPHd06Rdebcbl7L dweuttszgUmorN+JvS7qnYOnnwiXoyRdAw3xbY7qKsPLXR0XpxU/fdd9g/Dpm79+Lwb0 AASbhu1MXxkssI5Z44MIM7aGri234f5cAHKx+dOJHQD9MkPp6mESx3F2Z4YXAUjqr2KG 9sQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0rqzymRQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gu3si1501316ejb.641.2020.11.20.03.39.18; Fri, 20 Nov 2020 03:39:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0rqzymRQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728377AbgKTLGW (ORCPT + 99 others); Fri, 20 Nov 2020 06:06:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:53976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728348AbgKTLGL (ORCPT ); Fri, 20 Nov 2020 06:06:11 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 011D5206E3; Fri, 20 Nov 2020 11:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1605870370; bh=6WPY7IXik1n0TmpUGXGANP023j170ZaxUYNVhqmACzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0rqzymRQtqmVoyby4aQ5Ojo/Ufg9/Jyet0UiQquN4xrETeUKU/Y+nuS/bBphpl+4K /FErEFwSTeeF/WoYgFVxh6ghFKykhORvs3WxCgFde4K0m/nZYZugp5ouXkkOviFpua 4KyouYq1gZIPCtvoDF+wGZwO3n0WeDLCU3q3q5Ic= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Leo Yan , Alexander Shishkin , Jiri Olsa , Mark Rutland , Namhyung Kim , Peter Zijlstra , Suzuki Poulouse , Tor Jeremiassen , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo , Guenter Roeck , Salvatore Bonaccorso Subject: [PATCH 4.19 08/14] Revert "perf cs-etm: Move definition of traceid_list global variable from header file" Date: Fri, 20 Nov 2020 12:03:29 +0100 Message-Id: <20201120104540.213608508@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201120104539.806156260@linuxfoundation.org> References: <20201120104539.806156260@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Salvatore Bonaccorso This reverts commit 168200b6d6ea0cb5765943ec5da5b8149701f36a upstream. (but only from 4.19.y) The original commit introduces a build failure as seen on Debian buster when compiled with gcc (Debian 8.3.0-6) 8.3.0: $ LC_ALL=C.UTF-8 ARCH=x86 make perf [...] Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' CC util/cs-etm-decoder/cs-etm-decoder.o CC util/intel-pt.o util/cs-etm-decoder/cs-etm-decoder.c: In function 'cs_etm_decoder__buffer_packet': util/cs-etm-decoder/cs-etm-decoder.c:287:24: error: 'traceid_list' undeclared (first use in this function); did you mean 'trace_event'? inode = intlist__find(traceid_list, trace_chan_id); ^~~~~~~~~~~~ trace_event util/cs-etm-decoder/cs-etm-decoder.c:287:24: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [/build/linux-stable/tools/build/Makefile.build:97: util/cs-etm-decoder/cs-etm-decoder.o] Error 1 make[5]: *** [/build/linux-stable/tools/build/Makefile.build:139: cs-etm-decoder] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/build/linux-stable/tools/build/Makefile.build:139: util] Error 2 make[3]: *** [Makefile.perf:633: libperf-in.o] Error 2 make[2]: *** [Makefile.perf:206: sub-make] Error 2 make[1]: *** [Makefile:70: all] Error 2 make: *** [Makefile:77: perf] Error 2 Link: https://lore.kernel.org/stable/20201114083501.GA468764@eldamar.lan/ Cc: Leo Yan Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Suzuki Poulouse Cc: Tor Jeremiassen Cc: linux-arm-kernel@lists.infradead.org Cc: Arnaldo Carvalho de Melo Cc: Guenter Roeck Cc: Greg Kroah-Hartman Cc: # 4.19.y Signed-off-by: Salvatore Bonaccorso Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/cs-etm.c | 3 --- tools/perf/util/cs-etm.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -87,9 +87,6 @@ struct cs_etm_queue { struct cs_etm_packet *packet; }; -/* RB tree for quick conversion between traceID and metadata pointers */ -static struct intlist *traceid_list; - static int cs_etm__update_queues(struct cs_etm_auxtrace *etm); static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm, pid_t tid, u64 time_); --- a/tools/perf/util/cs-etm.h +++ b/tools/perf/util/cs-etm.h @@ -53,6 +53,9 @@ enum { CS_ETMV4_PRIV_MAX, }; +/* RB tree for quick conversion between traceID and CPUs */ +struct intlist *traceid_list; + #define KiB(x) ((x) * 1024) #define MiB(x) ((x) * 1024 * 1024)