Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp242608rwb; Wed, 10 Aug 2022 07:37:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EJ508c1brm78xHBjAPOzr0ozwunl/x21TjagKLcJQsDwKu3ceVJ97+zmOKhrghC7BYDmQ X-Received: by 2002:a17:90b:35c3:b0:1f5:8a88:3b94 with SMTP id nb3-20020a17090b35c300b001f58a883b94mr4010027pjb.201.1660142259923; Wed, 10 Aug 2022 07:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660142259; cv=none; d=google.com; s=arc-20160816; b=OBYpNng8MZdAIT1fXU8buFsiMOB0dAltzT7kqYcVElFjXRSq+kSBra406/W8bFmxKQ QUhxLttqrmX2IBBFQtxvOek3Q809DaDz9tENfmXchhzJw+DRXbYp3LmFJZ3yaK4J0kgQ xuqV57s2097UnqFwPaQZoIIhN9Sld2GpaJ/nHrTyzFnAFwNT3T3/qq12pBR1WazWaXHA dKWJYddUSuA2rz6BwT2EJjfSRfLON6q5oelHXULMUm6u/R5zmQvcT85Yjy1NYgK2mMjE xjjNHBlGiefe69QxzRpZYl9fsZ7CuT2j/DBkZrRH2+1M8IvdOEU1Z8bbyw1Xox3OrJMT 3ndA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PxC7taMylQDUHixSMWrpX0lBX/KvvsQMV/F2vgDXG0c=; b=MeKpbi9SzqEW8snqStuO+QeLQ+kGlGRqcOQk8heVGkWOC6NFP8biF9dtChlxt2GFgf i2gHMG/KpZC/gioUOYjQ5kI5HXi9hwObRrBWGyO0KKGikxJQm7jg7LancRBHHpgkzXrs rYdQwIEd75YnuflDnWbgjj7Z0br+3nqX6JHQmBGEIkh7MANFFItGjNRS+UrWC+OEU5zC +LGArtASyGSkM+ILdqD3LspfSMPCawS9ZjfxtGwJRVrNZ8Q5jY85tHRJLnhyqCTA3WEF Fog058t5uesxnf6yyAK7uKOru7DxBHR+SK8IbuogRN+7XaEiF4BUTe5h9Q4RfMzjeeu7 hTww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=HGVm54lb; 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 a17-20020a170902ecd100b0015d0c53ae0esi5566191plh.491.2022.08.10.07.37.18; Wed, 10 Aug 2022 07:37:39 -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=20210112 header.b=HGVm54lb; 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 S232471AbiHJO0N (ORCPT + 99 others); Wed, 10 Aug 2022 10:26:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbiHJO0L (ORCPT ); Wed, 10 Aug 2022 10:26:11 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4960B1CFDB for ; Wed, 10 Aug 2022 07:26:10 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id n4so16182947wrp.10 for ; Wed, 10 Aug 2022 07:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=PxC7taMylQDUHixSMWrpX0lBX/KvvsQMV/F2vgDXG0c=; b=HGVm54lbjow5CHbKkhecvtoEv7Dcln74pUP4USjVFB7pMfzJbJx/OxkpzaQ/KTqCKJ Q4XxCbg4qes4bnKM/IPm4Oiv/M9ZhLcKH6BpN6ditlXliiApYs4ZMqOTTVuNliu+blPV 44yoslgnbOAC/GOVFRvZAqC1RCiCORmq7HaBr9fg0ZRTcOUOt5A2tuQherdXkUI8NOR6 TIMhNf1waB2m/vD/JoqFSNjwJi5pKZIFie7H2eE++/R9Nlf9INz9zufJ6F0aT9uRlT3C zMUw3rfoyXHVuesoV7LgOmUgOS/W9pL5oe6aIT4CcNxSTMAJGKF/hwlg1iBru9eBtqPN FKCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=PxC7taMylQDUHixSMWrpX0lBX/KvvsQMV/F2vgDXG0c=; b=pvCYgjkjhohJYRJt0YM0JiWLUqA/7ilwc6bwWG2mu7a5r/H3NldjKcPnwwRA6Km9bx fabcl7F9Ryv/lG9nvMQkmrfLdDcszV5NZbSGASUsxxcZH0NcTk05g9IOP6oH3HMRRyON 2Bb8KBOVTyUV15v2552SJ7ejIDDL/kYiTrn3wLCul3/xgKChz83YOvwUJ0tbeSh1ADGp C5xaRj7r+GJ3WXJiz+Nejx/GFyh6BEEMYf1pldlkYSQRzuDaE67hQvnEBj3eMrS54t/j ByBPil15EOQpFgC/dztWI/4dPOK7XwDhwQqgR/cCgZUM1U8tVv3B5fD/xiiFYQWQQCkp 5UFw== X-Gm-Message-State: ACgBeo2lqF9H+y4uBgfnHVeDLquVgMn2j6uO7cG17ZupMdekjCB4u9n9 fVZnwtrD9zfxDFyuGWE2Awv9wr9LBJnSN3dqwWwPvA== X-Received: by 2002:adf:e28d:0:b0:21e:4c3b:b446 with SMTP id v13-20020adfe28d000000b0021e4c3bb446mr17038394wri.300.1660141568603; Wed, 10 Aug 2022 07:26:08 -0700 (PDT) MIME-Version: 1.0 References: <20220804221816.1802790-1-irogers@google.com> <20220804221816.1802790-9-irogers@google.com> <04e1e8c1-d060-6658-141a-b7c1b7dd8400@huawei.com> In-Reply-To: <04e1e8c1-d060-6658-141a-b7c1b7dd8400@huawei.com> From: Ian Rogers Date: Wed, 10 Aug 2022 07:25:56 -0700 Message-ID: Subject: Re: [PATCH v4 08/17] perf pmu-events: Hide pmu_sys_event_tables To: John Garry Cc: Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andi Kleen , Zhengjun Xing , Ravi Bangoria , Kan Liang , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Aug 5, 2022 at 4:15 AM John Garry wrote: > > On 04/08/2022 23:18, Ian Rogers wrote: > > Move usage of the table to pmu-events.c so it may be hidden. By > > abstracting the table the implementation can later be changed. > > > > Signed-off-by: Ian Rogers > > Reviewed-by: John Garry > > > - const struct pmu_event *sys_event_tables = __test_pmu_get_sys_events_table(); > > + const struct pmu_event *sys_event_tables = find_sys_events_table("pme_test_soc_sys"); > > Maybe we can change to not need the "pme_" prefix or even some of the > suffix, like "_sys" Ack. Not done here so the change is the smallest possible. Thanks, Ian > > const struct pmu_events_map *map = __test_pmu_get_events_map(); >