Skip to content

uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 1 replyIn review

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty
Quoted 10 lines · Steven Rostedt
Quoted 6 lines · Oleg Nesterov
Quoted 2 lines

If so, we can do same thing also on trace_events.
(perf_trace_##call in include/trace/ftrace.h)

Yes, yes, this is not kprobe-specific. It seems that more users of perf_trace_buf_submit() could be changed the same way.

Quoted 5 lines

Oleg,

Can you make the necessary changes elsewhere? I talked with Frederic on IRC and he's a bit busy with other work. But he did say he would review changes that you make.

Sure, will be happy to do.

But can I change uprobes/perf first? I have a lot more pending changes in trace_uprobe.c which I am going to ask to pull, I'd like to add this simple patch to "oleg/misc uprobes/core" if I have your ack.

Oleg.