Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp231520imn; Fri, 29 Jul 2022 05:25:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhuetiz78PYbMuKBdS7QHQO2tZKjNj4IrUqezDPijk236tbpDfgwORNjM3YGy4NE9gP0L1 X-Received: by 2002:a17:907:97c3:b0:72f:4a1d:a7b2 with SMTP id js3-20020a17090797c300b0072f4a1da7b2mr2739965ejc.260.1659097511951; Fri, 29 Jul 2022 05:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659097511; cv=none; d=google.com; s=arc-20160816; b=QdL4bSnZrD9+NP9RJBODfJ6E7htogxmKII0wY8CL7V0+Ko7lfd+wtcsPQu734U7zt1 nz+6i/TaEMrmho/xMLlNod75qtO7+/tgvb1VQYZF5FN0Wwva2S9Cv5a8NjSH/30Z1ApG jVnqlMXoxFPOXlTTP6FYF8Ys+b6Zz23xFB9+z2U4xYQxcO+JftpORHBI1YtKOOeiaY3o XUxU9X+0L/0iBIL9SIMjIYxw/M0d7ohjsE8qtrXaqHWiElhZziTIYg+ZSi0M/RoT6Yu+ Hnkdov1grNT1a3SeVwUMhrA+2ubyYsH/4ogxFUFPubcsj8j6af6Hqc0X7Mpq9vM5mbHv NYgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=pkTQ5JuXFCwrWZpU8RMLir4nDIl4hKrN0Onyl52HcBo=; b=qN235XDaBG3aIYVSmrIhLc8RYUP5Yort4NwwJhLYoOBFE6Z6Ypiq0nz+w9luAEjHLp tmNnUof0xewNz+enfiMdA9cHkJjSlo1Zgmxbx/r4OKNyEfRRZE+FvFn6Xr2esmhHpljH OJtHAgMtIoeCdfB4MX5wtCM+MAWBCmwxGO8aUx/Ao/PB8pGvFUAuccGrUL7I77HpYJWE eqLUAuAbw8CWLXvYVnggqbD16TY8bG4AA7xRkSC3sQ5NnFykV1YQ/Wp11RRQs5AMCSeC mra0/DnEHtaA+Y3GbxesY5kz2SM/o0ebUPMSGGROOwQhtKpeYOwU2StcrD1hF9YXSTue WUvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BBEP6KsT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rn9-20020a170906d92900b0072629f08048si2663227ejb.303.2022.07.29.05.24.46; Fri, 29 Jul 2022 05:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BBEP6KsT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235813AbiG2Lms (ORCPT + 99 others); Fri, 29 Jul 2022 07:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbiG2Lmq (ORCPT ); Fri, 29 Jul 2022 07:42:46 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DCAA87364; Fri, 29 Jul 2022 04:42:45 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id v3so4738913wrp.0; Fri, 29 Jul 2022 04:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc; bh=pkTQ5JuXFCwrWZpU8RMLir4nDIl4hKrN0Onyl52HcBo=; b=BBEP6KsTx01PhzpK5c+O4TXHNWFczgDIuOFBjj4L45wVUxTEpMIVH6mK9qBBUIXrT4 3cc5hL5jvO+TuxSdgEzn55LgvYPfu1V/wNJ5wgw8bBf9Z+VbaI0K2B/A2Qn3yp03CpTC 0YQGOFAp8+2tc2dYMxO7IFA6T4T85JGtEOmAsInIgqx8/VmsQHw9Xac4dNBaQnXUHXg0 uH3OW+r/G93/4xy6b83C8lHk+tHG1rU604EoVR/roTPos5BkiN3vRlgOIaQALCf9azgn f058MIbI0hRoku9tcim/SaznAXvrnCmpzHypD5HTaTQNlbYxVJblJ/6Qdxx97AXbl70M kePg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc; bh=pkTQ5JuXFCwrWZpU8RMLir4nDIl4hKrN0Onyl52HcBo=; b=E9/Zb13CdxiD622G9sUVsDfmS+K9jL2qaHfX3GOMXiQpWJ4SaAlD7re4B7d9SnPQLB GJNBVOBdm23KQ3BC9vkE49zlYqoz+snuTbZKHv3xyT7EZQvSnm3ZN3TrMXMJ/5duuQao 4Bv2bZSE+WD0MGFkXqNVkMHyB/bGaR3rN5RA55DFWxqD6VVTZhy09CsNy/zBzFigC6d+ sjABiV+TTauVY28SDFkNh0f3MmhO078PpL7efF4+SIfrkKAjKAaWZ+0muh8SzEPuquiq BswfCLnfBGakTByNIQODArbhWs/74W9PTKN/wCT1TVI5n5j11rslDlzL9tEdFwO5pkS1 EYFg== X-Gm-Message-State: ACgBeo3G6JStL3A3a4qmMoWS6unEXy3CIvbONQvejsf6kavAW9Wl7ETK R8VSajpX5JevvDXDvtL2PmY= X-Received: by 2002:adf:cd05:0:b0:21d:df26:8db with SMTP id w5-20020adfcd05000000b0021ddf2608dbmr2148513wrm.220.1659094963643; Fri, 29 Jul 2022 04:42:43 -0700 (PDT) Received: from krava ([193.85.244.190]) by smtp.gmail.com with ESMTPSA id j17-20020a05600c191100b003a342933727sm10727819wmq.3.2022.07.29.04.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 04:42:43 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Fri, 29 Jul 2022 13:42:40 +0200 To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v2] perf parse-events: Break out tracepoint and printing. Message-ID: References: <20220707191209.273065-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220707191209.273065-1-irogers@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 07, 2022 at 12:12:09PM -0700, Ian Rogers wrote: SNIP > diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c > index 7ed235740431..206c76623c06 100644 > --- a/tools/perf/util/parse-events.c > +++ b/tools/perf/util/parse-events.c > @@ -5,18 +5,12 @@ > #include > #include > #include > -#include > -#include > -#include > #include > #include "term.h" > -#include "build-id.h" > #include "evlist.h" > #include "evsel.h" > -#include > #include > #include "parse-events.h" > -#include > #include "string2.h" > #include "strlist.h" > #include "bpf-loader.h" > @@ -24,23 +18,24 @@ > #include > #include > #include "parse-events-bison.h" > -#define YY_EXTRA_TYPE void* > #include "parse-events-flex.h" hum, why is this not needed anymore? > #include "pmu.h" > -#include "thread_map.h" > -#include "probe-file.h" > #include "asm/bug.h" > #include "util/parse-branch-options.h" > -#include "metricgroup.h" > #include "util/evsel_config.h" > #include "util/event.h" > -#include "util/pfm.h" > +#include "perf.h" > #include "util/parse-events-hybrid.h" > #include "util/pmu-hybrid.h" > -#include "perf.h" > +#include "tracepoint.h" > > #define MAX_NAME_LEN 100 > SNIP