Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3745271rwl; Sun, 9 Apr 2023 23:45:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YXUsvASDcR/sLRTqv0t6bwg+yT/IKsRMXv4N3hXF06wiDlXFi5W9J/SETr4mm7IPa7omxM X-Received: by 2002:a05:6402:292:b0:502:4862:d453 with SMTP id l18-20020a056402029200b005024862d453mr8808998edv.3.1681109139318; Sun, 09 Apr 2023 23:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681109139; cv=none; d=google.com; s=arc-20160816; b=H0gW+7iqLmOL0FkzOIJU3S7RIAosW552nApxsDdrSsRV49edDT5KQN2hGUuyaOmwic 4ClGxgYvSL75UI5eInDeEmt8TXviUKKP9nMlyrd6Xw87/42ZHFgRoluyws02Uj423mK3 6+J6DfmqRA8EESZ2WuyJmBC3BbMenNx2CP9D9+IbW4BKHujtVedYiyMtzJpsELYkm5JU vTtq3LC7SSoRpSsRdRh8dix/VFZC+U8RNaJtx/epr9oOmjz8OcZG1IKfrofWaG2NDdk/ uFnRwdYGRt7nnG/dOcBxju7Xg0xZTy4oOK//1h1KnLpcsybnd/QI2T1vbBoE9O5zgNL0 G7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ymdPJHruF1Puk7L2P3xRGkaMlfonV1BI/pLCqRmVLlQ=; b=ZaPAbp/YXrAOdZE7dYlS8/tuZuEd33s1+BoGo8tFXpKYxKMUZC+AnwZl05Ir0pc108 t55PNftE8gF3kBSalgj8Vf94fQqtM9EB9TQAvwufH9KBL9fr7dsHfq428GtyBFvw/MME Z4zsr7jqY5K/AHbSYJcLjmkVN4KdMqgxc+ZVtArq5Td/XpwW9LlOCNKkZUhBUu1tIyS6 ybX8juXNKjWnX+leGhRNh8RSORaBED03DIHJkM7jknv403oytD3XoUOWyZKV18NneHvT WdnA/mZJ/GtaDp4nsvA8/IUHZmIVp452b/YhsH/jN7m4EOoLRm39OF9WYYp9aF6AMRNP p0fQ== 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 k1-20020aa7c041000000b0050476f7c049si7518024edo.682.2023.04.09.23.45.14; Sun, 09 Apr 2023 23:45: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 S229641AbjDJGez (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 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