From patchwork Wed Jul 26 13:36:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 126396 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp430419vqo; Wed, 26 Jul 2023 07:10:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGwOOWsau+XXO9tz94lb5J6dTSafbOPiSjHZNNumKmh/+X8KbboZ4ADHJZfTtj0Gij6T8r X-Received: by 2002:a05:6a21:6da0:b0:133:c170:6ee9 with SMTP id wl32-20020a056a216da000b00133c1706ee9mr2705852pzb.42.1690380629734; Wed, 26 Jul 2023 07:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690380629; cv=none; d=google.com; s=arc-20160816; b=SejGOvtHusrNmO3vMTD3CcVtD41gW9cGOdjwQkpKmTc0uZmt08OJr45v5sh27Ak7/X VGjl9MvZAl6yYWgKocRAOzeZxSH+plHzvPFFn2L6pjgvoh+IVGWm/4wj2rxg5NFb5HsK WvHD+GM0G3T7QGSccipNFLjB1bZzM7lV63PfLIH/OBncM0dUWppnmKN4aj627kKfKGzG keP5teIJZY5t3AUseCqF48qUyLJopt2HbEauzPVPNt3LoaGHlB67I3xuF5jj1L+48/a+ x6gZ2Knl1bCsXRmbw7DPXEXa/4JsKsHihUD2hxzrgbkuxj9Ef6iuvmWs3MdjF+2hiuCv rwJA== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=gYgt2/L5v2iTxYlRyElhhZxpEQdszhBpRfoZ9bvFiQ0=; fh=0+7a5fu/FUeiIqPazwYnsTJzAAsSbc1CLnWMxuTAMQQ=; b=qJ24Yil+T3JQ1IbnF2T06k+LM85hJ+hDX0iFkDte1tzsEy9GF/HrE5aMvmOidOY3BY 0TBREiJOeXcqSNSWC+Irp8bJY7MWsJ4Ho0vI9RSOQm9ucKsKf/Q9CkmN2Fe7FhBxmRr+ 8V6Q0nHBlEAMelGEVYvZbGf5wUWDel0ot6a882Hk5f8v7/YaEY24Ps7Gabh04lRFVgM7 9GLOMahUqIqqD47fd29JebqDzJKTDCnzRlcrtrn6kKcyK+54AKG6ZtsJeohb1NioYMSo 1yYnWAetbJV1CJFlZTkzBjbpFvZFoJK0y9id9jrQK9wdfKu4mfwjaYFN8XOUIwjsGPKO QJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="cc+iIay/"; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm25-20020a056a00339900b0067dd87a586esi12921519pfb.377.2023.07.26.07.10.12; Wed, 26 Jul 2023 07:10:29 -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=20221208 header.b="cc+iIay/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233891AbjGZNgw (ORCPT + 99 others); Wed, 26 Jul 2023 09:36:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbjGZNgu (ORCPT ); Wed, 26 Jul 2023 09:36:50 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99D6A1734; Wed, 26 Jul 2023 06:36:49 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bb81809ca8so35380325ad.3; Wed, 26 Jul 2023 06:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690378609; x=1690983409; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=gYgt2/L5v2iTxYlRyElhhZxpEQdszhBpRfoZ9bvFiQ0=; b=cc+iIay/ECUUq2pHo33gxd4ADnap2aPJzZM2OBywjK7f+VDRd1WJuOxS7c6n9Q7ZYX fR4V3H1u8u+4i4JlE5fZwItEwJ8c5gLPRtmyo4wIGDY4I74cL9fi0puRyvoPVDG5kchY MIdU+wVuzneuLtM5doFCVEuZuvGwpdAvIbcflbNd+WB+bVKPyaxKU46Y5Sw05gCDtmOJ l6anyIffgIvqiITu4Bns3vF7CAsi8KZFdlHTS8EPisT85e5Vxw+6grzUvglcRdOR0hKU bUxryPE8Il+DhsnQv6g9XDQA1JOca6j/I9LS6MN1zNm47Mdo9qab6hDwxGv0LsBnUtmU YGYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690378609; x=1690983409; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gYgt2/L5v2iTxYlRyElhhZxpEQdszhBpRfoZ9bvFiQ0=; b=G1NNdhkpQvkvtA2wkj2UO6RFn578CXuX0RCGF10UUiJ06jzFQZHkLa7bSqDMcOH1EF MAppjIX6LMqBSFeI0bUwq+IEvL2uk7AZEw3CfwsU6xse7lk+BRIPzftJNUlBQHqnXQNK m4xsnEPd3pcjmPBj9F5P6xfRZj/CLb9jv4KHhy3De9OvGWITWRHM78ItuEIo7xEX0rrD V06ZJA8XeOsr97zOmgjXPY0W3dX02C8QGfK1HGR2S8m0ilXOtrilfdpILpaDPhlb7iO5 7SmVZ8fiK6UX8OovQhRk/voH5haZ0wBmLy7goimgsANw+sYHFOvkUVmuw3wcUvIRuecG ZR/g== X-Gm-Message-State: ABy/qLZ+VJqXO07FbOM/N+Q4wcdM1hcC+xztI54NmJG08WVR8bKrCKXa 21G3tW4sHU9XfwtehH1ARZg= X-Received: by 2002:a17:902:b08a:b0:1b8:c972:606c with SMTP id p10-20020a170902b08a00b001b8c972606cmr1869361plr.57.1690378608925; Wed, 26 Jul 2023 06:36:48 -0700 (PDT) Received: from bangji.roam.corp.google.com ([114.129.115.132]) by smtp.gmail.com with ESMTPSA id q8-20020a170902b10800b001b8baa83639sm13206369plr.200.2023.07.26.06.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 06:36:48 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Anup Sharma , stable@vger.kernel.org Subject: [PATCH 1/2] perf build: Update build rule for generated files Date: Wed, 26 Jul 2023 06:36:41 -0700 Message-ID: <20230726133642.750342-1-namhyung@kernel.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772492559433017347 X-GMAIL-MSGID: 1772492559433017347 The bison and flex generate C files from the source (.y and .l) files. When O= option is used, they are saved in a separate directory but the default build rule assumes the .C files are in the source directory. So it might read invalid file if there are generated files from an old version. The same is true for the pmu-events files. For example, the following command would cause a build failure: $ git checkout v6.3 $ make -C tools/perf # build in the same directory $ git checkout v6.5-rc2 $ mkdir build # create a build directory $ make -C tools/perf O=build # build in a different directory but it # refers files in the source directory Let's update the build rule to specify those cases explicitly to depend on the files in the output directory. Note that it's not a complete fix and it needs the next patch for the include path too. Fixes: 80eeb67fe577 ("perf jevents: Program to convert JSON file") Cc: stable@vger.kernel.org Signed-off-by: Namhyung Kim --- tools/build/Makefile.build | 8 ++++++++ tools/perf/pmu-events/Build | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/tools/build/Makefile.build b/tools/build/Makefile.build index 89430338a3d9..f9396696fcbf 100644 --- a/tools/build/Makefile.build +++ b/tools/build/Makefile.build @@ -117,6 +117,14 @@ $(OUTPUT)%.s: %.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_s_c) +$(OUTPUT)%-bison.o: $(OUTPUT)%-bison.c FORCE + $(call rule_mkdir) + $(call if_changed_dep,$(host)cc_o_c) + +$(OUTPUT)%-flex.o: $(OUTPUT)%-flex.c FORCE + $(call rule_mkdir) + $(call if_changed_dep,$(host)cc_o_c) + # Gather build data: # obj-y - list of build objects # subdir-y - list of directories to nest diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index 150765f2baee..f38a27765604 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -35,3 +35,7 @@ $(PMU_EVENTS_C): $(JSON) $(JSON_TEST) $(JEVENTS_PY) $(METRIC_PY) $(METRIC_TEST_L $(call rule_mkdir) $(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) $(JEVENTS_ARCH) $(JEVENTS_MODEL) pmu-events/arch $@ endif + +$(OUTPUT)pmu-events/pmu-events.o: $(PMU_EVENTS_C) + $(call rule_mkdir) + $(call if_changed_dep,$(host)cc_o_c) From patchwork Wed Jul 26 13:36:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 126419 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp447536vqo; Wed, 26 Jul 2023 07:36:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+qcU2hYR7gOYbwK5G6bY1M29PZ3iv69WNvNuKqScBqS077P1ZruE9MH7fXM/gDdzIFQOc X-Received: by 2002:a17:902:e80f:b0:1bb:3406:a612 with SMTP id u15-20020a170902e80f00b001bb3406a612mr2222171plg.57.1690382213965; Wed, 26 Jul 2023 07:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690382213; cv=none; d=google.com; s=arc-20160816; b=wKa19KwnIgHsqKzQmxnsO7oKg9nwl+wrvgzVySOqk/Q/N/BVuHeeG8BIXMuNgDBmOd s2YnkQwX1oYBZsTfccD9JoRpHfVs0RpByXrVDvwB9SrtZiJDu5vUG1PtevrGJvDwGOOl Sg344c+xTlvetvhDcmCdthy61tqrA+8lu3td1PJNdx/8SsaTq+n22rn0OdPRcUE/8+He 0IEcsbwVqt5siTRq4Bd7E8ZpE7L+CFzw9ij75kCQ47NqNdklmblsEKzFGIkLVQgm+J4H 7kXYONHXVzybr6PSJsvJAdj/Mzur5QxZnJTKmvkpvlwQxQp8R8JyiKnQ0S733EexU9ag McFA== 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:sender :dkim-signature; bh=3qde5oqHOAvsDSREhKG9It0ouCEwVKT5mPlK+bDyfn8=; fh=0+7a5fu/FUeiIqPazwYnsTJzAAsSbc1CLnWMxuTAMQQ=; b=Op4mt0Lc4xfeWYMViel74WMm5nEegh6enABH2VE4BKwDP04Fj9qSu0evB8N4LTNudH YIrLuLGf2uEXxR2wt0XyM5dla8dNGIwrRPCj8cat+UTMwh92XbQZDSLLHOezC/w73bFY f/ekFBuomkXn/N0rPRFovR24w9cbfo3kyXP3l8lIO9xnP4tnx8/Ncq0EfEHpQgNHtG2t ZMGzlHWvOq/8e/BSsWEBGPcJEMlNyGT6s0vQqGL/WA4aNnYbH+d/1BpGOLvG5Xa/vsuM /8VkQMVLWaen0Jlvwq4QbE+llUCC7Gk9qF5RSqR40dnks1am/YV8r090M7ogd4OLDHVL Na3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rneJtUcl; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a170902c40b00b001b89fd6bec4si14225331plk.144.2023.07.26.07.36.39; Wed, 26 Jul 2023 07:36:53 -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=20221208 header.b=rneJtUcl; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234074AbjGZNg7 (ORCPT + 99 others); Wed, 26 Jul 2023 09:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbjGZNgy (ORCPT ); Wed, 26 Jul 2023 09:36:54 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D668E1734; Wed, 26 Jul 2023 06:36:52 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1bb7b8390e8so22745035ad.2; Wed, 26 Jul 2023 06:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690378612; x=1690983412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=3qde5oqHOAvsDSREhKG9It0ouCEwVKT5mPlK+bDyfn8=; b=rneJtUcl30vC39kDvh6x+a76gLDmYJAkBzKP7aG3pFg1C3ryu8gJfBnKVm70cc3+LQ uBirqVzGIsqygHIuus6YjLwNCf8VYDUOorB/g0f1dg2gHb+IXNYlgvOibtpmUGAOvSpz +a3AVG1chnPpM/dm1/0uzr4gfPxFSoIwQuPH7t0NWyv8IOTlazh9dVQohPwaHh9vHF1S ieF2yle5Lymz3dF5RDIlqoZztGg78FyY1ifDXn1Ly7/tymZ9tFhu9BKgTLN8+dko+iYp 4GRCMGREZe6uPhRLHX9l/dluODpWd8qM1STadRcugZN9TojqXqA83DdZGcWxtnDAu5G3 ercQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690378612; x=1690983412; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=3qde5oqHOAvsDSREhKG9It0ouCEwVKT5mPlK+bDyfn8=; b=KIbCxMzNXwoj9/MUu7cHaWZc1GWMHULQtHXhOosaM8ihHtG+QaQXM818QheI7VCMK4 UcFbQPJdNB//za7UsUWUdAWLcEIn7LGVZWfRZ0sv4LAHXl3c6AtoT4pzpTM+lMJ8dyCu phVl3Sx6GPDmofEi8+45yG/j+P47bY7QOPmDh0oAQyi6yA7vIeJmNHPYNpjBV8PkWjEr rTP/ZTV0DQFkBL2lSLTj3hkwck9d8ruakFNCimnGO6do0NuoH8S6kOb+Gix7SX26DfhY lb0HZNTxX1KGBIGO2ngbgFP3M85CvvxO/Z7+req188M6jevnCMwMCkdTNf/Du62RIvyO QA6g== X-Gm-Message-State: ABy/qLah+KzNKpNjRsD/dVVsyVzGJVbM7fHw05Un07UPWvFB6GV8qPO2 FbMyVNCoQTu5SoiAg7rF4WA= X-Received: by 2002:a17:902:d487:b0:1bb:c5b5:8353 with SMTP id c7-20020a170902d48700b001bbc5b58353mr2195782plg.4.1690378612102; Wed, 26 Jul 2023 06:36:52 -0700 (PDT) Received: from bangji.roam.corp.google.com ([114.129.115.132]) by smtp.gmail.com with ESMTPSA id q8-20020a170902b10800b001b8baa83639sm13206369plr.200.2023.07.26.06.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 06:36:51 -0700 (PDT) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Anup Sharma , stable@vger.kernel.org Subject: [PATCH 2/2] perf build: Include generated header files properly Date: Wed, 26 Jul 2023 06:36:42 -0700 Message-ID: <20230726133642.750342-2-namhyung@kernel.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230726133642.750342-1-namhyung@kernel.org> References: <20230726133642.750342-1-namhyung@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772494220456640823 X-GMAIL-MSGID: 1772494220456640823 The flex and bison generate header files from the source. When user specified a build directory with O= option, it'd generate files under the directory. The build command has -I option to specify the header include directory. But the -I option only affects the files included like <...>. Let's change the flex and bison headers to use it instead of "...". Fixes: 80eeb67fe577 ("perf jevents: Program to convert JSON file") Cc: stable@vger.kernel.org Signed-off-by: Namhyung Kim --- tools/perf/pmu-events/jevents.py | 2 +- tools/perf/util/bpf-filter.c | 4 ++-- tools/perf/util/expr.c | 4 ++-- tools/perf/util/parse-events.c | 4 ++-- tools/perf/util/pmu.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py index 12e80bb7939b..82c42c46d886 100755 --- a/tools/perf/pmu-events/jevents.py +++ b/tools/perf/pmu-events/jevents.py @@ -999,7 +999,7 @@ such as "arm/cortex-a34".''', _args = ap.parse_args() _args.output_file.write(""" -#include "pmu-events/pmu-events.h" +#include #include "util/header.h" #include "util/pmu.h" #include diff --git a/tools/perf/util/bpf-filter.c b/tools/perf/util/bpf-filter.c index 0b30688d78a7..47f01df658d9 100644 --- a/tools/perf/util/bpf-filter.c +++ b/tools/perf/util/bpf-filter.c @@ -9,8 +9,8 @@ #include "util/evsel.h" #include "util/bpf-filter.h" -#include "util/bpf-filter-flex.h" -#include "util/bpf-filter-bison.h" +#include +#include #include "bpf_skel/sample-filter.h" #include "bpf_skel/sample_filter.skel.h" diff --git a/tools/perf/util/expr.c b/tools/perf/util/expr.c index 4814262e3805..7410a165f68b 100644 --- a/tools/perf/util/expr.c +++ b/tools/perf/util/expr.c @@ -10,8 +10,8 @@ #include "debug.h" #include "evlist.h" #include "expr.h" -#include "expr-bison.h" -#include "expr-flex.h" +#include +#include #include "util/hashmap.h" #include "smt.h" #include "tsc.h" diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index acde097e327c..f3773467c103 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -18,8 +18,8 @@ #include "debug.h" #include #include -#include "parse-events-bison.h" -#include "parse-events-flex.h" +#include +#include #include "pmu.h" #include "pmus.h" #include "asm/bug.h" diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 7f984a7f16ca..b6654b9f55d2 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -19,8 +19,8 @@ #include "evsel.h" #include "pmu.h" #include "pmus.h" -#include "pmu-bison.h" -#include "pmu-flex.h" +#include +#include #include "parse-events.h" #include "print-events.h" #include "header.h"