|
Re: #bcc Count map.ringbuf_reserve() failures
#bcc
ในวันที่ อ. 2 พ.ย. 2021 21:31 น. Eelco Chaudron <echaudro@...> เขียนว่า:
ในวันที่ อ. 2 พ.ย. 2021 21:31 น. Eelco Chaudron <echaudro@...> เขียนว่า:
|
By
นิวัฒน์ ไชยจันทร์
·
#2011
·
|
|
Re: #bcc Count map.ringbuf_reserve() failures
#bcc
Thanks, I was looking at BCC to solve this in the wrappers, but you are right, as simple BPF_TABLE() solved it.
//Eelco
Thanks, I was looking at BCC to solve this in the wrappers, but you are right, as simple BPF_TABLE() solved it.
//Eelco
|
By
Eelco Chaudron
·
#2010
·
|
|
Re: #bcc Count map.ringbuf_reserve() failures
#bcc
You can check return value of map.ringbuf_reserve(). If the
reservation failed, you can notify user space through map, another
side channel ringbuf, perf buf, etc. Depending on your program type
and
You can check return value of map.ringbuf_reserve(). If the
reservation failed, you can notify user space through map, another
side channel ringbuf, perf buf, etc. Depending on your program type
and
|
By
Yonghong Song
·
#2009
·
|
|
Re: #bcc Count map.ringbuf_reserve() failures
#bcc
On Tue, Nov 2, 2021 at 03:24 PM, Eelco Chaudron wrote:
Hi,
Was wondering if there is a way to count the number of timesmap.ringbuf_reserve() fails for a BPF_RINGBUF_OUTPUT buffer?
This way I can
On Tue, Nov 2, 2021 at 03:24 PM, Eelco Chaudron wrote:
Hi,
Was wondering if there is a way to count the number of timesmap.ringbuf_reserve() fails for a BPF_RINGBUF_OUTPUT buffer?
This way I can
|
By
Eelco Chaudron
·
#2008
·
Edited
|
|
Count map.ringbuf_reserve() failures
Hi,
Was wondering if there is a way to count the number of times map.ringbuf_reserve() fails for a BPF_RINGBUF_OUTPUT buffer?
This way I can get notified in userspace that I have missed events, and
Hi,
Was wondering if there is a way to count the number of times map.ringbuf_reserve() fails for a BPF_RINGBUF_OUTPUT buffer?
This way I can get notified in userspace that I have missed events, and
|
By
Eelco Chaudron
·
#2007
·
|
|
Re: Access packet payload in TC egress programs
<federico.parola@...> wrote:
The source code is
BPF_CALL_2(bpf_skb_pull_data, struct sk_buff *, skb, u32, len)
{
/* Idea is the following: should the needed direct read/write
*
<federico.parola@...> wrote:
The source code is
BPF_CALL_2(bpf_skb_pull_data, struct sk_buff *, skb, u32, len)
{
/* Idea is the following: should the needed direct read/write
*
|
By
Yonghong Song
·
#2006
·
|
|
Re: Access packet payload in TC egress programs
One update on point 2.
I found out that every time a pointer to the packet is increased of a variable value stored in a variable greater than 1 byte, subsequent checks against packet boundaries become
One update on point 2.
I found out that every time a pointer to the packet is increased of a variable value stored in a variable greater than 1 byte, subsequent checks against packet boundaries become
|
By
Federico Parola
·
#2005
·
|
|
Re: Access packet payload in TC egress programs
Thanks for the answer, I wasn't aware of the existence of that helper.
I have two additional comments:
1. The documentation of the helper says that passing a length of zero should pull the whole
Thanks for the answer, I wasn't aware of the existence of that helper.
I have two additional comments:
1. The documentation of the helper says that passing a length of zero should pull the whole
|
By
Federico Parola
·
#2004
·
|
|
Re: Access packet payload in TC egress programs
<federico.parola@...> wrote:
This could be the case that linear data only covers up to the end of
L4 header. In such cases, you can use bpf_skb_pull_data() helper
to get more data into linear
<federico.parola@...> wrote:
This could be the case that linear data only covers up to the end of
L4 header. In such cases, you can use bpf_skb_pull_data() helper
to get more data into linear
|
By
Yonghong Song
·
#2003
·
|
|
Access packet payload in TC egress programs
Dear all,
how can I access the payload of the packet in a program attached to the TC egress hook (SCHED_CLS attached to clsact qdisc)?
ctx->data_end points to the end of the L4 header, while on the
Dear all,
how can I access the payload of the packet in a program attached to the TC egress hook (SCHED_CLS attached to clsact qdisc)?
ctx->data_end points to the end of the L4 header, while on the
|
By
Federico Parola
·
#2002
·
|
|
Tracing CPU utilisation
Hello,
Furthermore, I would like to add following,
I have a function test() that takes a string as an input and next functionality depends on the value it received. I would like to trace CPU
Hello,
Furthermore, I would like to add following,
I have a function test() that takes a string as an input and next functionality depends on the value it received. I would like to trace CPU
|
By
Raga lahari
·
#2001
·
|
|
Tracing CPU utilisation
Hi,
Can someone please let me know that there is any way to get a CPU profile for a specific function using eBPF?
Thanks & Regards,
Ragalahari
Hi,
Can someone please let me know that there is any way to get a CPU profile for a specific function using eBPF?
Thanks & Regards,
Ragalahari
|
By
Raga lahari
·
#2000
·
|
|
LPC 2021 Networking and BPF Track CFP (2nd reminder)
This is a reminder for the Call for Proposals (CFP) for the Networking and
BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which
will be held virtually on the wider Internet, on
This is a reminder for the Call for Proposals (CFP) for the Networking and
BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which
will be held virtually on the wider Internet, on
|
By
Daniel Borkmann
·
#1999
·
|
|
LPC 2021 Networking and BPF Track CFP (Reminder)
This is a reminder for the Call for Proposals (CFP) for the Networking and
BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which
will be held virtually on the wider Internet, on
This is a reminder for the Call for Proposals (CFP) for the Networking and
BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which
will be held virtually on the wider Internet, on
|
By
Daniel Borkmann
·
#1998
·
|
|
Using XDP in docker swarm to track outgoing traffic
Hi everyone,
I am trying to use XDP to track outgoing traffic from docker containers deployed using docker swarm and running in a network using the driver overlay. I am using a simple xdp program
Hi everyone,
I am trying to use XDP to track outgoing traffic from docker containers deployed using docker swarm and running in a network using the driver overlay. I am using a simple xdp program
|
By
Sebastião Santos Boavida Amaro
·
#1997
·
|
|
BPF map pinning
Hi,
Can someone please help me to pin a BPF map in custom path for a TC program. My requirement is pin a map in interface-specific path (like /sys/fs/bpf/eth0/)
Regards,
Ragalahari
Hi,
Can someone please help me to pin a BPF map in custom path for a TC program. My requirement is pin a map in interface-specific path (like /sys/fs/bpf/eth0/)
Regards,
Ragalahari
|
By
Raga lahari
·
#1996
·
|
|
Re: Question about map.increment()
#bcc
I am happy to take a look at the code and see if I can improve it at all.
Thanks,
Donald.
I am happy to take a look at the code and see if I can improve it at all.
Thanks,
Donald.
|
By
Donald Hunter
·
#1995
·
|
|
Re: Question about map.increment()
#bcc
This is a good question. In earlier bpf days, the key MUST be from
stack. Otherwise, the verifier will fail. Nowadays, things become
better and keys can be from verifier recognizable memory
This is a good question. In earlier bpf days, the key MUST be from
stack. Otherwise, the verifier will fail. Nowadays, things become
better and keys can be from verifier recognizable memory
|
By
Yonghong Song
·
#1994
·
|
|
Question about map.increment()
#bcc
Is there a reason why map.increment() internally copies the key into a stack variable? When building a key inline, it uses double the stack space and incurs the cost of a copy. For u64 keys this is
Is there a reason why map.increment() internally copies the key into a stack variable? When building a key inline, it uses double the stack space and incurs the cost of a copy. For u64 keys this is
|
By
Donald Hunter
·
#1993
·
|
|
Re: [libbpf] Questions about XDP/TC
chenhengqi@... writes:
libbpf does not yet support attaching to TC hooks, but there is work in
progress to add this.
chenhengqi@... writes:
libbpf does not yet support attaching to TC hooks, but there is work in
progress to add this.
|
By
Toke Høiland-Jørgensen
·
#1992
·
|