Message ID | 20231206201324.184059-7-kan.liang@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4354013vqy; Wed, 6 Dec 2023 12:14:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUsETtkh8XLhJiQY1+fsfYLrnklOK83zHhFRP+ssjLOpDEFFQNMmkwxi4/ZjoZ1w/lI9HU X-Received: by 2002:a05:6a20:9387:b0:18c:19ab:d2e5 with SMTP id x7-20020a056a20938700b0018c19abd2e5mr1393090pzh.33.1701893652598; Wed, 06 Dec 2023 12:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701893652; cv=none; d=google.com; s=arc-20160816; b=itClB7p+MkPuwCFpFN5XweNS1JmWY5J57wP0hvhefB1uJNNN9QYJW/OsiETNE83SWI dAY5Bc0tUBxYiwgFSVUIHiafObmDYHa+9HvpIsaJmZw+WiJDylK4JHTE53gWoR8rLxH+ wJ+5a+gNaVdTvCdIo5oLi2NkU8yukhEYoRsVrT0kMlOSYSIp5sHN+B724XhjC4xz80W+ 0LBMoKDLPmtZyDtOaQQIO9pyKs+taDvKx2hkpfoXiYboTW6C0bzwiBnltJsCWz6q/8gT MlJ4hzx6e0b2gBrU7S1hi7dA1lUbG2I7dC7RXnkD2lx5o4VKT6RuHxZiRUy1wKB66D3p cHww== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d+oiHRHmb30t+xAzMGRpEoc7hdXVdoGReA7GKXG/eoM=; fh=GS69O/4cJpYi1pSOvxmc2ttdZCZHkrRB3QAP1aeELJ0=; b=rDz2wu8B5A6CYbPHrE2V9FWVnbBdc97FBYhEvOyH9gAm85awa4i9ptHreN6X16/7Co vpz0a+Cb7YPrDY5GiVV7irJjwJ0mTWoH+CBccjjKtcb3IFG2YsRXfRghzaDlLh8WjyvJ C3C/hnDMyYiOdaquXtznHZ5hDOfbme1pHPzbmx6VVKZ9bfqvRBaRbBUg75kQJgS/F+Tv TOM0XsrqQw60agoRVmyl841vm6JcN75t+Gwo/ohZrZEnKC8fTu2iCF+teNSRsMGi5Myh OCNZPkN7CWcsssX7IMdFvWQHbEDW8haZBPM5DVmWe1ORjYvZPTceMFzHQtHv0tRn68K0 rvdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f77V06k7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cn6-20020a056a020a8600b005c2791fedb1si401831pgb.874.2023.12.06.12.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 12:14:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f77V06k7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 597E880236C0; Wed, 6 Dec 2023 12:14:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379539AbjLFUNp (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 15:13:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442892AbjLFUNc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 15:13:32 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C7D8D62; Wed, 6 Dec 2023 12:13:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701893617; x=1733429617; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xauO0p/GUkiGEzh2PvYpS4cwj2BY8SDJavt28LY2Q5I=; b=f77V06k7BtsDCeC0SzMUFOzmMDKmwqfls/HmbRr1E+plkpMQWRBywgZY yo5NUhIM/n3fN21gnORCoOX5JV+QPIuShPo7c7DNmrsYglw+Y3BFXLMZp O9RMIpF4VU+PHxNqJixg36g6en89haG+t2HmX0EZJ/uYsqOpFLrzamHmB GtSH7kwXUeueOOfHyukO0Zr5cV1l2dc7vWHIXkmjTXZeaB6YNT2x5Ewgw wat1Mo7itMC4tPO3+MMyg361SRlxvIyJBRxWAKYVT/1M3Drem1VlnBQPB eylrv8k8bIe74a0qbZgm2g2FL93ApcfG/3Y67UJL1LUNpnzbh+eflu9C1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="458445601" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="458445601" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 12:13:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="944766687" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="944766687" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by orsmga005.jf.intel.com with ESMTP; 06 Dec 2023 12:13:32 -0800 From: kan.liang@linux.intel.com To: acme@kernel.org, irogers@google.com, peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, john.g.garry@oracle.com, will@kernel.org, james.clark@arm.com, mike.leach@linaro.org, leo.yan@linaro.org, yuhaixin.yhx@linux.alibaba.com, renyu.zj@linux.alibaba.com, tmricht@linux.ibm.com, ravi.bangoria@amd.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Kan Liang <kan.liang@linux.intel.com> Subject: [PATCH 6/6] perf mem: Remove useless header files for X86 Date: Wed, 6 Dec 2023 12:13:24 -0800 Message-Id: <20231206201324.184059-7-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20231206201324.184059-1-kan.liang@linux.intel.com> References: <20231206201324.184059-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 12:14:08 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784564838873629473 X-GMAIL-MSGID: 1784564838873629473 |
Series |
Clean up perf mem
|
|
Commit Message
Liang, Kan
Dec. 6, 2023, 8:13 p.m. UTC
From: Kan Liang <kan.liang@linux.intel.com> The X86 mem-events.c only has perf_mem_events array now. Remove useless header files. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> --- tools/perf/arch/x86/util/mem-events.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
Comments
Em Wed, Dec 06, 2023 at 12:13:24PM -0800, kan.liang@linux.intel.com escreveu: > From: Kan Liang <kan.liang@linux.intel.com> > > The X86 mem-events.c only has perf_mem_events array now. Remove useless > header files. It would be great that those were removed while you made the cleanups, i.e. removed the need for one of them, remove it together with the refactorings, etc. But I don't think this is a requirement, just would make it cleaner. Will wait for reviews now. - Arnaldo > Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > --- > tools/perf/arch/x86/util/mem-events.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/tools/perf/arch/x86/util/mem-events.c b/tools/perf/arch/x86/util/mem-events.c > index 71ffe16de751..62df03e91c7e 100644 > --- a/tools/perf/arch/x86/util/mem-events.c > +++ b/tools/perf/arch/x86/util/mem-events.c > @@ -1,11 +1,9 @@ > // SPDX-License-Identifier: GPL-2.0 > -#include "util/pmu.h" > -#include "util/pmus.h" > -#include "util/env.h" > -#include "map_symbol.h" > -#include "mem-events.h" > #include "linux/string.h" > -#include "env.h" > +#include "util/map_symbol.h" > +#include "util/mem-events.h" > +#include "mem-events.h" > + > > #define MEM_LOADS_AUX 0x8203 > > -- > 2.35.1 >
On 2023-12-06 3:38 p.m., Arnaldo Carvalho de Melo wrote: > Em Wed, Dec 06, 2023 at 12:13:24PM -0800, kan.liang@linux.intel.com escreveu: >> From: Kan Liang <kan.liang@linux.intel.com> >> >> The X86 mem-events.c only has perf_mem_events array now. Remove useless >> header files. > > It would be great that those were removed while you made the cleanups, > i.e. removed the need for one of them, remove it together with the > refactorings, etc. > > But I don't think this is a requirement, just would make it cleaner. Sure, I will merge it with the previous patch in V2. Thanks, Kan > > Will wait for reviews now. > > - Arnaldo > >> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> >> --- >> tools/perf/arch/x86/util/mem-events.c | 10 ++++------ >> 1 file changed, 4 insertions(+), 6 deletions(-) >> >> diff --git a/tools/perf/arch/x86/util/mem-events.c b/tools/perf/arch/x86/util/mem-events.c >> index 71ffe16de751..62df03e91c7e 100644 >> --- a/tools/perf/arch/x86/util/mem-events.c >> +++ b/tools/perf/arch/x86/util/mem-events.c >> @@ -1,11 +1,9 @@ >> // SPDX-License-Identifier: GPL-2.0 >> -#include "util/pmu.h" >> -#include "util/pmus.h" >> -#include "util/env.h" >> -#include "map_symbol.h" >> -#include "mem-events.h" >> #include "linux/string.h" >> -#include "env.h" >> +#include "util/map_symbol.h" >> +#include "util/mem-events.h" >> +#include "mem-events.h" >> + >> >> #define MEM_LOADS_AUX 0x8203 >> >> -- >> 2.35.1 >> >
diff --git a/tools/perf/arch/x86/util/mem-events.c b/tools/perf/arch/x86/util/mem-events.c index 71ffe16de751..62df03e91c7e 100644 --- a/tools/perf/arch/x86/util/mem-events.c +++ b/tools/perf/arch/x86/util/mem-events.c @@ -1,11 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 -#include "util/pmu.h" -#include "util/pmus.h" -#include "util/env.h" -#include "map_symbol.h" -#include "mem-events.h" #include "linux/string.h" -#include "env.h" +#include "util/map_symbol.h" +#include "util/mem-events.h" +#include "mem-events.h" + #define MEM_LOADS_AUX 0x8203