Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1110407pxb; Sat, 17 Apr 2021 07:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqa1M0DYYgqfAbMmM/++y1mqgsOaQqp7v10m8WYHFJrMZlJI370ZWdN93ro2c73szvx5jl X-Received: by 2002:a17:906:f56:: with SMTP id h22mr13482404ejj.494.1618668022547; Sat, 17 Apr 2021 07:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618668022; cv=none; d=google.com; s=arc-20160816; b=twjYwoCrzROVSGdSyqqpNWkDxBcTS3rvV/9UcDZaUF0KAndJe2qZ2UbxECQ8JVV9z2 vEVB4cz2jAZqZiTra1pA2PLMPTwnaduF2YGpfky5LPhdnVAm5xJH5yp+1bD0fJP4zvws B0BFEO6RhXDCmEuF4LJYZgfquY4jvxQ1C38vQ7ULt+CxULb/TderxmnwqxOThETRkvqe N4NC9+yoLlq/raUlH4Mph0PaUHbWc11WedMPry+9pYbLalpjD5y/YHQJg57r4eWyLYUv xlfd6CNZjpFZnXls/OXrEQ0bWEV8YVDv3WITDA6RDW6L5+HPQksZXK7anzYNotGZHp2o rnNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=e22iPbYQJlXOkjXvdIEOVGtj3EahAJKlG+knZXCfc7I=; b=02PHIAgdj2gwCGq2SunTrQN3lHGnQVyAb5N+/gPckGjylu6OMj5FbmqCP2ZZeLoaFZ /ihJpxX2PdidiuqlcXeUnw1rvKnt34XbCSx4SNvkPOpCdUOTpF4WrfyeDW+BQ6UaoWqn wRfIrLW7vOTiuuMFfpwG6LZapp1REYBzS0DB8IcwfiYwpd3BfXUsbaqbzNY7L4lI7aSE n4boZ2gH4xOq/ofBmmthrjf/xEzrjmQoJiIYkolkysFNGCNv8Ke1UyQLdQqYgkl3BIlM 25TS5WkN+grAcCb72LWrMW6LCQNGrLq/adSRxGkTq4g0yFzydzsFa5JCUTQh/9iqNgDN YJgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si7842461edd.315.2021.04.17.06.59.59; Sat, 17 Apr 2021 07:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236464AbhDQN5J (ORCPT + 99 others); Sat, 17 Apr 2021 09:57:09 -0400 Received: from mga01.intel.com ([192.55.52.88]:60140 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbhDQN5J (ORCPT ); Sat, 17 Apr 2021 09:57:09 -0400 IronPort-SDR: Sf+tmaw5V7DoCpgOMcizwHoNE5wX8dGGY4jB1iDV8lq8oeL4FhMZlivjo/vXiaMSZiFKMPpQWi xQwzZ9CTYruQ== X-IronPort-AV: E=McAfee;i="6200,9189,9957"; a="215722368" X-IronPort-AV: E=Sophos;i="5.82,229,1613462400"; d="scan'208";a="215722368" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2021 06:56:42 -0700 IronPort-SDR: rfkFROCfAr3fKHP9T+JiF0ymqW11+G9xkVZnj656scJEKzwTA3YPKDnlUNGFmaJQc98VE/wGfM 9iYrN9q4Enhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,229,1613462400"; d="scan'208";a="419459743" Received: from um.fi.intel.com (HELO um) ([10.237.72.62]) by fmsmga008.fm.intel.com with ESMTP; 17 Apr 2021 06:56:36 -0700 From: Alexander Shishkin To: Yicong Yang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-pci@vger.kernel.org Cc: helgaas@kernel.org, gregkh@linuxfoundation.org, lorenzo.pieralisi@arm.com, will@kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, leo.yan@linaro.org, jonathan.cameron@huawei.com, song.bao.hua@hisilicon.com, john.garry@huawei.com, prime.zeng@huawei.com, liuqi115@huawei.com, zhangshaokun@hisilicon.com, yangyicong@hisilicon.com, linuxarm@huawei.com, alexander.shishkin@linux.intel.com Subject: Re: [PATCH RESEND 0/4] Add support for HiSilicon PCIe Tune and Trace device In-Reply-To: <1618654631-42454-1-git-send-email-yangyicong@hisilicon.com> References: <1618654631-42454-1-git-send-email-yangyicong@hisilicon.com> Date: Sat, 17 Apr 2021 16:56:35 +0300 Message-ID: <8735vpf20c.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yicong Yang writes: > The reason for not using perf is because there is no current support > for uncore tracing in the perf facilities. Not unless you count $ perf list|grep -ic uncore 77 > We have our own format > of data and don't need perf doing the parsing. Perf has AUX buffers, which are used for all kinds of own formats. > A similar approach for implementing this function is ETM, which use > sysfs for configuring and a character device for dumping data. And also perf. One reason ETM has a sysfs interface is because the driver predates perf's AUX buffers. Can't say if it's the only reason. I'm assuming you're talking about Coresight ETM. > Greg has some comments on our implementation and doesn't advocate > to build driver on debugfs [1]. So I resend this series to > collect more feedbacks on the implementation of this driver. > > Hi perf and ETM related experts, is it suggested to adapt this driver > to perf? Or is the debugfs approach acceptable? Otherwise use Aside from the above, I don't think the use of debugfs for kernel ABIs is ever encouraged. Regards, -- Ale