From nobody Mon Feb 9 15:09:55 2026 Received: from canpmsgout01.his.huawei.com (canpmsgout01.his.huawei.com [113.46.200.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43E52358D17 for ; Tue, 11 Nov 2025 12:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762863725; cv=none; b=KSgCUIsLX0CsEJbzVsNto3mOwPCmVjJ2hbvboe3qmh9UkSy1tgBOQiOGmvrT3JpjiKAox72CQOj2HgVGcTRdA7rIPkRyQFEsd2TFJh7CRdYprORvRxSkHQ2U/nEWsfd1QsgiZmTSCM0OWsMRMEZw11yar4ErXdKFtRwTGy2m4fo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762863725; c=relaxed/simple; bh=zgiRBQQ7joUu4LKi8ZQiRh7n4uBaFjcvMvGAaP2mNZk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bs4a6N0Y6TwGHrrQKkgjCalEFdjO0Oc9CX5h1/jIlaYf4WMPaQZlXA3HMQA3lU7btxptxX2xDBGfwgdPL+zUXsnuVMo1AI6MqYlOoHfceFH0mpMQX6iJpdPyf0OLlHKGlRZEqxOLa5mckORucfAKs24dTo8l4xohYFOOA2jfXRs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=h-partners.com; spf=pass smtp.mailfrom=h-partners.com; dkim=pass (1024-bit key) header.d=h-partners.com header.i=@h-partners.com header.b=jTTVdMyq; arc=none smtp.client-ip=113.46.200.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=h-partners.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=h-partners.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=h-partners.com header.i=@h-partners.com header.b="jTTVdMyq" dkim-signature: v=1; a=rsa-sha256; d=h-partners.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=UVKgAmWWkoiDmP3wvJgAABngR9HVzXoceStVuahg8hY=; b=jTTVdMyqy3bwE4uRO9tMuFpv+qCp8nCvJk3YAYKOU3rhHukadotGb6KZ2WzvrAe7ntAjikih5 0FokWLKlH6qyiHINXgwUulJ0YNEKuafKo8BG/INOuKmecrfeqOqHQ6ntzzyJXPXX7n3pv53wz+G 0T7FIMHCnNAUSlnOiLeu42I= Received: from mail.maildlp.com (unknown [172.19.163.48]) by canpmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4d5Qbh1vRKz1T4Ff; Tue, 11 Nov 2025 20:20:32 +0800 (CST) Received: from dggemv712-chm.china.huawei.com (unknown [10.1.198.32]) by mail.maildlp.com (Postfix) with ESMTPS id 586651800B1; Tue, 11 Nov 2025 20:21:54 +0800 (CST) Received: from kwepemn500004.china.huawei.com (7.202.194.145) by dggemv712-chm.china.huawei.com (10.1.198.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 11 Nov 2025 20:21:54 +0800 Received: from localhost.localdomain (10.50.163.32) by kwepemn500004.china.huawei.com (7.202.194.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 11 Nov 2025 20:21:51 +0800 From: Junhao He To: , , , , , CC: , , , , , Subject: [PATCH v4 1/3] coresight: tmc: Add missing doc including reading and etr_mode of struct tmc_drvdata Date: Tue, 11 Nov 2025 20:21:47 +0800 Message-ID: <20251111122149.1981162-2-hejunhao3@h-partners.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20251111122149.1981162-1-hejunhao3@h-partners.com> References: <20251111122149.1981162-1-hejunhao3@h-partners.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To kwepemn500004.china.huawei.com (7.202.194.145) Content-Type: text/plain; charset="utf-8" From: Yicong Yang tmc_drvdata::reading is used to indicate whether a reading process is performed through /dev/xyz.tmc. tmc_drvdata::etr_mode is used to store the Coresight TMC-ETR buffer mode selected by the user. Document them. Reviewed-by: James Clark Signed-off-by: Yicong Yang Signed-off-by: Junhao He Reviewed-by: Leo Yan Signed-off-by: Junhao He --- drivers/hwtracing/coresight/coresight-tmc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-tmc.h b/drivers/hwtracin= g/coresight/coresight-tmc.h index cbb4ba439158..dd6c80fbae00 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.h +++ b/drivers/hwtracing/coresight/coresight-tmc.h @@ -221,6 +221,7 @@ struct tmc_resrv_buf { * @pid: Process ID of the process that owns the session that is using * this component. For example this would be the pid of the Perf * process. + * @reading: buffer's in the reading through "/dev/xyz.tmc" entry * @stop_on_flush: Stop on flush trigger user configuration. * @buf: Snapshot of the trace data for ETF/ETB. * @etr_buf: details of buffer used in TMC-ETR @@ -233,6 +234,7 @@ struct tmc_resrv_buf { * @trigger_cntr: amount of words to store after a trigger. * @etr_caps: Bitmask of capabilities of the TMC ETR, inferred from the * device configuration register (DEVID) + * @etr_mode: User preferred mode of the ETR device, default auto mode. * @idr: Holds etr_bufs allocated for this ETR. * @idr_mutex: Access serialisation for idr. * @sysfs_buf: SYSFS buffer for ETR. --=20 2.33.0