xref: /aosp_15_r20/external/bcc/src/cc/README (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1*387f9dfdSAndroid Build Coastguard WorkerThe libbpf directory is a git submodule for repository
2*387f9dfdSAndroid Build Coastguard Worker  https://github.com/libbpf/libbpf
3*387f9dfdSAndroid Build Coastguard Worker
4*387f9dfdSAndroid Build Coastguard WorkerIf you have any change in libbpf directory, please upstream to linux
5*387f9dfdSAndroid Build Coastguard Workerfirst as libbpf repo is a mirror of linux/tools/lib/bpf directory.
6*387f9dfdSAndroid Build Coastguard Worker
7*387f9dfdSAndroid Build Coastguard WorkerIf any top-commit update of libbpf submodule contains a uapi header
8*387f9dfdSAndroid Build Coastguard Workerchange, the following are necessary steps to sync properly with
9*387f9dfdSAndroid Build Coastguard Workerrest of bcc:
10*387f9dfdSAndroid Build Coastguard Worker  1. sync compat/linux/virtual_bpf.h with libbpf/include/uapi/linux/bpf.h
11*387f9dfdSAndroid Build Coastguard Worker     as virtual_bpf.h has an extra string wrapper for bpf.h.
12*387f9dfdSAndroid Build Coastguard Worker  2. if new bpf.h has new helpers, add corresponding helper func define
13*387f9dfdSAndroid Build Coastguard Worker     in bcc:src/cc/export/helpers.h and helper entry for error reporting
14*387f9dfdSAndroid Build Coastguard Worker     in bcc:src/cc/libbpf.c.
15*387f9dfdSAndroid Build Coastguard Worker  3. if new bpf.h has new map types, program types, update
16*387f9dfdSAndroid Build Coastguard Worker     bcc:introspection/bps.c for these new map/program types.
17