Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9222153rwp; Thu, 20 Jul 2023 01:10:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFHePYUSrA4aG0VRV4jz4HoFN6RUJIQVEvDWSy5blaCpMzahQDi8oX8JJ+TnUD7RtQZkNdU X-Received: by 2002:a17:906:3f1b:b0:982:8de1:aad9 with SMTP id c27-20020a1709063f1b00b009828de1aad9mr4062062ejj.64.1689840639537; Thu, 20 Jul 2023 01:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689840639; cv=none; d=google.com; s=arc-20160816; b=JBGiXIENdo2H1UFDYG0rCkQbeDlfkaDJNfeSBzTBQgDxGl0ba/pHG3B56KumlG/9Ex iIHG/dQf2TtEpZxcle8rHYLmaZhjdubwA8eKsR/yR9nqIzznHrOEZX3MbQMwJy9lMcQV tESM6JpbbvCkfH3yuDNYqm6/Kj7YJW4ICjjHD3CrbobPHNO7Do97RRRiO4lpViDiTc6V K7c+DGUrnjYYcvH8naK4VX3wdDA72zRJ+ipxHUDMw8eTLe2MxXqA42rZcodIh2+WLTrk d81W+8uAbFQPlfpQurJ++ns5bu6V7nrhtkktnt+rUKB7vuwSRo2ICuu8LwMfDM65b1M6 lVLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=nMDr7EbwPwDC0GTPiTLZl3XiXXjEGkkqA/OgjPXcEEg=; fh=vrY1nNYkub/3npcxJ4Qc6t+q1gi1T9uFtBiAqpgFLd8=; b=ZtpKKPV5ykV36hhrqjihqkeQuOSWo6rmFJt+/wHDLvdFLeBn9z9BGUjj+0SYS5xDVC Rj+Z54qipbu2O28mw1FM3gGRncvfnFrP9UAztO4zfaJ+1OAuRyeLsTaUFW/0i+s0nCjz 4Ib2xgfCWlghBiDYt7iJbcn0dppWiWek8STs5GP2uS5m+Cy23DGS04r1JTwIX31HNTY/ 92uzluk5wM8Lzp6S9lh0FTXwC7qVYWF+g5T5khZ747gcWdndvOhxTqJSjkGJ7uclOOJZ e4tx9eMlHtZ076gG1qwzPphJ6IKWtEMxT/WZK3IfUmWeu9tUY6XAprjEqc3qblOi+C4q VbXQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a1709060c5800b00993150e5327si351424ejf.341.2023.07.20.01.10.14; Thu, 20 Jul 2023 01:10: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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231521AbjGTHX7 (ORCPT + 99 others); Thu, 20 Jul 2023 03:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbjGTHX5 (ORCPT ); Thu, 20 Jul 2023 03:23:57 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E963C1FCD; Thu, 20 Jul 2023 00:23:55 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R640W4psjzrRh8; Thu, 20 Jul 2023 15:23:07 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 20 Jul 2023 15:23:52 +0800 Subject: Re: [PATCH v2 2/7] perf evlist: Add evlist__findnew_tracking_event() helper To: Ian Rogers CC: , , , , , , , , , , , , , , References: <20230715032915.97146-1-yangjihong1@huawei.com> <20230715032915.97146-3-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <993bd68c-c0ec-4960-d3b0-bd2dbda82402@huawei.com> Date: Thu, 20 Jul 2023 15:23:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello, On 2023/7/20 0:44, Ian Rogers wrote: > On Fri, Jul 14, 2023 at 8:31 PM Yang Jihong wrote: >> >> Currently, intel-bts, intel-pt, and arm-spe may add a dummy event for >> tracking to the evlist. We may need to search for the dummy event for >> some settings. Therefore, add evlist__findnew_tracking_event() helper. >> >> evlist__findnew_tracking_event() also deal with system_wide maps if >> system_wide is true. > > I'm wondering if we can simplify the naming in the API, we have "dummy > event" which makes sense as we literally call the event "dummy", > "sideband" which refers to the kind of samples/events the dummy event > will record but "tracking" I think tends to get used as a verb rather > than a noun. So I think evlist__findnew_tracking_event should be > evlist__findnew_dummy_event. > Uh, from the discussion that followed, it seems that there is no consensus yet... If there is a clear consensus on whether to use "dummy event" or "tracking event", I will change the name of the API. I think sideband event is equivalent to tracking event (refer evsel__config(), tracking events include task, mmap, mmap2, and comm sideband events, which are all sideband). tracking event are instances of dummy event. For example, we create another dummy event to record the text poke event of ksymbol (refer perf record --kcore). An evlist contains only one tracking event, but can contain multiple dummy events. Thanks, Yang