Back to home page

OSCL-LXR

 
 

    


 
  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
folder Parent directory - 2025-03-06 09:18:39  
asm_goto_workaround.h 725 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
bpf_insn.h 6432 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38

eBPF instruction mini library

cookie_uid_helper_example.c 9643 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38

This test is a demo of using get_socket_uid and get_socket_cookie helper function to do per socket based network traffic monitoring.

cpustat_kern.c 7139 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
cpustat_user.c 5808 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
do_hbm_test.sh 12292 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
fds_example.c 4453 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
hash_func01.h 1321 bytes 2025-03-06 09:18:39 2025-03-06 13:32:38  
hbm.c 13944 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
hbm.h 1205 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39

4 byte hole

hbm_edt_kern.c 5401 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
hbm_kern.h 5837 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
hbm_out_kern.c 5657 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
ibumad_kern.c 2989 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
ibumad_user.c 3439 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
lathist_kern.c 2142 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
lathist_user.c 2660 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
lwt_len_hist.sh 1047 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
lwt_len_hist_kern.c 1738 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
lwt_len_hist_user.c 1653 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
Makefile 16221 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
Makefile.target 2581 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
map_perf_test_kern.c 6676 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
map_perf_test_user.c 11828 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
offwaketime_kern.c 3940 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
offwaketime_user.c 3241 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
parse_ldabs.c 1230 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
parse_simple.c 1308 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
parse_varlen.c 3487 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
README.rst 3507 bytes 2025-03-06 09:18:39 -  
run_cookie_uid_helper_example.sh 341 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
sampleip_kern.c 915 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
sampleip_user.c 4943 bytes 2025-03-06 09:18:39 2025-03-06 13:32:39  
sock_example.c 3019 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sock_example.h 814 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sock_flags_kern.c 1188 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex1_kern.c 661 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex1_user.c 1388 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex2_kern.c 4871 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex2_user.c 1374 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex3_kern.c 6342 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
sockex3_user.c 2452 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
spintest_kern.c 2166 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
spintest_user.c 2112 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
syscall_nrs.c 337 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
syscall_tp_kern.c 1433 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
syscall_tp_user.c 3269 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
task_fd_query_kern.c 410 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
task_fd_query_user.c 11605 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tc_l2_redirect.sh 5024 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tc_l2_redirect_kern.c 6142 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tc_l2_redirect_user.c 1345 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcbpf1_kern.c 2619 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_basertt_kern.c 1733 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_bpf.readme 1128 bytes 2025-03-06 09:18:39 -  
tcp_bufs_kern.c 2170 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_clamp_kern.c 2758 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_cong_kern.c 1962 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_dumpstats_kern.c 1350 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40

Refer to samples/bpf/tcp_bpf.readme for the instructions on how to run this sample program.

tcp_iw_kern.c 2271 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_rwnd_kern.c 1743 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_synrto_kern.c 1707 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
tcp_tos_reflect_kern.c 1833 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cgrp2_array_pin.c 2155 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cgrp2_attach.c 4714 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40

eBPF example program: Creates arraymap in kernel with 4 bytes keys and 8 byte values Loads eBPF program The eBPF program accesses the map passed in to store two pieces of information.

test_cgrp2_sock.c 6445 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40

eBPF example program: Loads eBPF program The eBPF program sets the sk_bound_dev_if index in new AF_INET{6} sockets opened by processes in the cgroup.

test_cgrp2_sock.sh 2961 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cgrp2_sock2.c 2009 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40

eBPF example program: Loads eBPF program The eBPF program loads a filter from file and attaches the program to a cgroup using BPF_PROG_ATTACH

test_cgrp2_sock2.sh 1806 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cgrp2_tc.sh 4254 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cgrp2_tc_kern.c 1856 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_cls_bpf.sh 915 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_current_task_under_cgroup_kern.c 1139 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_current_task_under_cgroup_user.c 2457 bytes 2025-03-06 09:18:39 2025-03-06 13:32:40  
test_lru_dist.c 12187 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_lwt_bpf.c 6194 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_lwt_bpf.sh 9170 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_map_in_map_kern.c 4023 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_map_in_map_user.c 4358 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_overhead_kprobe_kern.c 1431 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_overhead_raw_tp_kern.c 361 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_overhead_tp_kern.c 879 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_overhead_user.c 4225 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_override_return.sh 276 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_probe_write_user_kern.c 1836 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
test_probe_write_user_user.c 3332 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
trace_common.h 286 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
trace_event_kern.c 2314 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
trace_event_user.c 8032 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
trace_output_kern.c 660 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
trace_output_user.c 2273 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex1_kern.c 1805 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex1_user.c 1098 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex2_kern.c 2395 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex2_user.c 4096 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex3_kern.c 2129 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex3_user.c 3753 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex4_kern.c 1274 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex4_user.c 2062 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex5_kern.c 2294 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex5_user.c 2310 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex6_kern.c 1478 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex6_user.c 5630 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex7_kern.c 339 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
tracex7_user.c 1219 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp1_kern.c 2267 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp1_user.c 3430 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp2_kern.c 2579 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp2skb_meta.sh 4610 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp2skb_meta_kern.c 3095 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_adjust_tail_kern.c 3919 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_adjust_tail_user.c 4724 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_fwd_kern.c 4652 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_fwd_user.c 5369 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_monitor.bpf.c 218 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_monitor_user.c 2813 bytes 2025-03-06 09:18:39 2025-03-06 13:32:41  
xdp_redirect.bpf.c 1335 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_cpu.bpf.c 12262 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_cpu_user.c 15291 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_map.bpf.c 2559 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_map_multi.bpf.c 1744 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_map_multi_user.c 5863 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_map_user.c 6201 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_redirect_user.c 4425 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_router_ipv4.bpf.c 4103 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_router_ipv4_user.c 17396 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_rxq_info_kern.c 3231 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_rxq_info_user.c 14468 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample.bpf.c 7284 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample.bpf.h 3968 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample_pkts_kern.c 1566 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample_pkts_user.c 4028 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample_shared.h 295 bytes 2025-03-06 09:18:39 2025-03-06 13:32:42  
xdp_sample_user.c 43387 bytes 2025-03-06 09:18:39 2025-03-06 13:32:43  
xdp_sample_user.h 4556 bytes 2025-03-06 09:18:39 2025-03-06 13:32:43  
xdp_tx_iptunnel_common.h 485 bytes 2025-03-06 09:18:39 2025-03-06 13:32:43  
xdp_tx_iptunnel_kern.c 5707 bytes 2025-03-06 09:18:39 2025-03-06 13:32:43  
xdp_tx_iptunnel_user.c 7541 bytes 2025-03-06 09:18:39 2025-03-06 13:32:43