|
Question about inet_set_socket_state trace point
Hi Ragalahari, In your code you seem to not check for "old state" when you're heading to decrement. It looks like you are adding 1 and then immediately subtracting 1 in the same condition. That might
Hi Ragalahari, In your code you seem to not check for "old state" when you're heading to decrement. It looks like you are adding 1 and then immediately subtracting 1 in the same condition. That might
|
By
Tristan Mayfield
· #1918
·
|
|
Reading Pinned maps in eBPF Programs
I wanted to chime in and mention that I've seen the BTF error before when trying to declare maps the way shown in https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_p
I wanted to chime in and mention that I've seen the BTF error before when trying to declare maps the way shown in https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_p
|
By
Tristan Mayfield
· #1901
·
|
|
Invalid filename/mode in openat tracepoint data
Alessandro, I figured out that it's non-deterministic. So sometimes certain commands (git, awk, rm, uname, etc.) will have an openat with no filename, but other times they will. I ran these commands e
Alessandro, I figured out that it's non-deterministic. So sometimes certain commands (git, awk, rm, uname, etc.) will have an openat with no filename, but other times they will. I ran these commands e
|
By
Tristan Mayfield
· #1880
·
|
|
Invalid filename/mode in openat tracepoint data
I ran the same test with strace. One of the file data points that doesn't show up is this: bpftrace: sys_enter_openat mode:0 filename: (93911401193582) strace: openat(AT_FDCWD, "/usr/lib/locale/locale
I ran the same test with strace. One of the file data points that doesn't show up is this: bpftrace: sys_enter_openat mode:0 filename: (93911401193582) strace: openat(AT_FDCWD, "/usr/lib/locale/locale
|
By
Tristan Mayfield
· #1879
·
|
|
Invalid filename/mode in openat tracepoint data
I don't have an answer, but I verified this with the following bpftrace script and using the action of switching to zsh/oh-my-zsh from bash. --- tracepoint:syscalls:sys_enter_open, tracepoint:syscalls
I don't have an answer, but I verified this with the following bpftrace script and using the action of switching to zsh/oh-my-zsh from bash. --- tracepoint:syscalls:sys_enter_open, tracepoint:syscalls
|
By
Tristan Mayfield
· #1877
·
|
|
Building BPF programs and kernel persistence
Thanks for the reply Andrii. Managed to get a build working outside of the kernel tree for BPF programs. The two major things that I learned were that first, the order in which files are included in t
Thanks for the reply Andrii. Managed to get a build working outside of the kernel tree for BPF programs. The two major things that I learned were that first, the order in which files are included in t
|
By
Tristan Mayfield
· #1851
·
|
|
Building BPF programs and kernel persistence
Hi all, hope everyone is staying healthy out there. I've been working on building BPF programs, and have run into a few issues that I think might be clang (vs gcc) based. It seems that either clang is
Hi all, hope everyone is staying healthy out there. I've been working on building BPF programs, and have run into a few issues that I think might be clang (vs gcc) based. It seems that either clang is
|
By
Tristan Mayfield
· #1847
·
|
|
Extracting data from tracepoints (and anything else)
I've waited to reply, not wanting to clog the mailing list, but I thought it would be beneficial to follow up on the same topic with kprobes in addition to tracepoints. The main issue I had with trace
I've waited to reply, not wanting to clog the mailing list, but I thought it would be beneficial to follow up on the same topic with kprobes in addition to tracepoints. The main issue I had with trace
|
By
Tristan Mayfield
· #1839
·
|
|
Extracting data from tracepoints (and anything else)
I've spent a few days trying to solve this issue I've had, and I've learned a lot about both the past BPF APIs, and the new CO-RE API. I do have a couple questions though. Once a CO-RE program is comp
I've spent a few days trying to solve this issue I've had, and I've learned a lot about both the past BPF APIs, and the new CO-RE API. I do have a couple questions though. Once a CO-RE program is comp
|
By
Tristan Mayfield
· #1836
·
|
|
Extracting data from tracepoints (and anything else)
Will do. Does this mean that, going forward, BPF development will be encouraged to use kernels compiled with "CONFIG_DEBUG_INFO_BTF=y"? I've been using a default build up to now.
Will do. Does this mean that, going forward, BPF development will be encouraged to use kernels compiled with "CONFIG_DEBUG_INFO_BTF=y"? I've been using a default build up to now.
|
By
Tristan Mayfield
· #1834
·
|
|
Extracting data from tracepoints (and anything else)
I found out that the cloned the kernel tree from the Ubuntu repo (i.e. "git clone --depth 1 git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git") for Bionic was the issue. For some reason it doesn't have
I found out that the cloned the kernel tree from the Ubuntu repo (i.e. "git clone --depth 1 git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git") for Bionic was the issue. For some reason it doesn't have
|
By
Tristan Mayfield
· #1832
·
|
|
Extracting data from tracepoints (and anything else)
I've been exploring the libbpf library for different versions of the Linux kernel, and trying to rewrite some of the BCC tools. I would like to do more work with CO-RE eventually, but I'm trying to un
I've been exploring the libbpf library for different versions of the Linux kernel, and trying to rewrite some of the BCC tools. I would like to do more work with CO-RE eventually, but I'm trying to un
|
By
Tristan Mayfield
· #1827
·
|
|
clang 10 for BPF CO-RE
Hi all, Finally found the BPF blog and it's been nice to get more information on using libbpf directly since I don't have a lot of systems or kernel experience. Scanning through the "BCC to libbpf" po
Hi all, Finally found the BPF blog and it's been nice to get more information on using libbpf directly since I don't have a lot of systems or kernel experience. Scanning through the "BCC to libbpf" po
|
By
Tristan Mayfield
· #1820
·
|