Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2529274iog; Sun, 26 Jun 2022 19:06:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tuGGPWqR7Zw4ypkJAx6EZyKWYeWofSb97/z8n18kjO0UE/6f8j5yG79LBTkww6/R/mOcT9 X-Received: by 2002:a05:6402:274a:b0:435:9807:7752 with SMTP id z10-20020a056402274a00b0043598077752mr14511425edd.63.1656295561628; Sun, 26 Jun 2022 19:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656295561; cv=none; d=google.com; s=arc-20160816; b=SUbEwswxGUSUMfAfRVfEUlZxFSK3MZQJPo7bnssXh5gZhJJjseYyPUI5q5fTeUWq2d CHIk+i/Di0HSlRTTCzJl4NKogV74RKMbdc+cKA4hhdmt6FuafXHL4B2w1NZED6dqXiwn 6OgHOH60e4h1RnJaES0n36xJj0NP3jvrwbJz5mkvvog//hwC7UgkZ28OrFNkQS3pU88p R6pNKt12M05GtXn2nSFSdRBi+pFixDskh9+oVgPZBzDOR16mLlROT3AMzR4RlpCVTVxs mJJWXyY03ng7Jutb34Pye6oT+DxWMR4kE37yd0GR6GDRwmchpVgnAS4a1Ig786wNbDfP XMfA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cFzsYDSniCnlBZ03HwKNu3S5QmFfxy2xvMgtRDJMZis=; b=fqvx/Qe91oPVBX/YwyOU/UtDQoLYlC8gryhmsrNuqfvny+py+Lo+hDPKi9EITrnGk/ BI9KUc+F4MLYdRdTTrcdP37xssWkJlhUbd6kXJC74YjSctbz6D98cAmkNaX044aDp8Ou YCibTWH9NBdj1zkQooEYmmpfZkiV0ysY/UgDjYajMJjYdP4FmY0czsEubntSa3wb/jKb iHyVFUHyfsXUWYW+hvG4r6uPh7M/dSIMjgfthunoTm1bL2H9cr5kgqzHhxj+S3yNSWh1 Q69gn7drgd7THcq+9Yj1cMxypuHATrafBxqJn5gWVCPzX6H9uetEIEjl6wsyd8xLzduI s66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W9NMxYS6; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170906434f00b00718d12b354fsi9992729ejm.296.2022.06.26.19.05.37; Sun, 26 Jun 2022 19:06:01 -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=@linaro.org header.s=google header.b=W9NMxYS6; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230085AbiF0CDH (ORCPT + 99 others); Sun, 26 Jun 2022 22:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiF0CDG (ORCPT ); Sun, 26 Jun 2022 22:03:06 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53619F4C for ; Sun, 26 Jun 2022 19:03:05 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id g10-20020a17090a708a00b001ea8aadd42bso8039471pjk.0 for ; Sun, 26 Jun 2022 19:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cFzsYDSniCnlBZ03HwKNu3S5QmFfxy2xvMgtRDJMZis=; b=W9NMxYS6VjeyTC2cMMP/U2hMAgucbyOeYIMRtdhZhBzWM9I5CHJvC78CT5KjWoRSaI YMzEn64lLecRyWTMhmh0DrHudZ2V8CW8H/fh2J5A0kUiPIXFaaiKzPzEaOeWTlieEib0 RzNwvSJPuZS6TGyznaBwVLM9izVf6IwyagW8sNL0vyHz9rXDH9/INPnaOfE4mNWGB6+j EHtJnShucEnJpz2SjeJ3B06AvpibDKU7g8RGBvsSTA6UqjenJhNn4rlQ3c05GJmR4qcl Lk+TrcPs0cWqt6+Kmek4rYYmJccguriPiiBOQudPQNC9JtmDL6HWcSgH0IN2z+JLduXZ gFmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cFzsYDSniCnlBZ03HwKNu3S5QmFfxy2xvMgtRDJMZis=; b=M9b67GF0e1ynvj8wT4T1IbhxIitXEKQ9b/gGiDyPdzSx32q1zI97gsqjiCmOtLuGfQ 7l7HJmat5pFYwc/15nLDjbheJQEi6m/n1l/gkB02FfczQbTF4cUomVrayE5zCpZvi5jS +OVbP/NNhMMGWuFfZoYqVBOxu9lNcEPtqcNxlNX7rwPFeKWazEZQb3C5NLkTVPKCBilH p2+ptkKbNCkN5Nb0WH6zRF6FTExrBwGAc64sGPWSjYTGuhdr7l/Ah+wftWqLGqgxS20u j/lbY6Sow1REI/Z16+ys7bioTsusMp+oK12tF8AyAzwwg/2mea3q92V9jYmiPwLpHNLy BXaA== X-Gm-Message-State: AJIora+5d8ISPAtnreGdombAPF8+05Mk64Kr3hwcq55PNkN4GtQnBeAo FljPX1EQ/ECO2S0lzeM3Xzil/A== X-Received: by 2002:a17:90b:4c86:b0:1ec:cc0f:32da with SMTP id my6-20020a17090b4c8600b001eccc0f32damr18286077pjb.66.1656295384629; Sun, 26 Jun 2022 19:03:04 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([103.135.249.206]) by smtp.gmail.com with ESMTPSA id g8-20020a056a00078800b0050e006279bfsm5834982pfu.137.2022.06.26.19.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jun 2022 19:03:04 -0700 (PDT) Date: Mon, 27 Jun 2022 10:02:56 +0800 From: Leo Yan To: Yicong Yang Cc: gregkh@linuxfoundation.org, alexander.shishkin@linux.intel.com, james.clark@arm.com, will@kernel.org, robin.murphy@arm.com, acme@kernel.org, jonathan.cameron@huawei.com, john.garry@huawei.com, helgaas@kernel.org, lorenzo.pieralisi@arm.com, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mark.rutland@arm.com, joro@8bytes.org, shameerali.kolothum.thodi@huawei.com, peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-perf-users@vger.kernel.org, iommu@lists.linux-foundation.org, prime.zeng@huawei.com, liuqi115@huawei.com, zhangshaokun@hisilicon.com, linuxarm@huawei.com Subject: Re: [PATCH v9 5/8] perf tool: Add support for HiSilicon PCIe Tune and Trace device driver Message-ID: <20220627020256.GB143063@leoy-ThinkPad-X240s> References: <20220606115555.41103-1-yangyicong@hisilicon.com> <20220606115555.41103-6-yangyicong@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220606115555.41103-6-yangyicong@hisilicon.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jun 06, 2022 at 07:55:52PM +0800, Yicong Yang wrote: > From: Qi Liu > > HiSilicon PCIe tune and trace device (PTT) could dynamically tune > the PCIe link's events, and trace the TLP headers). > > This patch add support for PTT device in perf tool, so users could > use 'perf record' to get TLP headers trace data. > > Signed-off-by: Qi Liu > Signed-off-by: Yicong Yang Just one minor comment. [...] > diff --git a/tools/perf/util/hisi-ptt.h b/tools/perf/util/hisi-ptt.h > new file mode 100644 > index 000000000000..2db9b4056214 > --- /dev/null > +++ b/tools/perf/util/hisi-ptt.h > @@ -0,0 +1,19 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * HiSilicon PCIe Trace and Tuning (PTT) support > + * Copyright (c) 2022 HiSilicon Technologies Co., Ltd. > + */ > + > +#ifndef INCLUDE__PERF_HISI_PTT_H__ > +#define INCLUDE__PERF_HISI_PTT_H__ > + > +#define HISI_PTT_PMU_NAME "hisi_ptt" > +#define HISI_PTT_AUXTRACE_PRIV_SIZE sizeof(u64) > + > +struct auxtrace_record *hisi_ptt_recording_init(int *err, > + struct perf_pmu *hisi_ptt_pmu); > + > +int hisi_ptt_process_auxtrace_info(union perf_event *event, > + struct perf_session *session); The function hisi_ptt_process_auxtrace_info() is introduced by next patch for support PTT decoding, for good practice (e.g. keep bisection), it's good to introduce function declaration and definition in one patch. With this fixing, this patch looks good to me: Reviewed-by: Leo Yan > + > +#endif > -- > 2.24.0