Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177683428
D61679.1795024432.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
462 B
Referenced Files
None
Subscribers
None
D61679.1795024432.diff
View Options
diff --git a/sys/amd64/pt/pt.c b/sys/amd64/pt/pt.c
--- a/sys/amd64/pt/pt.c
+++ b/sys/amd64/pt/pt.c
@@ -612,6 +612,11 @@
dprintf("%s\n", __func__);
if (ctx->mode != HWT_MODE_CPU)
return (0);
+
+ /* Concurrent MODE_CPU tracing sessions are not allowed. */
+ if (atomic_swap_32(&cpu_mode_ctr, 1) != 0)
+ return (-1);
+
TAILQ_FOREACH(hwt_cpu, &ctx->cpus, next) {
error = pt_init_ctx(&pt_pcpu_ctx[hwt_cpu->cpu_id], hwt_cpu->vm,
hwt_cpu->cpu_id);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 5:53 PM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41829330
Default Alt Text
D61679.1795024432.diff (462 B)
Attached To
Mode
D61679: amd64/pt.c: Prevent backend initialization for concurrent CPU tracing sessions
Attached
Detach File
Event Timeline