]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/hw_breakpoint.c
perf: Provide a separate task context for swevents
[karo-tx-linux.git] / kernel / hw_breakpoint.c
index 6f150095cafe14e247c27eee6ba4f1461c195b18..3b2aaffb65f019505f5265a7b9f5c5165e6dad5a 100644 (file)
@@ -610,6 +610,8 @@ static void hw_breakpoint_stop(struct perf_event *bp, int flags)
 }
 
 static struct pmu perf_breakpoint = {
+       .task_ctx_nr    = perf_sw_context, /* could eventually get its own */
+
        .event_init     = hw_breakpoint_event_init,
        .add            = hw_breakpoint_add,
        .del            = hw_breakpoint_del,