Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp531266rwb; Thu, 27 Jul 2023 17:17:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGJpBf2BKTTobmH9B5IuKJOMcTDWDCluNUhU98HLv4AB+o+8FEdCZySNzIkxtGszavW54Q X-Received: by 2002:a05:6512:1196:b0:4fb:7cea:882a with SMTP id g22-20020a056512119600b004fb7cea882amr541788lfr.3.1690503457043; Thu, 27 Jul 2023 17:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690503457; cv=none; d=google.com; s=arc-20160816; b=oUNYeG2ZZGrURu7JQ77a7Ym2mHvE81oFL+wT/eOYOsPpayjnuej2AaRDOLCk5p/n0P PitJIn0Bu8RrYSOy5wdE/BHhCqkKDy3u+vRBZOgom+Ji1erouv57Ix5VmHcuZSkUb6lY w+dvQzc8arP0nWynE9jbqbikukhOwXZtcr7rAZOeZ+93NLz3EnVEUVD3CkFYxe6rLUxE F4+p+1lk3dK4GAPsJHeAej8tDJuoD127bEdlLORix1teu+VAHkcfmBEjy4+mIV/KKDwW YYbwFKyhTkNQPJ0PTtVAWjhN+c4h3bYBfXiuPG2PnxzITvnCrEQ6BvTXG/z7IJ26lYgt vvlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=Pjo35PlF/wWvhS1Cmx8bdMFmFen6pv+m7YZnMKsM5hM=; fh=5F7CF02SThLXmbX2PSXlBUcf/GKobYuFBd/4z18HIQI=; b=BYgoZVcpnVaaCziJ7Oh03ynB7xjSCfNiB+sfMjE1QkcJ1noSL/lyfYdWDrgM49t2wH i36yORhNJSDKWzfc43Gr8SbrU883pI5cKMgqKc10QcTMkXXsxuBAolTM74n4z0yg4FoQ Yy5tB1Cz/ltNA0FpPxDSy7ENMt5FFFQUiMBXoCHu6ze0ODoRtDMPNG9grO5uFdZ3k4Al yAIpNQKfWkFQRlzkEU5rbi/yxD9tlIcQL8RKxpGMB2oIIWm4UGHZ5O8oBTGkwmFJISXw tFD2R5T6PgEo9LD1xFTQyoPfc6tFYdY0Arocz4nbnGvPDpzR7Rukd0M4HhZNnMkcyrSL MWhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Kxi7gcEH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a1709064a8e00b0099207b3bc46si1741717eju.322.2023.07.27.17.17.12; Thu, 27 Jul 2023 17:17:37 -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=@google.com header.s=20221208 header.b=Kxi7gcEH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231984AbjG1ANA (ORCPT + 99 others); Thu, 27 Jul 2023 20:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjG1AM7 (ORCPT ); Thu, 27 Jul 2023 20:12:59 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7099C269E for ; Thu, 27 Jul 2023 17:12:54 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d052f58b7deso1454349276.2 for ; Thu, 27 Jul 2023 17:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690503173; x=1691107973; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=Pjo35PlF/wWvhS1Cmx8bdMFmFen6pv+m7YZnMKsM5hM=; b=Kxi7gcEHRIDlZ8Dkc2GhTzNZ20lYfZCvlq+ldSJviigTVdp0JZgOz5hqDz2Aa+rfvi ALuAGwd59azVJCigV88ctSOJRFGTPP4BBeZmqsXtVJHiu8EPgdhC+vGXNffNbbA7hgqk ch9Vw/sRFCzPTn5XUWe6FfCeQ5btSOpQNPO+NUm5v+uKBT5PVH+SPSlp1/7oen9+0w2w k3RM8rts+l34AAbcdCkYj/0SI/q7OatEGzGM/HC+I4fcH9sd9tJNIiSqVDD7ku8+8viG bkmvcEUxK/AocjL1j0qx0gGXFo9PmD6uL+XwQYpa4obRkNKAZhZPCKBbc0//y5EraIMJ ZKyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690503173; x=1691107973; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Pjo35PlF/wWvhS1Cmx8bdMFmFen6pv+m7YZnMKsM5hM=; b=eUg2hqAQ5ATHqpnt4b9mVnCQyldnk75xd4Z2CKj+TLQSdn6Xd8VYMe4gHFIcmOllma /1c8C1XIb8vAqgf+KaQIHjgr5ShSji3Gv4/mulxInYUXczVJYjDPHEwC/xTab2xt95MY klT6DHFHyyOWcYeu5w3hRTdnTnyqyXuM1SX+dP5c0CXGBgMjtRqzLo8mxiRShExoAj3A cnw7pox723kxgh4Uep5FbYSiyK7/1ZdrHHrBJ/uiedetTiP5l99kn2j3q8AhOAtmyKiV PhxqvYkA07S1B1qK/RaHFnLXOfdA2NNXIeLPMX6UfTRfPK8WAIWGH1sPGmMKHxeNBsaV ZzSw== X-Gm-Message-State: ABy/qLYCgAezNijDtCwGNkIU5ujPzi/QE6eMF0K/KNxZ4nOROa7RP3cc 5mkqC6TVG0jMVVyMKjYocwKReYcQMvMW X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:3d03:ff18:af30:2dad]) (user=irogers job=sendgmr) by 2002:a25:37d8:0:b0:c64:2bcd:a451 with SMTP id e207-20020a2537d8000000b00c642bcda451mr973yba.7.1690503173648; Thu, 27 Jul 2023 17:12:53 -0700 (PDT) Date: Thu, 27 Jul 2023 17:12:09 -0700 Message-Id: <20230728001212.457900-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Subject: [PATCH v1 0/3] Remove BPF arrays from perf event parsing From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Eduard Zingerman , Kan Liang , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Wang Nan , Wang ShaoBo , YueHaibing , He Kuang Cc: Ian Rogers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Event parsing was recently refactored: https://lore.kernel.org/all/20230502223851.2234828-1-irogers@google.com/ During these changes I wanted to get coverage of all parts of the parse-events.y and found that I couldn't test the array code. The first patch fixes a BPF testing issue. The 2nd and 3rd patch remove the BPF array event parsing code so that it isn't adding complexity to event parsing. Ian Rogers (3): perf parse-event: Avoid BPF test segv perf tools: Revert enable indices setting syntax for BPF map perf parse-events: Remove array remnants tools/perf/util/bpf-loader.c | 101 --------------------------- tools/perf/util/parse-events.c | 18 +---- tools/perf/util/parse-events.h | 10 --- tools/perf/util/parse-events.l | 11 --- tools/perf/util/parse-events.y | 122 --------------------------------- 5 files changed, 2 insertions(+), 260 deletions(-) -- 2.41.0.487.g6d72f3e995-goog