Page MenuHomeFreeBSD

D61679.1795026119.diff
No OneTemporary

Authored By
Unknown
Size
462 B
Referenced Files
None
Subscribers
None

D61679.1795026119.diff

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

Mime Type
text/plain
Expires
Wed, Nov 18, 6:21 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41829330
Default Alt Text
D61679.1795026119.diff (462 B)

Event Timeline