From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 575E9C433E0 for ; Sun, 27 Dec 2020 11:43:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19C9D217A0 for ; Sun, 27 Dec 2020 11:43:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19C9D217A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:From:To:Subject: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=f3rMjcO7SxKRL3ijjnvArWxsnniduklP+/TQM4YTGpA=; b=h+QSc1mp3gVWg4Ha5mpeMrZJ+b dxLfQTjJWOnNBLFj7osFZFlh4+0TF/gw+nfb1ZIC3eHb4V8UE3dfiZS2M5DLU+x0APWVO/kIgib9A WUnMBOeOZEQnPJqLpYXAMXsDEzVj+aRItQY/rD8zMLGaBKKRFzPQDE+jxWXE2nDjceJuYpTB/nw7D fLQBRCEN/1dHGFg3z2duSY94YnfUuoRNWaUm4GqlH9O5o5HehUADUYC1T0rxZU7pGBZBxtTcJ3ztg Ent77jtvYCI+qMZ1T64SFKTxPcogYjhW8WKW945NetHp502NRFU7Wc0oHo314nqqYiFcMB25xQJzQ NH4fEUvw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktUQI-00061d-Gg; Sun, 27 Dec 2020 11:41:18 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktUQF-00060p-12 for linux-arm-kernel@lists.infradead.org; Sun, 27 Dec 2020 11:41:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id CCBBC224DE; Sun, 27 Dec 2020 11:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609069274; bh=SMXafZiGjdDbLAioE1uF0cRI246IAuC+8jXFbvt8L84=; h=Subject:To:Cc:From:Date:From; b=mvkQNtcNELC4R6G6Z62ABcpE+ME4lIbh/4e5uhuGnn7EIj1lQy8KWPs8A0kCeO3Gq WB3rfFgQkwdqZVnpsGkL3FuYP60eo3ISpTSpgOti59dnOmWctXpZmg5FfPDxvIW4it OhErOS6s/k+le/GWhieflM1jRqTa32/8ScA6tqoY= Subject: Patch "perf cs-etm: Move definition of 'traceid_list' global variable from header file" has been added to the 4.19-stable tree To: acme@redhat.com, alexander.shishkin@linux.intel.com, carnil@debian.org, gregkh@linuxfoundation.org, jolsa@redhat.com, leo.yan@linaro.org, linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, namhyung@kernel.org, peterz@infradead.org, suzuki.poulose@arm.com, tmb@mageia.org, tor@ti.com From: Date: Sun, 27 Dec 2020 12:42:30 +0100 Message-ID: <160906935019886@kroah.com> MIME-Version: 1.0 X-stable: commit X-Patchwork-Hint: ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201227_064115_303474_B7D0CCF5 X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a note to let you know that I've just added the patch titled perf cs-etm: Move definition of 'traceid_list' global variable from header file to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Tue, 5 May 2020 21:36:42 +0800 Subject: perf cs-etm: Move definition of 'traceid_list' global variable from header file From: Leo Yan commit 168200b6d6ea0cb5765943ec5da5b8149701f36a upstream. The variable 'traceid_list' is defined in the header file cs-etm.h, if multiple C files include cs-etm.h the compiler might complaint for multiple definition of 'traceid_list'. To fix multiple definition error, move the definition of 'traceid_list' into cs-etm.c. Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata") Reported-by: Thomas Backlund Signed-off-by: Leo Yan Reviewed-by: Mathieu Poirier Reviewed-by: Mike Leach Tested-by: Mike Leach Tested-by: Thomas Backlund 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 Link: http://lore.kernel.org/lkml/20200505133642.4756-1-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo 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,6 +87,9 @@ 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,9 +53,6 @@ enum { CS_ETMV4_PRIV_MAX, }; -/* RB tree for quick conversion between traceID and metadata pointers */ -struct intlist *traceid_list; - #define KiB(x) ((x) * 1024) #define MiB(x) ((x) * 1024 * 1024) Patches currently in stable-queue which might be from leo.yan@linaro.org are queue-4.19/perf-cs-etm-change-tuple-from-traceid-cpu-to-traceid-metadata.patch queue-4.19/perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel