Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-15 Thread Kris Van Hees
On Wed, Mar 13, 2019 at 09:30:02AM -0700, Brendan Gregg wrote: > On Tue, Mar 12, 2019 at 9:54 AM Kris Van Hees > wrote: > > > > On Mon, Mar 11, 2019 at 11:03:10PM -0700, Brendan Gregg wrote: > > > On Mon, Mar 11, 2019 at 8:24 PM Kris Van Hees > > > wrote: > > > > > > > > On Mon, Mar 11, 2019 at

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-13 Thread Brendan Gregg
On Tue, Mar 12, 2019 at 9:54 AM Kris Van Hees wrote: > > On Mon, Mar 11, 2019 at 11:03:10PM -0700, Brendan Gregg wrote: > > On Mon, Mar 11, 2019 at 8:24 PM Kris Van Hees > > wrote: > > > > > > On Mon, Mar 11, 2019 at 06:29:55PM -0700, Brendan Gregg wrote: > > > > On Mon, Mar 11, 2019 at 7:21 AM

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-12 Thread Kris Van Hees
On Mon, Mar 11, 2019 at 11:03:10PM -0700, Brendan Gregg wrote: > On Mon, Mar 11, 2019 at 8:24 PM Kris Van Hees > wrote: > > > > On Mon, Mar 11, 2019 at 06:29:55PM -0700, Brendan Gregg wrote: > > > On Mon, Mar 11, 2019 at 7:21 AM Kris Van Hees > > > wrote: > > > > > > > > On Thu, Mar 07, 2019 at

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-11 Thread Brendan Gregg
On Mon, Mar 11, 2019 at 8:24 PM Kris Van Hees wrote: > > On Mon, Mar 11, 2019 at 06:29:55PM -0700, Brendan Gregg wrote: > > On Mon, Mar 11, 2019 at 7:21 AM Kris Van Hees > > wrote: > > > > > > On Thu, Mar 07, 2019 at 01:30:37PM -0800, Alexei Starovoitov wrote: > > > > On Tue, Mar 05, 2019 at 09:

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-11 Thread Kris Van Hees
On Mon, Mar 11, 2019 at 06:29:55PM -0700, Brendan Gregg wrote: > On Mon, Mar 11, 2019 at 7:21 AM Kris Van Hees > wrote: > > > > On Thu, Mar 07, 2019 at 01:30:37PM -0800, Alexei Starovoitov wrote: > > > On Tue, Mar 05, 2019 at 09:03:57PM -0500, Kris Van Hees wrote: > [...] > > > > But being able t

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-11 Thread Brendan Gregg
On Mon, Mar 11, 2019 at 7:21 AM Kris Van Hees wrote: > > On Thu, Mar 07, 2019 at 01:30:37PM -0800, Alexei Starovoitov wrote: > > On Tue, Mar 05, 2019 at 09:03:57PM -0500, Kris Van Hees wrote: [...] > > > But being able to do things like this without > > > needing to touch the context of any other

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-11 Thread Kris Van Hees
On Thu, Mar 07, 2019 at 01:30:37PM -0800, Alexei Starovoitov wrote: > On Tue, Mar 05, 2019 at 09:03:57PM -0500, Kris Van Hees wrote: > > > > So in summary, I am trying to solve two (related) problems: > > > > - Ensure that unprivileged tracing can obtain information about the task > > that > >

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-07 Thread Alexei Starovoitov
On Tue, Mar 05, 2019 at 09:03:57PM -0500, Kris Van Hees wrote: > > So in summary, I am trying to solve two (related) problems: > > - Ensure that unprivileged tracing can obtain information about the task that > triggered a probe or event. There will always be limitations but we can do > bett

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-05 Thread Kris Van Hees
On Tue, Mar 05, 2019 at 10:59:52AM -0800, Alexei Starovoitov wrote: > On Tue, Feb 26, 2019 at 01:46:01AM -0500, Kris Van Hees wrote: > > On Mon, Feb 25, 2019 at 10:18:25PM -0800, Alexei Starovoitov wrote: > > > On Mon, Feb 25, 2019 at 07:54:13AM -0800, Kris Van Hees wrote: > > > > > > > > The goal

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-03-05 Thread Alexei Starovoitov
On Tue, Feb 26, 2019 at 01:46:01AM -0500, Kris Van Hees wrote: > On Mon, Feb 25, 2019 at 10:18:25PM -0800, Alexei Starovoitov wrote: > > On Mon, Feb 25, 2019 at 07:54:13AM -0800, Kris Van Hees wrote: > > > > > > The goal is to further extend the BPF_PROG_TYPE_GTRACE implementation to > > > support

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-02-25 Thread Kris Van Hees
On Mon, Feb 25, 2019 at 10:18:25PM -0800, Alexei Starovoitov wrote: > On Mon, Feb 25, 2019 at 07:54:13AM -0800, Kris Van Hees wrote: > > > > The goal is to further extend the BPF_PROG_TYPE_GTRACE implementation to > > support what tracers commonly need, and I am also looking at ways to further > >

Re: [PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-02-25 Thread Alexei Starovoitov
On Mon, Feb 25, 2019 at 07:54:13AM -0800, Kris Van Hees wrote: > > The goal is to further extend the BPF_PROG_TYPE_GTRACE implementation to > support what tracers commonly need, and I am also looking at ways to further > extend this model to allow more tracer-specific features as well without the

[PATCH 0/2] bpf: context casting for tail call and gtrace prog type

2019-02-25 Thread Kris Van Hees
The patches in this set are part of an effort to provide support for tracing tools beyond attaching programs to probes and events and working with the context data they provide. It is also aimed at avoiding adding new helpers for every piece of task information that tracers may want to include in