Remove int bt
article thumbnail

BPF binaries: BTF, CO-RE, and the future of BPF perf tools

Brendan Gregg

usr/bin/python from bcc import BPF from bcc.utils import printb prog = """ int hello(void *ctx) { bpf_trace_printk("Hello, World!n"); Plus the bpftrace versions can be modified on the fly. libbpf is better suited for more complex and mature tools that needs custom arguments and libraries. and this: # bpftrace -e 'BEGIN { printf("Hello, World!

C++ 145
article thumbnail

BPF binaries: BTF, CO-RE, and the future of BPF perf tools

Brendan Gregg

bt argdist drsnoop mdflush pythongc tclobjnew bashreadline execsnoop memleak pythonstat tclstat [.] /usr/sbin/bashreadline.bt usr/bin/python from bcc import BPF from bcc.utils import printb prog = """ int hello(void *ctx) { bpf_trace_printk("Hello, World!n"); Plus the bpftrace versions can be modified on the fly. Hello, World! ^C.

C++ 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

BPF binaries: BTF, CO-RE, and the future of BPF perf tools

Brendan Gregg

usr/bin/python from bcc import BPF from bcc.utils import printb prog = """ int hello(void *ctx) { bpf_trace_printk("Hello, World!n"); Plus the bpftrace versions can be modified on the fly. libbpf is better suited for more complex and mature tools that needs custom arguments and libraries. and this: # bpftrace -e 'BEGIN { printf("Hello, World!

C++ 40
article thumbnail

Intro to Debugging x86-64 Assembly

Nick Desaulniers

lldb ) bt * thread #1: tid = 0xe69b9, 0x00000000000029ae asmttpd`sys_write, queue = 'com.apple.main-thread', stop reason = breakpoint 3.1. > int main () {. > 2 int main () {. -> 3 struct timespec rqtp = {. Seeing more of the current stack frame: 1. Getting a back trace (call stack): 1. lldb ) register read.