Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2021-02-11 Thread Mathieu Desnoyers
- On Oct 28, 2020, at 5:23 PM, Alexei Starovoitov alexei.starovoi...@gmail.com wrote: > On Tue, Oct 27, 2020 at 09:37:08AM -0400, Mathieu Desnoyers wrote: >> >> - On Oct 26, 2020, at 6:43 PM, Alexei Starovoitov >> alexei.starovoi...@gmail.com wrote: >> >> > On Fri, Oct 23, 2020 at 03:53

Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2020-11-02 Thread Joel Fernandes
On Tue, Oct 27, 2020 at 09:37:08AM -0400, Mathieu Desnoyers wrote: > > - On Oct 26, 2020, at 6:43 PM, Alexei Starovoitov > alexei.starovoi...@gmail.com wrote: > > > On Fri, Oct 23, 2020 at 03:53:47PM -0400, Michael Jeanson wrote: > >> -#define __DO_TRACE(tp, proto, args, cond, rcuidle)

Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2020-10-28 Thread Alexei Starovoitov
On Tue, Oct 27, 2020 at 09:37:08AM -0400, Mathieu Desnoyers wrote: > > - On Oct 26, 2020, at 6:43 PM, Alexei Starovoitov > alexei.starovoi...@gmail.com wrote: > > > On Fri, Oct 23, 2020 at 03:53:47PM -0400, Michael Jeanson wrote: > >> -#define __DO_TRACE(tp, proto, args, cond, rcuidle)

Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2020-10-27 Thread Mathieu Desnoyers
- On Oct 26, 2020, at 6:43 PM, Alexei Starovoitov alexei.starovoi...@gmail.com wrote: > On Fri, Oct 23, 2020 at 03:53:47PM -0400, Michael Jeanson wrote: >> -#define __DO_TRACE(tp, proto, args, cond, rcuidle) \ >> +#define __DO_TRACE(tp, proto, args, cond, rcuidle, tp_flags)

Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2020-10-26 Thread Alexei Starovoitov
On Fri, Oct 23, 2020 at 03:53:47PM -0400, Michael Jeanson wrote: > -#define __DO_TRACE(tp, proto, args, cond, rcuidle) \ > +#define __DO_TRACE(tp, proto, args, cond, rcuidle, tp_flags) \ > do {\ >

[RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2020-10-23 Thread Michael Jeanson
When invoked from system call enter/exit instrumentation, accessing user-space data is a common use-case for tracers. However, tracepoints currently disable preemption around iteration on the registered tracepoint probes and invocation of the probe callbacks, which prevents tracers from handling pa