|
Question about map.increment()
3 messages
#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 fi
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 fi
|
By
Donald Hunter
·
|
|
[libbpf] Questions about XDP/TC
2 messages
1. How do I attach `BPF_PROG_TYPE_SCHED_CLS`/`classifier` BPF programs to specific data path(i.e. ingress or egress) using libbpf ? I found some comments related in the source: ``` The **BPF_F_INGRESS
1. How do I attach `BPF_PROG_TYPE_SCHED_CLS`/`classifier` BPF programs to specific data path(i.e. ingress or egress) using libbpf ? I found some comments related in the source: ``` The **BPF_F_INGRESS
|
By
chenhengqi@...
·
|
|
libffi trampolines and stack traces? : was Overly brief stack traces for Java/linux ?
4 messages
I still digging into this issue, and have hacked memleak/bcc to show addresses when they cant be resolved. In other places, I'm seeing jit complied java stack frames showing up alongside C ones, which
I still digging into this issue, and have hacked memleak/bcc to show addresses when they cant be resolved. In other places, I'm seeing jit complied java stack frames showing up alongside C ones, which
|
By
Bradley Schatz
·
|
|
Overly brief stack traces for Java/linux ?
5 messages
Hi, I’m just starting to come to grips with bcc & perf-map-agent for introspecting java on linux, with the goal of identifying what appears to be an off-heap memory leak (using memleak). I appear to b
Hi, I’m just starting to come to grips with bcc & perf-map-agent for introspecting java on linux, with the goal of identifying what appears to be an off-heap memory leak (using memleak). I appear to b
|
By
Bradley Schatz
·
|
|
LPC 2021 Networking and BPF Track CFP
We are pleased to announce the Call for Proposals (CFP) for the Networking and BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which is planned to be held in Dublin, Ireland, on
We are pleased to announce the Call for Proposals (CFP) for the Networking and BPF track at the 2021 edition of the Linux Plumbers Conference (LPC), which is planned to be held in Dublin, Ireland, on
|
By
Daniel Borkmann
·
|
|
Questions about runqlen
3 messages
Hi, when I looked into the runqlen script yesterday, I found that, sadly, I misunderstood the "queue length" all the time not only the "length" part but also the "queue" part. Queue ===== Only CFS run
Hi, when I looked into the runqlen script yesterday, I found that, sadly, I misunderstood the "queue length" all the time not only the "length" part but also the "queue" part. Queue ===== Only CFS run
|
By
Abel Wu
·
|
|
BCC and passing packet from XDP to user-mode app
3 messages
#bcc
Hi! Is it possible to pass full ethernet packet from XDP to user-mode app using BCC? I wrote C code like this: BPF_PERF_OUTPUT(captured_data); int capture(struct xdp_md *ctx) { captured_data.perf_subm
Hi! Is it possible to pass full ethernet packet from XDP to user-mode app using BCC? I wrote C code like this: BPF_PERF_OUTPUT(captured_data); int capture(struct xdp_md *ctx) { captured_data.perf_subm
|
By
v.a.bonert@...
·
|
|
Which file should I include for KERNEL_VERSION macro ?
2 messages
I'v read this blog post https://facebookmicrosites.github.io/bpf/blog/2020/02/19/bpf-portability-and-co-re.html And want to apply this technique to my program: extern u32 LINUX_KERNEL_VERSION __kconfi
I'v read this blog post https://facebookmicrosites.github.io/bpf/blog/2020/02/19/bpf-portability-and-co-re.html And want to apply this technique to my program: extern u32 LINUX_KERNEL_VERSION __kconfi
|
By
chenhengqi@...
·
|
|
Which is oldest linux kernel version that can support BTF?
9 messages
#bcc
Hi, I'm looking into BTF and it's use case. Based on the document I understood to run BPF programs across different kernel versions, it needs to build with libbpf which depends on the BTF information.
Hi, I'm looking into BTF and it's use case. Based on the document I understood to run BPF programs across different kernel versions, it needs to build with libbpf which depends on the BTF information.
|
By
bg.salunke09@...
·
|
|
BCC Support for BPF Subprograms with Tail Calls (Kernel 5.10 Feature)
2 messages
Hello, I was wondering if BCC implements the new BPF feature (as of kernel 5.10) to allow BPF programs to utilize both BPF tail calls and BPF subprograms. This behavior is described near the end of th
Hello, I was wondering if BCC implements the new BPF feature (as of kernel 5.10) to allow BPF programs to utilize both BPF tail calls and BPF subprograms. This behavior is described near the end of th
|
By
jwkova@...
·
|
|
__builtin_memcpy behavior
9 messages
The other day I was in the process of porting a little libbpf application from Ubuntu 20 (Linux 5.4) to CentOS 8 (Linux 4.18). This program uses tracepoint:tcp:tcp_send_reset. Here's the relevant BPF
The other day I was in the process of porting a little libbpf application from Ubuntu 20 (Linux 5.4) to CentOS 8 (Linux 4.18). This program uses tracepoint:tcp:tcp_send_reset. Here's the relevant BPF
|
By
Tristan Mayfield
·
|
|
android adeb KASAN_SHADOW_SCALE_SHIFT
2 messages
Hi *, I managed to setup adeb on a pixel4 with custom kernel compiled as suggested by adeb's README. The setup is working fine for some BCC tools, as vfsstat but a few as opensnoop and the trace comma
Hi *, I managed to setup adeb on a pixel4 with custom kernel compiled as suggested by adeb's README. The setup is working fine for some BCC tools, as vfsstat but a few as opensnoop and the trace comma
|
By
katrina lulz
·
|
|
BPF perf event: runq length
2 messages
Hi, I am trying to write a BPF perf event program to get CPU runq length. The Following is the code snippet. I am observing that a big integer (len is 2839296536 ) as queue length in trace output for
Hi, I am trying to write a BPF perf event program to get CPU runq length. The Following is the code snippet. I am observing that a big integer (len is 2839296536 ) as queue length in trace output for
|
By
Raga lahari
·
|
|
get function latency using ebpf-uprobe when using coroutine
Bcc has funclatency.py which support get function latency for the user program, using pid_tgid as the key. But when it comes to a program was written by golang which supports coroutine(goroutine), it
Bcc has funclatency.py which support get function latency for the user program, using pid_tgid as the key. But when it comes to a program was written by golang which supports coroutine(goroutine), it
|
By
Forrest Chen
·
|
|
Weird behaviour when updating a hash map from userspace
2 messages
Hi all. Currently debugging a very strange behaviour with eBPF hash maps and was wondering if anyone else has run into a similar issue? I am using libbpf-rs with BPF CO-RE and my kernel version is 5.9
Hi all. Currently debugging a very strange behaviour with eBPF hash maps and was wondering if anyone else has run into a similar issue? I am using libbpf-rs with BPF CO-RE and my kernel version is 5.9
|
By
williamfindlay@...
·
|
|
verifier: variable offset stack access question
4 messages
Hello Yonghong, all, I'm curious about a verifier workaround that Yonghong provided two years ago, in this thread. Brendan Gregg was asking about accessing stack buffers through a register with a vari
Hello Yonghong, all, I'm curious about a verifier workaround that Yonghong provided two years ago, in this thread. Brendan Gregg was asking about accessing stack buffers through a register with a vari
|
By
Andrei Matei
·
|
|
[Warning ⚠] Do you understand how to built bpf.file for snort on fedora?
Hello, [Warning ⚠] Do you understand how to built bpf.file for snort on fedora? Thank you in advance, I hope the success, Regards. Dorian Rosse Téléchargez Outlook pour Android
Hello, [Warning ⚠] Do you understand how to built bpf.file for snort on fedora? Thank you in advance, I hope the success, Regards. Dorian Rosse Téléchargez Outlook pour Android
|
By
Dorian ROSSE
·
|
|
High volume bpf_perf_output tracing
2 messages
I'm currently working on a python script to trace the nvme driver. I'm hitting a performance bottleneck on the event callback in python and am looking for the best way (or maybe a quick and dirty way)
I'm currently working on a python script to trace the nvme driver. I'm hitting a performance bottleneck on the event callback in python and am looking for the best way (or maybe a quick and dirty way)
|
By
wes.vaske@...
·
|
|
BPF Maps with wildcards
4 messages
Hi all, I am trying to find a way to represent wildcards in BPF Map Keys? I could not find anything relevant to that, does anyone know anything further. Are there any efforts towards that functionalit
Hi all, I am trying to find a way to represent wildcards in BPF Map Keys? I could not find anything relevant to that, does anyone know anything further. Are there any efforts towards that functionalit
|
By
Marinos Dimolianis
·
|
|
Attaching dynamic uprobe to C++ library/application
#bcc
Hi all, I am learning about ebpf and the bcc tools/library. I have a question about dynamic uprobe of C++ code. I have been able to attach a uprobe successfully by looking up the mangled symbol name.
Hi all, I am learning about ebpf and the bcc tools/library. I have a question about dynamic uprobe of C++ code. I have been able to attach a uprobe successfully by looking up the mangled symbol name.
|
By
harnan@...
·
|