-
Some of the bpf* _definitions stolen from libpcap_ and _not really_ guarded by BPF_MAJOR_VERSION in [Packet32.h](https://github.com/nmap/npcap/blob/master/Common/Packet32.h#L150) are also available in…
sgeto updated
4 years ago
-
hi, all
This is my questions about using bcc to trace some kernel functions, here is my script:
`from __future__ import print_function
from bcc import BPF
import time
bpf_text="""
#inclu…
-
### Component
systemd
### Is your feature request related to a problem? Please describe
Upon systemd service restarts, its underlying cgroup will be deleted and then re-created. This caused two mon…
-
The BCC tool and libbpf-tool cachestat are broken on latest kernel.
Kernel commit [203a31516616 ("mm/writeback: Add __folio_mark_dirty()")](https://github.com/torvalds/linux/commit/203a31516616111b8e…
-
## Current situation
Inspektor Gadget does not have a gadget to detect deadlocks. The idea of a gadget for detecting deadlocks was previously mentioned in #1912 while discussing the uprobe support.…
alban updated
1 month ago
-
Perhaps we should have a way to call BPF_FUNC_probe_write_user()
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=96ae52279594470622ff0585621a13e96b700600
This could ei…
-
When calculating the binary logarithm of a 64-bit integer `bpf_log2l` helper [adds 1](https://github.com/iovisor/bcc/blob/ddd5dd5ee32226d07c9632a2ff8cf6f1e713dff5/src/cc/export/helpers.h#L454) to the …
-
Hello,
There is an overflow in the conversion from string to leaf. The following code shows the problem:
```
#include
#include
const std::string BPF_PROGRAM1 = R"(
BPF_TABLE("array", int, …
-
Discovered when trying to use to print a string literal:
```
from bcc import BPF
prog="""
#include
int read_entry(struct pt_regs *ctx)
{
bpf_trace_printk("name: %s", "a");
…
-
The following code:
```cpp
__int128_t f()
{
return 0;
}
```
currently makes trunk Clang crash when using the eBPF backend, with the following error message:
```console
fatal error: erro…