|
@@ -4213,14 +4213,12 @@ int perf_swevent_get_recursion_context(void)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(perf_swevent_get_recursion_context);
|
|
EXPORT_SYMBOL_GPL(perf_swevent_get_recursion_context);
|
|
|
|
|
|
-void perf_swevent_put_recursion_context(int rctx)
|
|
|
|
|
|
+void inline perf_swevent_put_recursion_context(int rctx)
|
|
{
|
|
{
|
|
struct perf_cpu_context *cpuctx = &__get_cpu_var(perf_cpu_context);
|
|
struct perf_cpu_context *cpuctx = &__get_cpu_var(perf_cpu_context);
|
|
barrier();
|
|
barrier();
|
|
cpuctx->recursion[rctx]--;
|
|
cpuctx->recursion[rctx]--;
|
|
}
|
|
}
|
|
-EXPORT_SYMBOL_GPL(perf_swevent_put_recursion_context);
|
|
|
|
-
|
|
|
|
|
|
|
|
void __perf_sw_event(u32 event_id, u64 nr, int nmi,
|
|
void __perf_sw_event(u32 event_id, u64 nr, int nmi,
|
|
struct pt_regs *regs, u64 addr)
|
|
struct pt_regs *regs, u64 addr)
|
|
@@ -4601,7 +4599,7 @@ static int perf_tp_event_match(struct perf_event *event,
|
|
}
|
|
}
|
|
|
|
|
|
void perf_tp_event(u64 addr, u64 count, void *record, int entry_size,
|
|
void perf_tp_event(u64 addr, u64 count, void *record, int entry_size,
|
|
- struct pt_regs *regs, struct hlist_head *head)
|
|
|
|
|
|
+ struct pt_regs *regs, struct hlist_head *head, int rctx)
|
|
{
|
|
{
|
|
struct perf_sample_data data;
|
|
struct perf_sample_data data;
|
|
struct perf_event *event;
|
|
struct perf_event *event;
|
|
@@ -4621,6 +4619,8 @@ void perf_tp_event(u64 addr, u64 count, void *record, int entry_size,
|
|
perf_swevent_add(event, count, 1, &data, regs);
|
|
perf_swevent_add(event, count, 1, &data, regs);
|
|
}
|
|
}
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
|
|
+
|
|
|
|
+ perf_swevent_put_recursion_context(rctx);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(perf_tp_event);
|
|
EXPORT_SYMBOL_GPL(perf_tp_event);
|
|
|
|
|