projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0dd27a
)
hwtracing: hisi_ptt: Don't try to attach a task
author
Yicong Yang
<yangyicong@hisilicon.com>
Tue, 10 Oct 2023 08:47:30 +0000
(16:47 +0800)
committer
Suzuki K Poulose
<suzuki.poulose@arm.com>
Mon, 13 Nov 2023 09:43:46 +0000
(09:43 +0000)
PTT is an uncore PMU and shouldn't be attached to any task. Block
the usage in pmu::event_init().
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link:
https://lore.kernel.org/r/20231010084731.30450-5-yangyicong@huawei.com
drivers/hwtracing/ptt/hisi_ptt.c
patch
|
blob
|
history
diff --git
a/drivers/hwtracing/ptt/hisi_ptt.c
b/drivers/hwtracing/ptt/hisi_ptt.c
index
dbed4fd
..
a991ecb
100644
(file)
--- a/
drivers/hwtracing/ptt/hisi_ptt.c
+++ b/
drivers/hwtracing/ptt/hisi_ptt.c
@@
-1000,6
+1000,9
@@
static int hisi_ptt_pmu_event_init(struct perf_event *event)
return -EOPNOTSUPP;
}
+ if (event->attach_state & PERF_ATTACH_TASK)
+ return -EOPNOTSUPP;
+
if (event->attr.type != hisi_ptt->hisi_ptt_pmu.type)
return -ENOENT;