r/bpftrace • u/Crusso3 • Jan 22 '19
r/bpftrace • u/mitesh_k • Apr 11 '23
bpftrace script to monitor CPU and memory metrics and export them to Prometheus/Grafana
Hi There,
I am looking for a script that will generate metrics for CPU and memory from the system and send those metrics to Grafana via the Prometheus server. Please help me to get one.
Thanks
r/bpftrace • u/logsaremyjam • Feb 22 '22
Detecting Monero miners with bpftrace
blog.px.devr/bpftrace • u/ZhanYi_HiDVA • Nov 08 '22
clayout, translate C++ type into C type with the same memory layout.
r/bpftrace • u/[deleted] • Dec 16 '20
BPF and Go: Modern forms of introspection in Linux
r/bpftrace • u/chlordane_zero • Jul 16 '19
BPF Performance Tools: Linux System and Application Observability (book)
r/bpftrace • u/Anish_57256 • Feb 06 '19
Installing bpftrace on Centos 7
To try out eBPF, I would want to install bpftrace on my Centos 7 server. But I couldn't any steps related to it. Any help appreciated.
r/bpftrace • u/chlordane_zero • Nov 22 '18
Five questions for Brendan Gregg about improving the performance of Linux systems - June 7, 2017
r/bpftrace • u/chlordane_zero • Nov 06 '18
bpftrace, a DTrace like tool for Linux now open source | Packt Hub
r/bpftrace • u/blood-pressure-gauge • Jul 26 '26
Style guide
Is there a style guide for bpftrace? Looking through the official repo, I found two spaces, four spaces, eight spaces, tabs, capital BEGIN, lowercase begin, brace on new line, brace at end of line, etc. It's not very consistent.
r/bpftrace • u/[deleted] • May 13 '20
Intercept exec syscalls and conditionally allow them
I am writing a program which needs to trace exec* syscalls in the system to check whether the process wishing to run is compliant to some kind of constraints. Is there any natively supported way to block process execution waiting for manual feedback like FAN_ALLOW / FAN_DENY and fanotify_response in fanotify?
r/bpftrace • u/esrse • May 07 '20
why does tracepoint:syscalls:sys_enter_execve print the same line multiple times?
Hello bpftrace folks :)
I am new to bpftrace world.
I use pyenv which manages multiple python installations in a system and it registers some commands to PROMPT_COMMAND variable. Thus whenever I hit a return key at a prompt, some commands related to pyenv are executed.
I monitored execve syscall using this bpftrace one-liner for the first time:
# bpftrace -e 'tracepoint:syscalls:sys_enter_execve { printf("%d ", tid); join(args->argv); }'
But I found it prints so many duplicated lines..
Why is this happening??
The output of bpftrace is attached here: https://pastebin.com/raw/D2LRMez4
Thanks,
r/bpftrace • u/chlordane_zero • Feb 19 '19
Introduction to eBPF in Red Hat Enterprise Linux 7
r/bpftrace • u/chlordane_zero • Nov 30 '18
eBPF as execution engine for DTrace - Linux Plumbers Conference
linuxplumbersconf.orgr/bpftrace • u/chlordane_zero • Nov 30 '18