|
Re: Documentation on eBPF map types?
Would be great if you could submit some of the missing pieces to
linux-man@... for bpf(2) man-page inclusion while at
it, so this doesn't need to be done twice. Thanks for
Would be great if you could submit some of the missing pieces to
linux-man@... for bpf(2) man-page inclusion while at
it, so this doesn't need to be done twice. Thanks for
|
By
Daniel Borkmann
·
#627
·
|
|
Re: Documentation on eBPF map types?
Brendan Gregg <brendan.d.gregg@...> wrote:
Hi Brendan,
I also included BCC in my documentation, please correct me:
http://prototype-kernel.readthedocs.io/en/latest/bpf/bcc_tool_chain.html
Brendan Gregg <brendan.d.gregg@...> wrote:
Hi Brendan,
I also included BCC in my documentation, please correct me:
http://prototype-kernel.readthedocs.io/en/latest/bpf/bcc_tool_chain.html
|
By
Jesper Dangaard Brouer
·
#626
·
|
|
Re: Documentation on eBPF map types?
Jesper Dangaard Brouer <brouer@...> wrote:
I documented this myself, please correct me.
http://prototype-kernel.readthedocs.io/en/latest/bpf/ebpf_maps.html#creating-a-map
Jesper Dangaard Brouer <brouer@...> wrote:
I documented this myself, please correct me.
http://prototype-kernel.readthedocs.io/en/latest/bpf/ebpf_maps.html#creating-a-map
|
By
Jesper Dangaard Brouer
·
#625
·
|
|
Re: Documentation on eBPF map types?
Alexei Starovoitov <alexei.starovoitov@...> wrote:
Thanks, I'm using that to write some doc.
http://prototype-kernel.readthedocs.io/en/latest/bpf/ebpf_maps.html
Gotten to BPF_MAP_TYPE_ARRAY
Alexei Starovoitov <alexei.starovoitov@...> wrote:
Thanks, I'm using that to write some doc.
http://prototype-kernel.readthedocs.io/en/latest/bpf/ebpf_maps.html
Gotten to BPF_MAP_TYPE_ARRAY
|
By
Jesper Dangaard Brouer
·
#624
·
|
|
Re: Accessing __string fields in tracepoints
I don't expect it to change any time soon, but it can.
I don't expect it to change any time soon, but it can.
|
By
Alexei Starovoitov
·
#623
·
|
|
Re: Accessing __string fields in tracepoints
Awesome, thanks Derek and Alexei!
I'm going to submit a PR that enables the following:
TRACEPOINT_PROBE(net, net_dev_start_xmit) {
char devname[16];
TP_DATA_LOC_READ_CONST(&devname[0], name,
Awesome, thanks Derek and Alexei!
I'm going to submit a PR that enables the following:
TRACEPOINT_PROBE(net, net_dev_start_xmit) {
char devname[16];
TP_DATA_LOC_READ_CONST(&devname[0], name,
|
By
Sasha Goldshtein
·
#622
·
|
|
Re: Accessing __string fields in tracepoints
<iovisor-dev@...> wrote:
pretty much what Derek said.
Just one more point to add:
- this is kernel internal data, so layout can change at any time.
yeah that's a bug. bcc needs to have
<iovisor-dev@...> wrote:
pretty much what Derek said.
Just one more point to add:
- this is kernel internal data, so layout can change at any time.
yeah that's a bug. bcc needs to have
|
By
Alexei Starovoitov
·
#621
·
|
|
Re: Documentation on eBPF map types?
iovisor-dev <iovisor-dev@...> wrote:
yeah. definitely would be great to add map descriptions to the kernel docs.
So far most of it is in commit logs.
git log kernel/bpf/arraymap.c|tail
iovisor-dev <iovisor-dev@...> wrote:
yeah. definitely would be great to add map descriptions to the kernel docs.
So far most of it is in commit logs.
git log kernel/bpf/arraymap.c|tail
|
By
Alexei Starovoitov
·
#620
·
|
|
Re: Accessing __string fields in tracepoints
Hi Sasha
> 1) How do we get access to the __data_loc field? (I can fetch the same info from skb->dev->name but if there's a way to work with the __data_loc field directly, it's even better.)
It is a
Hi Sasha
> 1) How do we get access to the __data_loc field? (I can fetch the same info from skb->dev->name but if there's a way to work with the __data_loc field directly, it's even better.)
It is a
|
By
Derek
·
#619
·
|
|
Re: Documentation on eBPF map types?
Thanks! - this seem rather BCC specific syntax, and I'm looking for
documentation close for the kernel (samples/bpf/).
The best documentation I found was the man-page for the syscall bpf(2):
Thanks! - this seem rather BCC specific syntax, and I'm looking for
documentation close for the kernel (samples/bpf/).
The best documentation I found was the man-page for the syscall bpf(2):
|
By
Jesper Dangaard Brouer
·
#618
·
|
|
Accessing __string fields in tracepoints
Hi all,
I'm trying to attach a BPF program to a tracepoint that has a __string field, such as net:net_dev_start_xmit. This tracepoint has the following format (from debugfs/events/.../format):
name:
Hi all,
I'm trying to attach a BPF program to a tracepoint that has a __string field, such as net:net_dev_start_xmit. This tracepoint has the following format (from debugfs/events/.../format):
name:
|
By
Sasha Goldshtein
·
#617
·
|
|
Re: Documentation on eBPF map types?
I did some in the bcc ref guide, but it's incomplete, and the bcc versions: https://github.com/iovisor/bcc/blob/master/docs/reference_guide.md
Brendan
I did some in the bcc ref guide, but it's incomplete, and the bcc versions: https://github.com/iovisor/bcc/blob/master/docs/reference_guide.md
Brendan
|
By
Brendan Gregg
·
#616
·
|
|
Documentation on eBPF map types?
Hi IOvisor/eBPF people,
Do we have some documentation on eBPF maps?
Like that map types are available, and what they are useful for?
Notice, just list listing[1] the enum is not so useful:
enum
Hi IOvisor/eBPF people,
Do we have some documentation on eBPF maps?
Like that map types are available, and what they are useful for?
Notice, just list listing[1] the enum is not so useful:
enum
|
By
Jesper Dangaard Brouer
·
#615
·
|
|
reminder: IO Visor TSC/Dev Meeting
Please join us for our bi-weekly call. As usual, this meeting is open
to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF land
You are
Please join us for our bi-weekly call. As usual, this meeting is open
to everybody and completely optional.
You might be interested to join if:
You want to know what is going on in BPF land
You are
|
By
Brenden Blanco
·
#614
·
|
|
Re: Howto debug eBPF programs and bpf_trace_printk
<brouer@...> wrote:
err=N is errno code.
22=EINVAL
since EINVAL and others are so overloaded,
there was no point printing traditional 'Invalid argument'
in such case, since it would be even
<brouer@...> wrote:
err=N is errno code.
22=EINVAL
since EINVAL and others are so overloaded,
there was no point printing traditional 'Invalid argument'
in such case, since it would be even
|
By
Alexei Starovoitov
·
#613
·
|
|
Re: Howto debug eBPF programs and bpf_trace_printk
Depends where you look. F.e. tc has 'tc exec bpf dbg' to find the mount
and dump the trace pipe.
Yep, see discussion from netdev:
https://www.spinics.net/lists/netdev/msg406926.html
Depends where you look. F.e. tc has 'tc exec bpf dbg' to find the mount
and dump the trace pipe.
Yep, see discussion from netdev:
https://www.spinics.net/lists/netdev/msg406926.html
|
By
Daniel Borkmann
·
#612
·
|
|
Re: Howto debug eBPF programs and bpf_trace_printk
Jesper Dangaard Brouer <brouer@...> wrote:
(So, let me answer my own question.)
The trace "printk" output goes into:
/sys/kernel/debug/tracing/trace_pipe
And samples/bpf have a function
Jesper Dangaard Brouer <brouer@...> wrote:
(So, let me answer my own question.)
The trace "printk" output goes into:
/sys/kernel/debug/tracing/trace_pipe
And samples/bpf have a function
|
By
Jesper Dangaard Brouer
·
#611
·
|
|
Howto debug eBPF programs and bpf_trace_printk
Hi IOvisor-group,
I'm playing with kernels samples/bpf, and want so advice on debugging
eBPF programs.
First question: I noticed bpf_trace_printk(), but nothing shows up when
I'm using it... what
Hi IOvisor-group,
I'm playing with kernels samples/bpf, and want so advice on debugging
eBPF programs.
First question: I noticed bpf_trace_printk(), but nothing shows up when
I'm using it... what
|
By
Jesper Dangaard Brouer
·
#610
·
|
|
Re: Handling a set of free elements with current map implementations
dhcp function is a slow path and has quite a bit of complexity that
is not appropriate for datapath. Normal dhcp is handled by user space dhclient.
So I think it would be better to do the same in your
dhcp function is a slow path and has quite a bit of complexity that
is not appropriate for datapath. Normal dhcp is handled by user space dhclient.
So I think it would be better to do the same in your
|
By
Alexei Starovoitov
·
#609
·
|
|
Handling a set of free elements with current map implementations
Hello,
We are having some issues for handling the address pool of a DHCP server implemented with eBPF.
We tried to implement it using a map containing all the available addresses, this map is filled
Hello,
We are having some issues for handling the address pool of a DHCP server implemented with eBPF.
We tried to implement it using a map containing all the available addresses, this map is filled
|
By
Mauricio Vasquez
·
#608
·
|