r/bpftrace • • Jul 26 '26

Style guide

1 Upvotes

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 • • Apr 11 '23

bpftrace script to monitor CPU and memory metrics and export them to Prometheus/Grafana

3 Upvotes

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 • • Nov 08 '22

clayout, translate C++ type into C type with the same memory layout.

Thumbnail
self.cpp
2 Upvotes

r/bpftrace • • Feb 22 '22

Detecting Monero miners with bpftrace

Thumbnail blog.px.dev
3 Upvotes

r/bpftrace • • Feb 14 '21

CentOS 7.x install of eBPF

Thumbnail
github.com
3 Upvotes

r/bpftrace • • Dec 16 '20

BPF and Go: Modern forms of introspection in Linux

Thumbnail
medium.com
2 Upvotes

r/bpftrace • • May 13 '20

Intercept exec syscalls and conditionally allow them

1 Upvotes

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 • • May 07 '20

why does tracepoint:syscalls:sys_enter_execve print the same line multiple times?

1 Upvotes

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 • • Jul 16 '19

BPF Performance Tools: Linux System and Application Observability (book)

Thumbnail
brendangregg.com
2 Upvotes

r/bpftrace • • May 04 '19

eBPF can't count?!

Thumbnail
blog.cloudflare.com
2 Upvotes

r/bpftrace • • Feb 19 '19

Introduction to eBPF in Red Hat Enterprise Linux 7

Thumbnail
redhat.com
1 Upvotes

r/bpftrace • • Feb 06 '19

Installing bpftrace on Centos 7

2 Upvotes

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 • • Jan 22 '19

Which block I/O scheduler is the best? We asked eBPF

Thumbnail
circonus.com
5 Upvotes

r/bpftrace • • Nov 30 '18

A bpftrace Ansible role - Oct 8, 2018

Thumbnail ops.tips
1 Upvotes

r/bpftrace • • Nov 30 '18

eBPF as execution engine for DTrace - Linux Plumbers Conference

Thumbnail linuxplumbersconf.org
1 Upvotes

r/bpftrace • • Nov 30 '18

Next Generation Linux Tracing With BPF - DZone Performance - Apr. 05, 16

Thumbnail
dzone.com
1 Upvotes

r/bpftrace • • Nov 22 '18

Five questions for Brendan Gregg about improving the performance of Linux systems - June 7, 2017

Thumbnail
oreilly.com
2 Upvotes

r/bpftrace • • Nov 06 '18

bpftrace, a DTrace like tool for Linux now open source | Packt Hub

Thumbnail
hub.packtpub.com
2 Upvotes