summaryrefslogtreecommitdiff
path: root/include/linux/coresight.h
diff options
context:
space:
mode:
authorJie Gan <quic_jiegan@quicinc.com>2025-03-03 11:29:25 +0800
committerSuzuki K Poulose <suzuki.poulose@arm.com>2025-03-04 18:06:18 +0000
commit3c03c49b2fa59c4d456e2d673fe5847fa6cbcdf2 (patch)
tree799282a022c2ac028774ab7701210e90e75634d1 /include/linux/coresight.h
parent182e8c70791d68d332b33d5c6e849628f89cdf0d (diff)
Coresight: Introduce a new struct coresight_path
Introduce a new strcuture, 'struct coresight_path', to store the data that utilized by the devices in the path. The coresight_path will be built/released by coresight_build_path/coresight_release_path functions. Signed-off-by: Jie Gan <quic_jiegan@quicinc.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20250303032931.2500935-5-quic_jiegan@quicinc.com
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r--include/linux/coresight.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 1396bda77f3f..509e1f256412 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -329,6 +329,16 @@ static struct coresight_dev_list (var) = { \
#define to_coresight_device(d) container_of(d, struct coresight_device, dev)
+/**
+ * struct coresight_path - data needed by enable/disable path
+ * @path_list: path from source to sink.
+ * @trace_id: trace_id of the whole path.
+ */
+struct coresight_path {
+ struct list_head path_list;
+ u8 trace_id;
+};
+
enum cs_mode {
CS_MODE_DISABLED,
CS_MODE_SYSFS,