From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BBB3C76196 for ; Mon, 10 Apr 2023 06:34:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbjDJGez (ORCPT ); Mon, 10 Apr 2023 02:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjDJGey (ORCPT ); Mon, 10 Apr 2023 02:34:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE4F040FF; Sun, 9 Apr 2023 23:34:52 -0700 (PDT) Received: from kwepemi500013.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PvzdL5GXrznbZT; Mon, 10 Apr 2023 14:31:18 +0800 (CST) Received: from M910t (10.110.54.157) by kwepemi500013.china.huawei.com (7.221.188.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 10 Apr 2023 14:34:49 +0800 Date: Mon, 10 Apr 2023 14:34:34 +0800 From: Changbin Du To: Namhyung Kim CC: Changbin Du , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , , , Hui Wang Subject: Re: [PATCH v2 2/2] perf: script: add new output field 'dsoff' to print dso offset Message-ID: <20230410063434.t5m6gttzukbymvb7@M910t> References: <20230407055212.2701635-1-changbin.du@huawei.com> <20230407055212.2701635-3-changbin.du@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Originating-IP: [10.110.54.157] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500013.china.huawei.com (7.221.188.120) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org On Fri, Apr 07, 2023 at 02:24:48PM -0700, Namhyung Kim wrote: > Hello Changbin, > > On Thu, Apr 6, 2023 at 10:53 PM Changbin Du wrote: [snip] > > @@ -574,6 +576,9 @@ static void set_print_ip_opts(struct perf_event_attr *attr) > > if (PRINT_FIELD(DSO)) > > output[type].print_ip_opts |= EVSEL__PRINT_DSO; > > > > + if (PRINT_FIELD(DSOFF)) > > + output[type].print_ip_opts |= EVSEL__PRINT_DSOFF; > > What if the user gives 'dsoff' without 'dso'. Better to set the > EVSEL__PRINT_DSO as well? > It will be dropped currently. I will make 'dsoff' implicitly add 'dso' field later. > Thanks, > Namhyung > -- Cheers, Changbin Du