• Home
  • Raw
  • Download

Lines Matching full:bcc

1 # bcc Reference Guide
5 This guide is incomplete. If something feels missing, check the bcc and kernel source. And if you c…
86 - [bcc Python](#bcc-python)
144 This section describes the C part of a bcc program.
172 …com/iovisor/bcc/blob/4afa96a71c5dbfc4c507c3355e20baa6c184a3a8/examples/tracing/tcpv4connect.py#L28…
173 …/iovisor/bcc/commit/310ab53710cfd46095c1f6b3e44f1dbc8d1a41d8#diff-8cd1822359ffee26e7469f991ce0ef00…
197 …com/iovisor/bcc/blob/4afa96a71c5dbfc4c507c3355e20baa6c184a3a8/examples/tracing/tcpv4connect.py#L38…
229 ….com/iovisor/bcc/blob/a4159da8c4ea8a05a3c6e402451f530d6e5a8b41/examples/tracing/urandomread.py#L19…
230 [search /examples](https://github.com/iovisor/bcc/search?q=TRACEPOINT_PROBE+path%3Aexamples&type=Co…
231 [search /tools](https://github.com/iovisor/bcc/search?q=TRACEPOINT_PROBE+path%3Atools&type=Code)
253 [code](https://github.com/iovisor/bcc/blob/4afa96a71c5dbfc4c507c3355e20baa6c184a3a8/examples/tracin…
274 ….com/iovisor/bcc/blob/4afa96a71c5dbfc4c507c3355e20baa6c184a3a8/examples/tracing/strlen_hist.py#L39…
275 …/github.com/iovisor/bcc/blob/4afa96a71c5dbfc4c507c3355e20baa6c184a3a8/tools/bashreadline.py) ([out…
301 [code](https://github.com/iovisor/bcc/commit/4f88a9401357d7b75e917abd994aa6ea97dda4d3#diff-04a7cad5…
302 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_usdt_readarg+path%3Aexamples&type=Co…
303 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_usdt_readarg+path%3Atools&type=Code)
311 …tracepoint_args```, which is defined in [bpf.h](https://github.com/iovisor/bcc/blob/master/src/cc/…
332 [search /tools](https://github.com/iovisor/bcc/search?q=RAW_TRACEPOINT_PROBE+path%3Atools&type=Code)
365 …github.com/iovisor/bcc/blob/552658edda09298afdccc8a4b5e17311a2d8a771/tools/execsnoop.py#L101) ([ou…
386 [search /tools](https://github.com/iovisor/bcc/search?q=KFUNC_PROBE+path%3Atools&type=Code)
409 [search /tools](https://github.com/iovisor/bcc/search?q=KRETFUNC_PROBE+path%3Atools&type=Code)
448 [search /tests](https://github.com/iovisor/bcc/search?q=LSM_PROBE+path%3Atests&type=Code)
483 …ns automatically in some cases, such as dereferencing kernel variables, as bcc will rewrite the BP…
486 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_probe_read_kernel+path%3Aexamples&ty…
487 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_probe_read_kernel+path%3Atools&type=Cod…
500 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_probe_read_kernel_str+path%3Aexample…
501 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_probe_read_kernel_str+path%3Atools&type…
510 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_ktime_get_ns+path%3Aexamples&type=Co…
511 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_ktime_get_ns+path%3Atools&type=Code)
522 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_current_pid_tgid+path%3Aexamples…
523 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_current_pid_tgid+path%3Atools&type=…
534 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_current_uid_gid+path%3Aexamples&…
535 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_current_uid_gid+path%3Atools&type=C…
555 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_current_comm+path%3Aexamples&typ…
556 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_current_comm+path%3Atools&type=Code)
578 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_current_task+path%3Aexamples&typ…
579 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_current_task+path%3Atools&type=Code)
588 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_log2l+path%3Aexamples&type=Code),
589 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_log2l+path%3Atools&type=Code)
598 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_prandom_u32+path%3Aexamples&type…
599 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_prandom_u32+path%3Atools&type=Code)
610 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_probe_read_user+path%3Aexamples&type…
611 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_probe_read_user+path%3Atools&type=Code)
624 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_probe_read_user_str+path%3Aexamples&…
625 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_probe_read_user_str+path%3Atools&type=C…
641 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_ns_current_pid_tgid+path%3Aexamp…
642 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_ns_current_pid_tgid+path%3Atools&ty…
682 [search /examples](https://github.com/iovisor/bcc/search?q=bpf_trace_printk+path%3Aexamples&type=Co…
683 [search /tools](https://github.com/iovisor/bcc/search?q=bpf_trace_printk+path%3Atools&type=Code)
717 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_PERF_OUTPUT+path%3Aexamples&type=Cod…
718 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_PERF_OUTPUT+path%3Atools&type=Code)
731 [search /examples](https://github.com/iovisor/bcc/search?q=perf_submit+path%3Aexamples&type=Code),
732 [search /tools](https://github.com/iovisor/bcc/search?q=perf_submit+path%3Atools&type=Code)
743 [search /examples](https://github.com/iovisor/bcc/search?q=perf_submit_skb+path%3Aexamples&type=Cod…
744 [search /tools](https://github.com/iovisor/bcc/search?q=perf_submit_skb+path%3Atools&type=Code)
808 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_RINGBUF_OUTPUT+path%3Aexamples&type=…
824 [search /examples](https://github.com/iovisor/bcc/search?q=ringbuf_output+path%3Aexamples&type=Code…
836 [search /examples](https://github.com/iovisor/bcc/search?q=ringbuf_reserve+path%3Aexamples&type=Cod…
852 [search /examples](https://github.com/iovisor/bcc/search?q=ringbuf_submit+path%3Aexamples&type=Code…
869 [search /examples](https://github.com/iovisor/bcc/search?q=ringbuf_submit+path%3Aexamples&type=Code…
886 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_TABLE+path%3Aexamples&type=Code),
887 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_TABLE+path%3Atools&type=Code)
922 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_HASH+path%3Aexamples&type=Code),
923 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_HASH+path%3Atools&type=Code)
946 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_ARRAY+path%3Aexamples&type=Code),
947 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_ARRAY+path%3Atools&type=Code)
970 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_HISTOGRAM+path%3Aexamples&type=Code),
971 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_HISTOGRAM+path%3Atools&type=Code)
992 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_STACK_TRACE+path%3Aexamples&type=Cod…
993 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_STACK_TRACE+path%3Atools&type=Code)
1007 b = bcc.BPF(text=text, cflags=["-DNUM_CPUS=%d" % multiprocessing.cpu_count()])
1016 [search /tests](https://github.com/iovisor/bcc/search?q=BPF_PERF_ARRAY+path%3Atests&type=Code)
1043 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_PERCPU_HASH+path%3Aexamples&type=Cod…
1044 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_PERCPU_HASH+path%3Atools&type=Code)
1072 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_PERCPU_ARRAY+path%3Aexamples&type=Co…
1073 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_PERCPU_ARRAY+path%3Atools&type=Code)
1096 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_LPM_TRIE+path%3Aexamples&type=Code),
1097 [search /tools](https://github.com/iovisor/bcc/search?q=BPF_LPM_TRIE+path%3Atools&type=Code)
1110 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_PROG_ARRAY+path%3Aexamples&type=Code…
1111 [search /tests](https://github.com/iovisor/bcc/search?q=BPF_PROG_ARRAY+path%3Atests&type=Code),
1112 [assign fd](https://github.com/iovisor/bcc/blob/master/examples/networking/tunnel_monitor/monitor.p…
1128 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_DEVMAP+path%3Aexamples&type=Code),
1144 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_CPUMAP+path%3Aexamples&type=Code),
1160 [search /examples](https://github.com/iovisor/bcc/search?q=BPF_XSKMAP+path%3Aexamples&type=Code),
1206 [search /tests](https://github.com/iovisor/bcc/search?q=BPF_STACK+path%3Atests&type=Code),
1226 [search /tests](https://github.com/iovisor/bcc/search?q=BPF_QUEUE+path%3Atests&type=Code),
1256 [search /tests](https://github.com/iovisor/bcc/search?q=BPF_SOCKHASH+path%3Atests&type=Code)
1265 [search /examples](https://github.com/iovisor/bcc/search?q=lookup+path%3Aexamples&type=Code),
1266 [search /tools](https://github.com/iovisor/bcc/search?q=lookup+path%3Atools&type=Code)
1275 [search /examples](https://github.com/iovisor/bcc/search?q=lookup_or_try_init+path%3Aexamples&type=…
1276 [search /tools](https://github.com/iovisor/bcc/search?q=lookup_or_try_init+path%3Atools&type=Code)
1288 [search /examples](https://github.com/iovisor/bcc/search?q=delete+path%3Aexamples&type=Code),
1289 [search /tools](https://github.com/iovisor/bcc/search?q=delete+path%3Atools&type=Code)
1298 [search /examples](https://github.com/iovisor/bcc/search?q=update+path%3Aexamples&type=Code),
1299 [search /tools](https://github.com/iovisor/bcc/search?q=update+path%3Atools&type=Code)
1308 [search /examples](https://github.com/iovisor/bcc/search?q=insert+path%3Aexamples&type=Code),
1309 [search /tools](https://github.com/iovisor/bcc/search?q=insert+path%3Atools&type=Code)
1322 [search /examples](https://github.com/iovisor/bcc/search?q=increment+path%3Aexamples&type=Code),
1323 [search /tools](https://github.com/iovisor/bcc/search?q=increment+path%3Atools&type=Code)
1332 [search /examples](https://github.com/iovisor/bcc/search?q=get_stackid+path%3Aexamples&type=Code),
1333 [search /tools](https://github.com/iovisor/bcc/search?q=get_stackid+path%3Atools&type=Code)
1342 [search /tests](https://github.com/iovisor/bcc/search?q=perf_read+path%3Atests&type=Code)
1380 [search /examples](https://github.com/iovisor/bcc/search?l=C&q=call+path%3Aexamples&type=Code),
1381 [search /tests](https://github.com/iovisor/bcc/search?l=C&q=call+path%3Atests&type=Code)
1407 b = bcc.BPF(src_file="example.c")
1419 [search /examples](https://github.com/iovisor/bcc/search?l=C&q=redirect_map+path%3Aexamples&type=Co…
1430 [search /tests](https://github.com/iovisor/bcc/search?q=push+path%3Atests&type=Code),
1441 [search /tests](https://github.com/iovisor/bcc/search?q=pop+path%3Atests&type=Code),
1452 [search /tests](https://github.com/iovisor/bcc/search?q=peek+path%3Atests&type=Code),
1471 [search /tests](https://github.com/iovisor/bcc/search?q=sock_hash_update+path%3Atests&type=Code),
1482 [search /tests](https://github.com/iovisor/bcc/search?q=msg_redirect_hash+path%3Atests&type=Code),
1493 [search /tests](https://github.com/iovisor/bcc/search?q=sk_redirect_hash+path%3Atests&type=Code),
1499 The special BCC macro `BPF_LICENSE` specifies the license of the BPF program. You can set the licen…
1515 **If the macro is not specified, BCC will automatically define the license of the program as GPL.**
1521 # bcc Python
1573 [search /examples](https://github.com/iovisor/bcc/search?q=BPF+path%3Aexamples+language%3Apython&ty…
1574 [search /tools](https://github.com/iovisor/bcc/search?q=BPF+path%3Atools+language%3Apython&type=Cod…
1597 [search /examples](https://github.com/iovisor/bcc/search?q=USDT+path%3Aexamples+language%3Apython&t…
1598 [search /tools](https://github.com/iovisor/bcc/search?q=USDT+path%3Atools+language%3Apython&type=Co…
1622 [search /examples](https://github.com/iovisor/bcc/search?q=attach_kprobe+path%3Aexamples+language%3…
1623 [search /tools](https://github.com/iovisor/bcc/search?q=attach_kprobe+path%3Atools+language%3Apytho…
1647 [search /examples](https://github.com/iovisor/bcc/search?q=attach_kretprobe+path%3Aexamples+languag…
1648 [search /tools](https://github.com/iovisor/bcc/search?q=attach_kretprobe+path%3Atools+language%3Apy…
1687 [code](https://github.com/iovisor/bcc/blob/a4159da8c4ea8a05a3c6e402451f530d6e5a8b41/examples/tracin…
1688 [search /examples](https://github.com/iovisor/bcc/search?q=attach_tracepoint+path%3Aexamples+langua…
1689 [search /tools](https://github.com/iovisor/bcc/search?q=attach_tracepoint+path%3Atools+language%3Ap…
1724 [search /examples](https://github.com/iovisor/bcc/search?q=attach_uprobe+path%3Aexamples+language%3…
1725 [search /tools](https://github.com/iovisor/bcc/search?q=attach_uprobe+path%3Atools+language%3Apytho…
1753 [search /examples](https://github.com/iovisor/bcc/search?q=attach_uretprobe+path%3Aexamples+languag…
1754 [search /tools](https://github.com/iovisor/bcc/search?q=attach_uretprobe+path%3Atools+language%3Apy…
1773 [search /examples](https://github.com/iovisor/bcc/search?q=enable_probe+path%3Aexamples+language%3A…
1774 [search /tools](https://github.com/iovisor/bcc/search?q=enable_probe+path%3Atools+language%3Apython…
1791 [search /tools](https://github.com/iovisor/bcc/search?q=attach_raw_tracepoint+path%3Atools+language…
1816 [search /examples](https://github.com/iovisor/bcc/search?q=attach_raw_socket+path%3Aexamples+langua…
1837 Currently, bcc does not support XDP_FLAGS_REPLACE flag. The following are the descriptions of other…
1864 [search /examples](https://github.com/iovisor/bcc/search?q=attach_xdp+path%3Aexamples+language%3Apy…
1865 [search /tools](https://github.com/iovisor/bcc/search?q=attach_xdp+path%3Atools+language%3Apython&t…
1884 [search /examples](https://github.com/iovisor/bcc/search?q=attach_func+path%3Aexamples+language%3Ap…
1901 [search /examples](https://github.com/iovisor/bcc/search?q=detach_func+path%3Aexamples+language%3Ap…
1950 [search /examples](https://github.com/iovisor/bcc/search?q=trace_print+path%3Aexamples+language%3Ap…
1951 [search /tools](https://github.com/iovisor/bcc/search?q=trace_print+path%3Atools+language%3Apython&…
1975 [search /examples](https://github.com/iovisor/bcc/search?q=trace_fields+path%3Aexamples+language%3A…
1976 [search /tools](https://github.com/iovisor/bcc/search?q=trace_fields+path%3Atools+language%3Apython…
2006 [code](https://github.com/iovisor/bcc/blob/v0.9.0/examples/tracing/hello_perf_output.py#L55),
2007 [search /examples](https://github.com/iovisor/bcc/search?q=perf_buffer_poll+path%3Aexamples+languag…
2008 [search /tools](https://github.com/iovisor/bcc/search?q=perf_buffer_poll+path%3Atools+language%3Apy…
2032 [search /examples](https://github.com/iovisor/bcc/search?q=ring_buffer_poll+path%3Aexamples+languag…
2057 [search /examples](https://github.com/iovisor/bcc/search?q=ring_buffer_consume+path%3Aexamples+lang…
2061 Maps are BPF data stores, and are used in bcc to implement a table, and then higher level objects o…
2115 In Python, you can either let bcc generate the data structure from C declaration automatically (rec…
2139 [code](https://github.com/iovisor/bcc/blob/v0.9.0/examples/tracing/hello_perf_output.py#L52),
2140 [search /examples](https://github.com/iovisor/bcc/search?q=open_perf_buffer+path%3Aexamples+languag…
2141 [search /tools](https://github.com/iovisor/bcc/search?q=open_perf_buffer+path%3Atools+language%3Apy…
2162 [search /examples](https://github.com/iovisor/bcc/search?q=items+path%3Aexamples+language%3Apython&…
2163 [search /tools](https://github.com/iovisor/bcc/search?q=items+path%3Atools+language%3Apython&type=C…
2189 [search /examples](https://github.com/iovisor/bcc/search?q=clear+path%3Aexamples+language%3Apython&…
2190 [search /tools](https://github.com/iovisor/bcc/search?q=clear+path%3Atools+language%3Apython&type=C…
2299 [search /examples](https://github.com/iovisor/bcc/search?q=print_log2_hist+path%3Aexamples+language…
2300 [search /tools](https://github.com/iovisor/bcc/search?q=print_log2_hist+path%3Atools+language%3Apyt…
2358 [search /examples](https://github.com/iovisor/bcc/search?q=print_linear_hist+path%3Aexamples+langua…
2359 [search /tools](https://github.com/iovisor/bcc/search?q=print_linear_hist+path%3Atools+language%3Ap…
2397 In Python, you can either let bcc generate the data structure from C declaration automatically (rec…
2421 [search /examples](https://github.com/iovisor/bcc/search?q=open_ring_buffer+path%3Aexamples+languag…
2431 [search /tests](https://github.com/iovisor/bcc/search?q=push+path%3Atests+language%3Apython&type=Co…
2442 [search /tests](https://github.com/iovisor/bcc/search?q=pop+path%3Atests+language%3Apython&type=Cod…
2452 [search /tests](https://github.com/iovisor/bcc/search?q=peek+path%3Atests+language%3Apython&type=Co…
2456 Some helper methods provided by bcc. Note that since we're in Python, we can import any Python libr…
2471 [search /examples](https://github.com/iovisor/bcc/search?q=ksym+path%3Aexamples+language%3Apython&t…
2472 [search /tools](https://github.com/iovisor/bcc/search?q=ksym+path%3Atools+language%3Apython&type=Co…
2487 [search /examples](https://github.com/iovisor/bcc/search?q=ksymname+path%3Aexamples+language%3Apyth…
2488 [search /tools](https://github.com/iovisor/bcc/search?q=ksymname+path%3Atools+language%3Apython&typ…
2503 [search /examples](https://github.com/iovisor/bcc/search?q=sym+path%3Aexamples+language%3Apython&ty…
2504 [search /tools](https://github.com/iovisor/bcc/search?q=sym+path%3Atools+language%3Apython&type=Cod…
2523 [search /examples](https://github.com/iovisor/bcc/search?q=num_open_kprobes+path%3Aexamples+languag…
2524 [search /tools](https://github.com/iovisor/bcc/search?q=num_open_kprobes+path%3Atools+language%3Apy…
2530 …el and sometimes it will causing trouble. (see [#2590](https://github.com/iovisor/bcc/issues/2590))
2540 [search /examples](https://github.com/iovisor/bcc/search?q=get_syscall_fnname+path%3Aexamples+langu…
2541 [search /tools](https://github.com/iovisor/bcc/search?q=get_syscall_fnname+path%3Atools+language%3A…
2549 …() to copy kernel memory into the BPF stack, which can be automatic by the bcc rewriter in some ca…
2566 File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 172, in __init__
2568 File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 612, in _trace_autoload
2570 File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 212, in load_func
2577 …L-compatible license. Check which [BPF helpers](https://github.com/iovisor/bcc/blob/master/docs/ke…
2593 compiled. In case your kernel sources are at a non-standard location where BCC
2594 cannot find then, its possible to provide BCC the absolute path of the location
2599 By default, BCC stores the `LINUX_VERSION_CODE` in the generated eBPF object