Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread David Miller
From: Hannes Frederic Sowa Date: Thu, 27 Apr 2017 18:28:17 +0200 > Merely I tried to establish the procfs interface as quick look > interface Show me that "quick look" nftables dumping facility via procfs and I'll start to listen to you. What you are proposing has

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread Hannes Frederic Sowa
On 27.04.2017 18:00, David Miller wrote: > From: Hannes Frederic Sowa > Date: Thu, 27 Apr 2017 15:22:49 +0200 > >> Sure, that sounds super. But so far Linux and most (maybe I should write >> all) subsystems always provided some easy way to get the insights of the >>

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread David Miller
From: Hannes Frederic Sowa Date: Thu, 27 Apr 2017 15:22:49 +0200 > Sure, that sounds super. But so far Linux and most (maybe I should write > all) subsystems always provided some easy way to get the insights of the > kernel without having to code or rely on special

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread Alexei Starovoitov
On Thu, Apr 27, 2017 at 6:28 AM, Hannes Frederic Sowa wrote: > >> I don't want this to become debugfs for bpf. > > Right now it just prints a list of ebpf programs. You reject of where > things are going or do you already reject this particular patch? both.

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread Hannes Frederic Sowa
On 26.04.2017 23:25, Alexei Starovoitov wrote: > On Wed, Apr 26, 2017 at 08:24:19PM +0200, Hannes Frederic Sowa wrote: >> >> +static const char *bpf_type_string(enum bpf_prog_type type) >> +{ >> +static const char *bpf_type_names[] = { >> +#define X(type) #type >> +BPF_PROG_TYPES

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-27 Thread Hannes Frederic Sowa
On 26.04.2017 23:35, Daniel Borkmann wrote: > On 04/26/2017 08:24 PM, Hannes Frederic Sowa wrote: >> Signed-off-by: Hannes Frederic Sowa >> --- >> include/uapi/linux/bpf.h | 32 +++- >> kernel/bpf/core.c| 30

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-26 Thread Daniel Borkmann
On 04/26/2017 08:24 PM, Hannes Frederic Sowa wrote: Signed-off-by: Hannes Frederic Sowa --- include/uapi/linux/bpf.h | 32 +++- kernel/bpf/core.c| 30 +- 2 files changed, 48 insertions(+), 14

Re: [PATCH net-next 6/6] bpf: show bpf programs

2017-04-26 Thread Alexei Starovoitov
On Wed, Apr 26, 2017 at 08:24:19PM +0200, Hannes Frederic Sowa wrote: > > +static const char *bpf_type_string(enum bpf_prog_type type) > +{ > + static const char *bpf_type_names[] = { > +#define X(type) #type > + BPF_PROG_TYPES > +#undef X > + }; > + > + if (type >=

[PATCH net-next 6/6] bpf: show bpf programs

2017-04-26 Thread Hannes Frederic Sowa
Signed-off-by: Hannes Frederic Sowa --- include/uapi/linux/bpf.h | 32 +++- kernel/bpf/core.c| 30 +- 2 files changed, 48 insertions(+), 14 deletions(-) diff --git a/include/uapi/linux/bpf.h