sys/linux: add btf descriptions

Add some new bpf descriptions, most notably btf.
Not perfect, but something.
This commit is contained in:
Dmitry Vyukov 2018-09-11 18:44:54 +02:00
parent 4ae17b1f4c
commit 3c88136c8a
14 changed files with 545 additions and 23 deletions

View File

@ -60,7 +60,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "034d4275241b8cebc2c3b9edf1693460dfc8372f"
#define SYZ_REVISION "c1d0b0e8e27df332e1faf02379d003ad46332382"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -70,7 +70,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "9d53ce5e4d4e0304076e90c9405038a6e51e0ac0"
#define SYZ_REVISION "11225337e750e35b0a5e061fc783471b4dea4779"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "8e29318621f98bc9b90c93f203d08f3a645e3d48"
#define SYZ_REVISION "224cd53e69a2ef1e33f00bef661712cb661a295b"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "47a45bb589ebe3d532c83feab04e13018f823058"
#define SYZ_REVISION "2b84cd26632dbdfebc2b6fdbe68f7aafc24a7e7d"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "c5c93d7e6ee635fd7c05f7f80d1228b4f533936e"
#define SYZ_REVISION "213dc6a138b8d764010affcd2c64413208c5f03e"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

View File

@ -1114,6 +1114,9 @@ const call_t syscalls[] = {
{"bind$vsock_dgram", 361},
{"bind$vsock_stream", 361},
{"bind$xdp", 361},
{"bpf$BPF_BTF_GET_FD_BY_ID", 357},
{"bpf$BPF_BTF_LOAD", 357},
{"bpf$BPF_GET_BTF_INFO", 357},
{"bpf$BPF_GET_MAP_INFO", 357},
{"bpf$BPF_GET_PROG_INFO", 357},
{"bpf$BPF_MAP_GET_FD_BY_ID", 357},
@ -1125,6 +1128,7 @@ const call_t syscalls[] = {
{"bpf$BPF_PROG_QUERY", 357},
{"bpf$BPF_PROG_TEST_RUN", 357},
{"bpf$BPF_RAW_TRACEPOINT_OPEN", 357},
{"bpf$BPF_TASK_FD_QUERY", 357},
{"bpf$MAP_CREATE", 357},
{"bpf$MAP_DELETE_ELEM", 357},
{"bpf$MAP_GET_NEXT_KEY", 357},
@ -3311,6 +3315,9 @@ const call_t syscalls[] = {
{"bind$vsock_dgram", 49},
{"bind$vsock_stream", 49},
{"bind$xdp", 49},
{"bpf$BPF_BTF_GET_FD_BY_ID", 321},
{"bpf$BPF_BTF_LOAD", 321},
{"bpf$BPF_GET_BTF_INFO", 321},
{"bpf$BPF_GET_MAP_INFO", 321},
{"bpf$BPF_GET_PROG_INFO", 321},
{"bpf$BPF_MAP_GET_FD_BY_ID", 321},
@ -3322,6 +3329,7 @@ const call_t syscalls[] = {
{"bpf$BPF_PROG_QUERY", 321},
{"bpf$BPF_PROG_TEST_RUN", 321},
{"bpf$BPF_RAW_TRACEPOINT_OPEN", 321},
{"bpf$BPF_TASK_FD_QUERY", 321},
{"bpf$MAP_CREATE", 321},
{"bpf$MAP_DELETE_ELEM", 321},
{"bpf$MAP_GET_NEXT_KEY", 321},
@ -5548,6 +5556,9 @@ const call_t syscalls[] = {
{"bind$vsock_dgram", 282},
{"bind$vsock_stream", 282},
{"bind$xdp", 282},
{"bpf$BPF_BTF_GET_FD_BY_ID", 386},
{"bpf$BPF_BTF_LOAD", 386},
{"bpf$BPF_GET_BTF_INFO", 386},
{"bpf$BPF_GET_MAP_INFO", 386},
{"bpf$BPF_GET_PROG_INFO", 386},
{"bpf$BPF_MAP_GET_FD_BY_ID", 386},
@ -5559,6 +5570,7 @@ const call_t syscalls[] = {
{"bpf$BPF_PROG_QUERY", 386},
{"bpf$BPF_PROG_TEST_RUN", 386},
{"bpf$BPF_RAW_TRACEPOINT_OPEN", 386},
{"bpf$BPF_TASK_FD_QUERY", 386},
{"bpf$MAP_CREATE", 386},
{"bpf$MAP_DELETE_ELEM", 386},
{"bpf$MAP_GET_NEXT_KEY", 386},
@ -7743,6 +7755,9 @@ const call_t syscalls[] = {
{"bind$vsock_dgram", 200},
{"bind$vsock_stream", 200},
{"bind$xdp", 200},
{"bpf$BPF_BTF_GET_FD_BY_ID", 280},
{"bpf$BPF_BTF_LOAD", 280},
{"bpf$BPF_GET_BTF_INFO", 280},
{"bpf$BPF_GET_MAP_INFO", 280},
{"bpf$BPF_GET_PROG_INFO", 280},
{"bpf$BPF_MAP_GET_FD_BY_ID", 280},
@ -7754,6 +7769,7 @@ const call_t syscalls[] = {
{"bpf$BPF_PROG_QUERY", 280},
{"bpf$BPF_PROG_TEST_RUN", 280},
{"bpf$BPF_RAW_TRACEPOINT_OPEN", 280},
{"bpf$BPF_TASK_FD_QUERY", 280},
{"bpf$MAP_CREATE", 280},
{"bpf$MAP_DELETE_ELEM", 280},
{"bpf$MAP_GET_NEXT_KEY", 280},
@ -9912,6 +9928,9 @@ const call_t syscalls[] = {
{"bind$vsock_dgram", 327},
{"bind$vsock_stream", 327},
{"bind$xdp", 327},
{"bpf$BPF_BTF_GET_FD_BY_ID", 361},
{"bpf$BPF_BTF_LOAD", 361},
{"bpf$BPF_GET_BTF_INFO", 361},
{"bpf$BPF_GET_MAP_INFO", 361},
{"bpf$BPF_GET_PROG_INFO", 361},
{"bpf$BPF_MAP_GET_FD_BY_ID", 361},
@ -9923,6 +9942,7 @@ const call_t syscalls[] = {
{"bpf$BPF_PROG_QUERY", 361},
{"bpf$BPF_PROG_TEST_RUN", 361},
{"bpf$BPF_RAW_TRACEPOINT_OPEN", 361},
{"bpf$BPF_TASK_FD_QUERY", 361},
{"bpf$MAP_CREATE", 361},
{"bpf$MAP_DELETE_ELEM", 361},
{"bpf$MAP_GET_NEXT_KEY", 361},

View File

@ -5,12 +5,16 @@
# net.core.bpf_jit_enable = { 0, 1, 2 }
# net.core.bpf_jit_harden = { 0, 1, 2 }
include <linux/bpf.h>
include <uapi/linux/bpf.h>
include <uapi/linux/btf.h>
resource fd_bpf_map[fd]: BPF_PSEUDO_MAP_FD
resource fd_bpf_prog[fd]
resource fd_rawtp[fd_perf_base]
resource fd_btf[fd]
resource bpf_prog_id[int32]: 0, -1
resource bpf_map_id[int32]: 0, -1
resource bpf_btf_id[int32]: 0, -1
bpf$MAP_CREATE(cmd const[BPF_MAP_CREATE], arg ptr[in, bpf_map_create_arg], size len[arg]) fd_bpf_map
bpf$MAP_LOOKUP_ELEM(cmd const[BPF_MAP_LOOKUP_ELEM], arg ptr[in, bpf_map_lookup_arg], size len[arg])
@ -31,8 +35,12 @@ bpf$BPF_PROG_GET_FD_BY_ID(cmd const[BPF_PROG_GET_FD_BY_ID], arg ptr[in, bpf_prog
bpf$BPF_MAP_GET_FD_BY_ID(cmd const[BPF_MAP_GET_FD_BY_ID], arg ptr[in, bpf_map_get_fd_by_id_arg], size len[arg]) fd_bpf_map
bpf$BPF_GET_PROG_INFO(cmd const[BPF_OBJ_GET_INFO_BY_FD], arg ptr[in, bpf_get_prog_info_arg], size len[arg])
bpf$BPF_GET_MAP_INFO(cmd const[BPF_OBJ_GET_INFO_BY_FD], arg ptr[in, bpf_get_map_info_arg], size len[arg])
bpf$BPF_GET_BTF_INFO(cmd const[BPF_OBJ_GET_INFO_BY_FD], arg ptr[in, bpf_get_btf_info_arg], size len[arg])
bpf$BPF_PROG_QUERY(cmd const[BPF_PROG_QUERY], arg ptr[in, bpf_prog_query], size len[arg])
bpf$BPF_RAW_TRACEPOINT_OPEN(cmd const[BPF_RAW_TRACEPOINT_OPEN], arg ptr[in, bpf_raw_tracepoint], size len[arg]) fd
bpf$BPF_RAW_TRACEPOINT_OPEN(cmd const[BPF_RAW_TRACEPOINT_OPEN], arg ptr[in, bpf_raw_tracepoint], size len[arg]) fd_rawtp
bpf$BPF_BTF_LOAD(cmd const[BPF_BTF_LOAD], arg ptr[in, bpf_btf_load], size len[arg]) fd_btf
bpf$BPF_BTF_GET_FD_BY_ID(cmd const[BPF_BTF_GET_FD_BY_ID], arg ptr[in, bpf_btf_id], size len[arg]) fd_btf
bpf$BPF_TASK_FD_QUERY(cmd const[BPF_TASK_FD_QUERY], arg ptr[inout, bpf_task_fd_query], size len[arg])
bpf_map_create_arg {
type flags[bpf_map_type, int32]
@ -331,6 +339,18 @@ bpf_map_info {
name array[int8, BPF_OBJ_NAME_LEN]
} [align_8]
bpf_get_btf_info_arg {
btf fd_btf
len len[info, int32]
info ptr64[inout, bpf_btf_info]
}
bpf_btf_info {
btf ptr64[out, array[int8]]
btf_size bytesize[btf, int32]
id bpf_btf_id[opt]
} [align_8]
bpf_prog_query {
target_fd fd_cgroup
attach_type flags[bpf_prog_query_attach_type, int32]
@ -345,6 +365,57 @@ bpf_raw_tracepoint {
prog_fd fd_bpf_prog
} [align_8]
bpf_btf_load {
btf ptr64[in, bpf_btf_program]
btf_log_buf ptr64[out, array[int8]]
btf_size bytesize[btf, int32]
btf_log_size bytesize[btf_log_buf, int32]
btf_log_level bool32
} [align_8]
bpf_btf_program {
header btf_header
strings bpf_btf_strings
} [packed]
btf_header {
magic const[BTF_MAGIC, int16]
version const[BTF_VERSION, int8]
flags const[0, int8]
hdr_len const[0x18, int32]
type_off const[0, int32]
type_len bytesize[types, int32]
str_off bytesize[parent, int32]
# TODO: should be bytesize[bpf_btf_program.strings]
str_len int32
types bpf_btf_types
}
bpf_btf_types {
# This consists of some metas and some types (see btf_check_all_metas and btf_check_all_types).
data array[int8]
} [align_4]
bpf_btf_strings {
z0 const[0, int8]
data array[int8]
z1 const[0, int8]
} [packed]
bpf_task_fd_query {
# TODO: part of fields are input here and part are output. We can't express this yet (#245).
pid pid
fd fd_perf_base
flags const[0, int32]
buf_len bytesize[buf, int32]
buf ptr64[in, string]
# These are output fields:
prog_id bpf_prog_id[opt]
fd_type const[0, int32]
probe_offset const[0, int64]
probe_addr const[0, int64]
}
bpf_map_type = BPF_MAP_TYPE_HASH, BPF_MAP_TYPE_ARRAY, BPF_MAP_TYPE_PROG_ARRAY, BPF_MAP_TYPE_PERF_EVENT_ARRAY, BPF_MAP_TYPE_STACK_TRACE, BPF_MAP_TYPE_CGROUP_ARRAY, BPF_MAP_TYPE_PERCPU_HASH, BPF_MAP_TYPE_PERCPU_ARRAY, BPF_MAP_TYPE_LRU_HASH, BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_MAP_TYPE_LPM_TRIE, BPF_MAP_TYPE_ARRAY_OF_MAPS, BPF_MAP_TYPE_HASH_OF_MAPS, BPF_MAP_TYPE_DEVMAP, BPF_MAP_TYPE_SOCKMAP, BPF_MAP_TYPE_CPUMAP
bpf_map_flags = BPF_ANY, BPF_NOEXIST, BPF_EXIST
bpf_prog_type = BPF_PROG_TYPE_SOCKET_FILTER, BPF_PROG_TYPE_KPROBE, BPF_PROG_TYPE_SCHED_CLS, BPF_PROG_TYPE_SCHED_ACT, BPF_PROG_TYPE_TRACEPOINT, BPF_PROG_TYPE_XDP, BPF_PROG_TYPE_PERF_EVENT, BPF_PROG_TYPE_CGROUP_SKB, BPF_PROG_TYPE_CGROUP_SOCK, BPF_PROG_TYPE_LWT_IN, BPF_PROG_TYPE_LWT_OUT, BPF_PROG_TYPE_LWT_XMIT, BPF_PROG_TYPE_SOCK_OPS, BPF_PROG_TYPE_SK_SKB, BPF_PROG_TYPE_CGROUP_DEVICE, BPF_PROG_TYPE_SK_MSG, BPF_PROG_TYPE_RAW_TRACEPOINT, BPF_PROG_TYPE_CGROUP_SOCK_ADDR

View File

@ -7,6 +7,8 @@ BPF_AND0 = 5
BPF_ANY = 0
BPF_ARSH0 = 12
BPF_B0 = 2
BPF_BTF_GET_FD_BY_ID = 19
BPF_BTF_LOAD = 18
BPF_CALL0 = 8
BPF_CGROUP_DEVICE = 6
BPF_CGROUP_INET4_BIND = 8
@ -132,9 +134,12 @@ BPF_SK_SKB_STREAM_VERDICT = 5
BPF_ST = 2
BPF_STX = 3
BPF_SUB0 = 1
BPF_TASK_FD_QUERY = 20
BPF_W0 = 0
BPF_XADD0 = 6
BPF_XOR0 = 10
BTF_MAGIC = 60319
BTF_VERSION = 1
__BPF_FUNC_MAX_ID = 84
__NR_bpf = 357
bpf_call_code = 133

View File

@ -7,6 +7,8 @@ BPF_AND0 = 5
BPF_ANY = 0
BPF_ARSH0 = 12
BPF_B0 = 2
BPF_BTF_GET_FD_BY_ID = 19
BPF_BTF_LOAD = 18
BPF_CALL0 = 8
BPF_CGROUP_DEVICE = 6
BPF_CGROUP_INET4_BIND = 8
@ -132,9 +134,12 @@ BPF_SK_SKB_STREAM_VERDICT = 5
BPF_ST = 2
BPF_STX = 3
BPF_SUB0 = 1
BPF_TASK_FD_QUERY = 20
BPF_W0 = 0
BPF_XADD0 = 6
BPF_XOR0 = 10
BTF_MAGIC = 60319
BTF_VERSION = 1
__BPF_FUNC_MAX_ID = 84
__NR_bpf = 321
bpf_call_code = 133

View File

@ -7,6 +7,8 @@ BPF_AND0 = 5
BPF_ANY = 0
BPF_ARSH0 = 12
BPF_B0 = 2
BPF_BTF_GET_FD_BY_ID = 19
BPF_BTF_LOAD = 18
BPF_CALL0 = 8
BPF_CGROUP_DEVICE = 6
BPF_CGROUP_INET4_BIND = 8
@ -132,9 +134,12 @@ BPF_SK_SKB_STREAM_VERDICT = 5
BPF_ST = 2
BPF_STX = 3
BPF_SUB0 = 1
BPF_TASK_FD_QUERY = 20
BPF_W0 = 0
BPF_XADD0 = 6
BPF_XOR0 = 10
BTF_MAGIC = 60319
BTF_VERSION = 1
__BPF_FUNC_MAX_ID = 84
__NR_bpf = 386
bpf_call_code = 133

View File

@ -7,6 +7,8 @@ BPF_AND0 = 5
BPF_ANY = 0
BPF_ARSH0 = 12
BPF_B0 = 2
BPF_BTF_GET_FD_BY_ID = 19
BPF_BTF_LOAD = 18
BPF_CALL0 = 8
BPF_CGROUP_DEVICE = 6
BPF_CGROUP_INET4_BIND = 8
@ -132,9 +134,12 @@ BPF_SK_SKB_STREAM_VERDICT = 5
BPF_ST = 2
BPF_STX = 3
BPF_SUB0 = 1
BPF_TASK_FD_QUERY = 20
BPF_W0 = 0
BPF_XADD0 = 6
BPF_XOR0 = 10
BTF_MAGIC = 60319
BTF_VERSION = 1
__BPF_FUNC_MAX_ID = 84
__NR_bpf = 280
bpf_call_code = 133

View File

@ -7,6 +7,8 @@ BPF_AND0 = 5
BPF_ANY = 0
BPF_ARSH0 = 12
BPF_B0 = 2
BPF_BTF_GET_FD_BY_ID = 19
BPF_BTF_LOAD = 18
BPF_CALL0 = 8
BPF_CGROUP_DEVICE = 6
BPF_CGROUP_INET4_BIND = 8
@ -132,9 +134,12 @@ BPF_SK_SKB_STREAM_VERDICT = 5
BPF_ST = 2
BPF_STX = 3
BPF_SUB0 = 1
BPF_TASK_FD_QUERY = 20
BPF_W0 = 0
BPF_XADD0 = 6
BPF_XOR0 = 10
BTF_MAGIC = 60319
BTF_VERSION = 1
__BPF_FUNC_MAX_ID = 84
__NR_bpf = 361
bpf_call_code = 133

View File

@ -13,6 +13,7 @@ func init() {
var resources_386 = []*ResourceDesc{
{Name: "assoc_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"assoc_id"}, Values: []uint64{0}},
{Name: "binder_ptr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}, Kind: []string{"binder_ptr"}, Values: []uint64{0}},
{Name: "bpf_btf_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_btf_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_map_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_map_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_prog_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_prog_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "drm_agp_handle", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"drm_agp_handle"}, Values: []uint64{0}},
@ -26,6 +27,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_block_trace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_bpf_map", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 18446744073709551516, 1}},
{Name: "fd_bpf_prog", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_btf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cdrom", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cdrom"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup_int", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup_int"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -55,8 +57,10 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_nbd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_nbd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -701,6 +705,31 @@ var structDescs_386 = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_btf_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "btf"},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", FldName: "id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_load"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_load", TypeSize: 32}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_program"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf_log_buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4}}, BitSize: 8, Buf: "btf"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_log_size", TypeSize: 4}}, BitSize: 8, Buf: "btf_log_buf"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_log_level", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_program"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_program", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "btf_header"}, FldName: "header"},
&StructType{Key: StructKey{Name: "bpf_btf_strings"}, FldName: "strings"},
}}},
{Key: StructKey{Name: "bpf_btf_strings"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_strings", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z0", TypeSize: 1}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z1", TypeSize: 1}}},
}}},
{Key: StructKey{Name: "bpf_btf_types"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_types", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}, AlignAttr: 4}},
{Key: StructKey{Name: "bpf_detach_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_detach_arg", TypeSize: 20}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "target", TypeSize: 4}}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
@ -713,6 +742,11 @@ var structDescs_386 = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "body", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "bpf_insn"}}},
&StructType{Key: StructKey{Name: "bpf_insn_exit"}, FldName: "exit"},
}}},
{Key: StructKey{Name: "bpf_get_btf_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_btf_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_info", Dir: 2}}},
}}},
{Key: StructKey{Name: "bpf_get_map_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_map_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "prog", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
@ -912,6 +946,17 @@ var structDescs_386 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_task_fd_query", TypeSize: 48, ArgDir: 2}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4, ArgDir: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf_base", FldName: "fd", TypeSize: 4, ArgDir: 2}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "buf_len", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "buf"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_prog_id", FldName: "prog_id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd_type", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_offset", TypeSize: 8, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_addr", TypeSize: 8, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "bpf_test_prog_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_test_prog_arg", TypeSize: 40}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "retval", TypeSize: 4}}},
@ -1008,6 +1053,17 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "lev", TypeSize: 1, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "keysize", TypeSize: 1, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "btf_header"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btf_header", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "magic", TypeSize: 2}}, Val: 60319},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}, Val: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "hdr_len", TypeSize: 4}}, Val: 24},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type_off", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "type_len", TypeSize: 4}}, BitSize: 8, Buf: "types"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "str_off", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "str_len", TypeSize: 4}}},
&StructType{Key: StructKey{Name: "bpf_btf_types"}, FldName: "types"},
}}},
{Key: StructKey{Name: "btrfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btrfs_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "degraded", TypeSize: 8}, Kind: 2, Values: []string{"degraded"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodatasum", TypeSize: 9}, Kind: 2, Values: []string{"nodatasum"}, NoZ: true},
@ -22483,6 +22539,21 @@ var syscalls_386 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sockaddr_xdp_bind"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "addr"},
}},
{NR: 357, Name: "bpf$BPF_BTF_GET_FD_BY_ID", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 357, Name: "bpf$BPF_BTF_LOAD", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_btf_load"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 357, Name: "bpf$BPF_GET_BTF_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_get_btf_info_arg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}},
{NR: 357, Name: "bpf$BPF_GET_MAP_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_get_map_info_arg"}}},
@ -22537,7 +22608,12 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 17},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_raw_tracepoint"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rawtp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 357, Name: "bpf$BPF_TASK_FD_QUERY", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}},
{NR: 357, Name: "bpf$MAP_CREATE", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_map_create_arg"}}},
@ -34472,6 +34548,8 @@ var consts_386 = []ConstValue{
{Name: "BPF_ANY"},
{Name: "BPF_ARSH0", Value: 12},
{Name: "BPF_B0", Value: 2},
{Name: "BPF_BTF_GET_FD_BY_ID", Value: 19},
{Name: "BPF_BTF_LOAD", Value: 18},
{Name: "BPF_CALL0", Value: 8},
{Name: "BPF_CGROUP_DEVICE", Value: 6},
{Name: "BPF_CGROUP_INET4_BIND", Value: 8},
@ -34597,6 +34675,7 @@ var consts_386 = []ConstValue{
{Name: "BPF_ST", Value: 2},
{Name: "BPF_STX", Value: 3},
{Name: "BPF_SUB0", Value: 1},
{Name: "BPF_TASK_FD_QUERY", Value: 20},
{Name: "BPF_W0"},
{Name: "BPF_XADD0", Value: 6},
{Name: "BPF_XOR0", Value: 10},
@ -34604,6 +34683,8 @@ var consts_386 = []ConstValue{
{Name: "BRCTL_DEL_BRIDGE", Value: 3},
{Name: "BRCTL_GET_BRIDGES", Value: 1},
{Name: "BRCTL_GET_VERSION"},
{Name: "BTF_MAGIC", Value: 60319},
{Name: "BTF_VERSION", Value: 1},
{Name: "BTPROTO_BNEP", Value: 4},
{Name: "BTPROTO_CMTP", Value: 5},
{Name: "BTPROTO_HCI", Value: 1},
@ -40680,4 +40761,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_386 = "034d4275241b8cebc2c3b9edf1693460dfc8372f"
const revision_386 = "c1d0b0e8e27df332e1faf02379d003ad46332382"

View File

@ -13,6 +13,7 @@ func init() {
var resources_amd64 = []*ResourceDesc{
{Name: "assoc_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"assoc_id"}, Values: []uint64{0}},
{Name: "binder_ptr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}, Kind: []string{"binder_ptr"}, Values: []uint64{0}},
{Name: "bpf_btf_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_btf_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_map_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_map_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_prog_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_prog_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "drm_agp_handle", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"drm_agp_handle"}, Values: []uint64{0}},
@ -26,6 +27,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_block_trace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_bpf_map", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 18446744073709551516, 1}},
{Name: "fd_bpf_prog", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_btf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cdrom", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cdrom"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup_int", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup_int"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -55,8 +57,10 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_nbd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_nbd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -709,6 +713,31 @@ var structDescs_amd64 = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_btf_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "btf"},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", FldName: "id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_load"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_load", TypeSize: 32}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_program"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf_log_buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4}}, BitSize: 8, Buf: "btf"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_log_size", TypeSize: 4}}, BitSize: 8, Buf: "btf_log_buf"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_log_level", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_program"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_program", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "btf_header"}, FldName: "header"},
&StructType{Key: StructKey{Name: "bpf_btf_strings"}, FldName: "strings"},
}}},
{Key: StructKey{Name: "bpf_btf_strings"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_strings", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z0", TypeSize: 1}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z1", TypeSize: 1}}},
}}},
{Key: StructKey{Name: "bpf_btf_types"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_types", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}, AlignAttr: 4}},
{Key: StructKey{Name: "bpf_detach_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_detach_arg", TypeSize: 20}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "target", TypeSize: 4}}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
@ -721,6 +750,11 @@ var structDescs_amd64 = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "body", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "bpf_insn"}}},
&StructType{Key: StructKey{Name: "bpf_insn_exit"}, FldName: "exit"},
}}},
{Key: StructKey{Name: "bpf_get_btf_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_btf_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_info", Dir: 2}}},
}}},
{Key: StructKey{Name: "bpf_get_map_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_map_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "prog", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
@ -920,6 +954,17 @@ var structDescs_amd64 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_task_fd_query", TypeSize: 48, ArgDir: 2}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4, ArgDir: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf_base", FldName: "fd", TypeSize: 4, ArgDir: 2}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "buf_len", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "buf"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_prog_id", FldName: "prog_id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd_type", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_offset", TypeSize: 8, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_addr", TypeSize: 8, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "bpf_test_prog_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_test_prog_arg", TypeSize: 40}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "retval", TypeSize: 4}}},
@ -1014,6 +1059,17 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "lev", TypeSize: 1, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "keysize", TypeSize: 1, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "btf_header"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btf_header", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "magic", TypeSize: 2}}, Val: 60319},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}, Val: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "hdr_len", TypeSize: 4}}, Val: 24},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type_off", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "type_len", TypeSize: 4}}, BitSize: 8, Buf: "types"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "str_off", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "str_len", TypeSize: 4}}},
&StructType{Key: StructKey{Name: "bpf_btf_types"}, FldName: "types"},
}}},
{Key: StructKey{Name: "btrfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btrfs_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "degraded", TypeSize: 8}, Kind: 2, Values: []string{"degraded"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodatasum", TypeSize: 9}, Kind: 2, Values: []string{"nodatasum"}, NoZ: true},
@ -22933,6 +22989,21 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_xdp_bind"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "addr"},
}},
{NR: 321, Name: "bpf$BPF_BTF_GET_FD_BY_ID", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 321, Name: "bpf$BPF_BTF_LOAD", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_load"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 321, Name: "bpf$BPF_GET_BTF_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_btf_info_arg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 321, Name: "bpf$BPF_GET_MAP_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_map_info_arg"}}},
@ -22987,7 +23058,12 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 17},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_raw_tracepoint"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rawtp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 321, Name: "bpf$BPF_TASK_FD_QUERY", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 321, Name: "bpf$MAP_CREATE", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_create_arg"}}},
@ -35141,6 +35217,8 @@ var consts_amd64 = []ConstValue{
{Name: "BPF_ANY"},
{Name: "BPF_ARSH0", Value: 12},
{Name: "BPF_B0", Value: 2},
{Name: "BPF_BTF_GET_FD_BY_ID", Value: 19},
{Name: "BPF_BTF_LOAD", Value: 18},
{Name: "BPF_CALL0", Value: 8},
{Name: "BPF_CGROUP_DEVICE", Value: 6},
{Name: "BPF_CGROUP_INET4_BIND", Value: 8},
@ -35266,6 +35344,7 @@ var consts_amd64 = []ConstValue{
{Name: "BPF_ST", Value: 2},
{Name: "BPF_STX", Value: 3},
{Name: "BPF_SUB0", Value: 1},
{Name: "BPF_TASK_FD_QUERY", Value: 20},
{Name: "BPF_W0"},
{Name: "BPF_XADD0", Value: 6},
{Name: "BPF_XOR0", Value: 10},
@ -35273,6 +35352,8 @@ var consts_amd64 = []ConstValue{
{Name: "BRCTL_DEL_BRIDGE", Value: 3},
{Name: "BRCTL_GET_BRIDGES", Value: 1},
{Name: "BRCTL_GET_VERSION"},
{Name: "BTF_MAGIC", Value: 60319},
{Name: "BTF_VERSION", Value: 1},
{Name: "BTPROTO_BNEP", Value: 4},
{Name: "BTPROTO_CMTP", Value: 5},
{Name: "BTPROTO_HCI", Value: 1},
@ -41374,4 +41455,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_amd64 = "9d53ce5e4d4e0304076e90c9405038a6e51e0ac0"
const revision_amd64 = "11225337e750e35b0a5e061fc783471b4dea4779"

View File

@ -13,6 +13,7 @@ func init() {
var resources_arm = []*ResourceDesc{
{Name: "assoc_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"assoc_id"}, Values: []uint64{0}},
{Name: "binder_ptr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}, Kind: []string{"binder_ptr"}, Values: []uint64{0}},
{Name: "bpf_btf_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_btf_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_map_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_map_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_prog_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_prog_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "drm_agp_handle", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"drm_agp_handle"}, Values: []uint64{0}},
@ -26,6 +27,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_block_trace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_bpf_map", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 18446744073709551516, 1}},
{Name: "fd_bpf_prog", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_btf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cdrom", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cdrom"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup_int", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup_int"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -55,8 +57,10 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_nbd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_nbd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -706,6 +710,31 @@ var structDescs_arm = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_btf_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "btf"},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", FldName: "id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_load"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_load", TypeSize: 32}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_program"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf_log_buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4}}, BitSize: 8, Buf: "btf"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_log_size", TypeSize: 4}}, BitSize: 8, Buf: "btf_log_buf"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_log_level", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_program"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_program", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "btf_header"}, FldName: "header"},
&StructType{Key: StructKey{Name: "bpf_btf_strings"}, FldName: "strings"},
}}},
{Key: StructKey{Name: "bpf_btf_strings"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_strings", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z0", TypeSize: 1}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z1", TypeSize: 1}}},
}}},
{Key: StructKey{Name: "bpf_btf_types"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_types", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}, AlignAttr: 4}},
{Key: StructKey{Name: "bpf_detach_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_detach_arg", TypeSize: 20}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "target", TypeSize: 4}}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
@ -718,6 +747,11 @@ var structDescs_arm = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "body", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "bpf_insn"}}},
&StructType{Key: StructKey{Name: "bpf_insn_exit"}, FldName: "exit"},
}}},
{Key: StructKey{Name: "bpf_get_btf_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_btf_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_info", Dir: 2}}},
}}},
{Key: StructKey{Name: "bpf_get_map_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_map_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "prog", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
@ -917,6 +951,17 @@ var structDescs_arm = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_task_fd_query", TypeSize: 48, ArgDir: 2}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4, ArgDir: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf_base", FldName: "fd", TypeSize: 4, ArgDir: 2}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "buf_len", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "buf"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_prog_id", FldName: "prog_id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd_type", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_offset", TypeSize: 8, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_addr", TypeSize: 8, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "bpf_test_prog_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_test_prog_arg", TypeSize: 40}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "retval", TypeSize: 4}}},
@ -1013,6 +1058,17 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "lev", TypeSize: 1, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "keysize", TypeSize: 1, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "btf_header"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btf_header", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "magic", TypeSize: 2}}, Val: 60319},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}, Val: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "hdr_len", TypeSize: 4}}, Val: 24},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type_off", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "type_len", TypeSize: 4}}, BitSize: 8, Buf: "types"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "str_off", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "str_len", TypeSize: 4}}},
&StructType{Key: StructKey{Name: "bpf_btf_types"}, FldName: "types"},
}}},
{Key: StructKey{Name: "btrfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btrfs_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "degraded", TypeSize: 8}, Kind: 2, Values: []string{"degraded"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodatasum", TypeSize: 9}, Kind: 2, Values: []string{"nodatasum"}, NoZ: true},
@ -22391,6 +22447,21 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sockaddr_xdp_bind"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "addr"},
}},
{NR: 386, Name: "bpf$BPF_BTF_GET_FD_BY_ID", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 386, Name: "bpf$BPF_BTF_LOAD", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_btf_load"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 386, Name: "bpf$BPF_GET_BTF_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_get_btf_info_arg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}},
{NR: 386, Name: "bpf$BPF_GET_MAP_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_get_map_info_arg"}}},
@ -22445,7 +22516,12 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 17},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_raw_tracepoint"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rawtp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 386, Name: "bpf$BPF_TASK_FD_QUERY", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"},
}},
{NR: 386, Name: "bpf$MAP_CREATE", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_map_create_arg"}}},
@ -34392,6 +34468,8 @@ var consts_arm = []ConstValue{
{Name: "BPF_ANY"},
{Name: "BPF_ARSH0", Value: 12},
{Name: "BPF_B0", Value: 2},
{Name: "BPF_BTF_GET_FD_BY_ID", Value: 19},
{Name: "BPF_BTF_LOAD", Value: 18},
{Name: "BPF_CALL0", Value: 8},
{Name: "BPF_CGROUP_DEVICE", Value: 6},
{Name: "BPF_CGROUP_INET4_BIND", Value: 8},
@ -34517,6 +34595,7 @@ var consts_arm = []ConstValue{
{Name: "BPF_ST", Value: 2},
{Name: "BPF_STX", Value: 3},
{Name: "BPF_SUB0", Value: 1},
{Name: "BPF_TASK_FD_QUERY", Value: 20},
{Name: "BPF_W0"},
{Name: "BPF_XADD0", Value: 6},
{Name: "BPF_XOR0", Value: 10},
@ -34524,6 +34603,8 @@ var consts_arm = []ConstValue{
{Name: "BRCTL_DEL_BRIDGE", Value: 3},
{Name: "BRCTL_GET_BRIDGES", Value: 1},
{Name: "BRCTL_GET_VERSION"},
{Name: "BTF_MAGIC", Value: 60319},
{Name: "BTF_VERSION", Value: 1},
{Name: "BTPROTO_BNEP", Value: 4},
{Name: "BTPROTO_CMTP", Value: 5},
{Name: "BTPROTO_HCI", Value: 1},
@ -40546,4 +40627,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm = "8e29318621f98bc9b90c93f203d08f3a645e3d48"
const revision_arm = "224cd53e69a2ef1e33f00bef661712cb661a295b"

View File

@ -13,6 +13,7 @@ func init() {
var resources_arm64 = []*ResourceDesc{
{Name: "assoc_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"assoc_id"}, Values: []uint64{0}},
{Name: "binder_ptr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}, Kind: []string{"binder_ptr"}, Values: []uint64{0}},
{Name: "bpf_btf_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_btf_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_map_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_map_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_prog_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_prog_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "drm_agp_handle", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"drm_agp_handle"}, Values: []uint64{0}},
@ -26,6 +27,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_block_trace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_bpf_map", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 18446744073709551516, 1}},
{Name: "fd_bpf_prog", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_btf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cdrom", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cdrom"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup_int", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup_int"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -55,8 +57,10 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_nbd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_nbd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -709,6 +713,31 @@ var structDescs_arm64 = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_btf_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "btf"},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", FldName: "id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_load"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_load", TypeSize: 32}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_program"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf_log_buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4}}, BitSize: 8, Buf: "btf"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_log_size", TypeSize: 4}}, BitSize: 8, Buf: "btf_log_buf"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_log_level", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_program"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_program", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "btf_header"}, FldName: "header"},
&StructType{Key: StructKey{Name: "bpf_btf_strings"}, FldName: "strings"},
}}},
{Key: StructKey{Name: "bpf_btf_strings"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_strings", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z0", TypeSize: 1}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z1", TypeSize: 1}}},
}}},
{Key: StructKey{Name: "bpf_btf_types"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_types", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}, AlignAttr: 4}},
{Key: StructKey{Name: "bpf_detach_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_detach_arg", TypeSize: 20}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "target", TypeSize: 4}}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
@ -721,6 +750,11 @@ var structDescs_arm64 = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "body", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "bpf_insn"}}},
&StructType{Key: StructKey{Name: "bpf_insn_exit"}, FldName: "exit"},
}}},
{Key: StructKey{Name: "bpf_get_btf_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_btf_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_info", Dir: 2}}},
}}},
{Key: StructKey{Name: "bpf_get_map_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_map_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "prog", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
@ -920,6 +954,17 @@ var structDescs_arm64 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_task_fd_query", TypeSize: 48, ArgDir: 2}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4, ArgDir: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf_base", FldName: "fd", TypeSize: 4, ArgDir: 2}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "buf_len", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "buf"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_prog_id", FldName: "prog_id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd_type", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_offset", TypeSize: 8, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_addr", TypeSize: 8, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "bpf_test_prog_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_test_prog_arg", TypeSize: 40}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "retval", TypeSize: 4}}},
@ -1014,6 +1059,17 @@ var structDescs_arm64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "lev", TypeSize: 1, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "keysize", TypeSize: 1, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "btf_header"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btf_header", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "magic", TypeSize: 2}}, Val: 60319},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}, Val: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "hdr_len", TypeSize: 4}}, Val: 24},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type_off", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "type_len", TypeSize: 4}}, BitSize: 8, Buf: "types"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "str_off", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "str_len", TypeSize: 4}}},
&StructType{Key: StructKey{Name: "bpf_btf_types"}, FldName: "types"},
}}},
{Key: StructKey{Name: "btrfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btrfs_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "degraded", TypeSize: 8}, Kind: 2, Values: []string{"degraded"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodatasum", TypeSize: 9}, Kind: 2, Values: []string{"nodatasum"}, NoZ: true},
@ -22718,6 +22774,21 @@ var syscalls_arm64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_xdp_bind"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "addr"},
}},
{NR: 280, Name: "bpf$BPF_BTF_GET_FD_BY_ID", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 280, Name: "bpf$BPF_BTF_LOAD", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_load"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 280, Name: "bpf$BPF_GET_BTF_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_btf_info_arg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 280, Name: "bpf$BPF_GET_MAP_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_map_info_arg"}}},
@ -22772,7 +22843,12 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 17},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_raw_tracepoint"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rawtp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 280, Name: "bpf$BPF_TASK_FD_QUERY", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 280, Name: "bpf$MAP_CREATE", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_create_arg"}}},
@ -34623,6 +34699,8 @@ var consts_arm64 = []ConstValue{
{Name: "BPF_ANY"},
{Name: "BPF_ARSH0", Value: 12},
{Name: "BPF_B0", Value: 2},
{Name: "BPF_BTF_GET_FD_BY_ID", Value: 19},
{Name: "BPF_BTF_LOAD", Value: 18},
{Name: "BPF_CALL0", Value: 8},
{Name: "BPF_CGROUP_DEVICE", Value: 6},
{Name: "BPF_CGROUP_INET4_BIND", Value: 8},
@ -34748,6 +34826,7 @@ var consts_arm64 = []ConstValue{
{Name: "BPF_ST", Value: 2},
{Name: "BPF_STX", Value: 3},
{Name: "BPF_SUB0", Value: 1},
{Name: "BPF_TASK_FD_QUERY", Value: 20},
{Name: "BPF_W0"},
{Name: "BPF_XADD0", Value: 6},
{Name: "BPF_XOR0", Value: 10},
@ -34755,6 +34834,8 @@ var consts_arm64 = []ConstValue{
{Name: "BRCTL_DEL_BRIDGE", Value: 3},
{Name: "BRCTL_GET_BRIDGES", Value: 1},
{Name: "BRCTL_GET_VERSION"},
{Name: "BTF_MAGIC", Value: 60319},
{Name: "BTF_VERSION", Value: 1},
{Name: "BTPROTO_BNEP", Value: 4},
{Name: "BTPROTO_CMTP", Value: 5},
{Name: "BTPROTO_HCI", Value: 1},
@ -40768,4 +40849,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm64 = "47a45bb589ebe3d532c83feab04e13018f823058"
const revision_arm64 = "2b84cd26632dbdfebc2b6fdbe68f7aafc24a7e7d"

View File

@ -13,6 +13,7 @@ func init() {
var resources_ppc64le = []*ResourceDesc{
{Name: "assoc_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"assoc_id"}, Values: []uint64{0}},
{Name: "binder_ptr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}, Kind: []string{"binder_ptr"}, Values: []uint64{0}},
{Name: "bpf_btf_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_btf_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_map_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_map_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "bpf_prog_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"bpf_prog_id"}, Values: []uint64{0, 18446744073709551615}},
{Name: "drm_agp_handle", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"drm_agp_handle"}, Values: []uint64{0}},
@ -26,6 +27,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_block_trace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_bpf_map", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 18446744073709551516, 1}},
{Name: "fd_bpf_prog", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_btf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cdrom", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cdrom"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_cgroup_int", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_cgroup_int"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -54,8 +56,10 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_nbd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_nbd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -700,6 +704,31 @@ var structDescs_ppc64le = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_btf_info", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "btf"},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", FldName: "id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_load"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_load", TypeSize: 32}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_program"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "btf_log_buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_size", TypeSize: 4}}, BitSize: 8, Buf: "btf"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "btf_log_size", TypeSize: 4}}, BitSize: 8, Buf: "btf_log_buf"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_log_level", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_btf_program"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_program", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "btf_header"}, FldName: "header"},
&StructType{Key: StructKey{Name: "bpf_btf_strings"}, FldName: "strings"},
}}},
{Key: StructKey{Name: "bpf_btf_strings"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_strings", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z0", TypeSize: 1}}},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "z1", TypeSize: 1}}},
}}},
{Key: StructKey{Name: "bpf_btf_types"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_btf_types", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}, AlignAttr: 4}},
{Key: StructKey{Name: "bpf_detach_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_detach_arg", TypeSize: 20}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "target", TypeSize: 4}}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
@ -712,6 +741,11 @@ var structDescs_ppc64le = []*KeyedStruct{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "body", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "bpf_insn"}}},
&StructType{Key: StructKey{Name: "bpf_insn_exit"}, FldName: "exit"},
}}},
{Key: StructKey{Name: "bpf_get_btf_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_btf_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_info", Dir: 2}}},
}}},
{Key: StructKey{Name: "bpf_get_map_info_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_get_map_info_arg", TypeSize: 16}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "prog", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"},
@ -911,6 +945,17 @@ var structDescs_ppc64le = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_task_fd_query", TypeSize: 48, ArgDir: 2}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4, ArgDir: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf_base", FldName: "fd", TypeSize: 4, ArgDir: 2}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "buf_len", TypeSize: 4, ArgDir: 2}}, BitSize: 8, Buf: "buf"},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_prog_id", FldName: "prog_id", TypeSize: 4, ArgDir: 2, IsOptional: true}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd_type", TypeSize: 4, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_offset", TypeSize: 8, ArgDir: 2}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "probe_addr", TypeSize: 8, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "bpf_test_prog_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_test_prog_arg", TypeSize: 40}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "retval", TypeSize: 4}}},
@ -1005,6 +1050,17 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "lev", TypeSize: 1, ArgDir: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "keysize", TypeSize: 1, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "btf_header"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btf_header", IsVarlen: true}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "magic", TypeSize: 2}}, Val: 60319},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 1}}, Val: 1},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 1}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "hdr_len", TypeSize: 4}}, Val: 24},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type_off", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "type_len", TypeSize: 4}}, BitSize: 8, Buf: "types"},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "str_off", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "str_len", TypeSize: 4}}},
&StructType{Key: StructKey{Name: "bpf_btf_types"}, FldName: "types"},
}}},
{Key: StructKey{Name: "btrfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "btrfs_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "degraded", TypeSize: 8}, Kind: 2, Values: []string{"degraded"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodatasum", TypeSize: 9}, Kind: 2, Values: []string{"nodatasum"}, NoZ: true},
@ -21732,6 +21788,21 @@ var syscalls_ppc64le = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_xdp_bind"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "addr"},
}},
{NR: 361, Name: "bpf$BPF_BTF_GET_FD_BY_ID", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "bpf_btf_id", TypeSize: 4}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 361, Name: "bpf$BPF_BTF_LOAD", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_btf_load"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 361, Name: "bpf$BPF_GET_BTF_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_btf_info_arg"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 361, Name: "bpf$BPF_GET_MAP_INFO", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_get_map_info_arg"}}},
@ -21786,7 +21857,12 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 17},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_raw_tracepoint"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rawtp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 361, Name: "bpf$BPF_TASK_FD_QUERY", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_task_fd_query", Dir: 2}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"},
}},
{NR: 361, Name: "bpf$MAP_CREATE", CallName: "bpf", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_create_arg"}}},
@ -33018,6 +33094,8 @@ var consts_ppc64le = []ConstValue{
{Name: "BPF_ANY"},
{Name: "BPF_ARSH0", Value: 12},
{Name: "BPF_B0", Value: 2},
{Name: "BPF_BTF_GET_FD_BY_ID", Value: 19},
{Name: "BPF_BTF_LOAD", Value: 18},
{Name: "BPF_CALL0", Value: 8},
{Name: "BPF_CGROUP_DEVICE", Value: 6},
{Name: "BPF_CGROUP_INET4_BIND", Value: 8},
@ -33143,6 +33221,7 @@ var consts_ppc64le = []ConstValue{
{Name: "BPF_ST", Value: 2},
{Name: "BPF_STX", Value: 3},
{Name: "BPF_SUB0", Value: 1},
{Name: "BPF_TASK_FD_QUERY", Value: 20},
{Name: "BPF_W0"},
{Name: "BPF_XADD0", Value: 6},
{Name: "BPF_XOR0", Value: 10},
@ -33150,6 +33229,8 @@ var consts_ppc64le = []ConstValue{
{Name: "BRCTL_DEL_BRIDGE", Value: 3},
{Name: "BRCTL_GET_BRIDGES", Value: 1},
{Name: "BRCTL_GET_VERSION"},
{Name: "BTF_MAGIC", Value: 60319},
{Name: "BTF_VERSION", Value: 1},
{Name: "BTPROTO_BNEP", Value: 4},
{Name: "BTPROTO_CMTP", Value: 5},
{Name: "BTPROTO_HCI", Value: 1},
@ -38124,4 +38205,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_ppc64le = "c5c93d7e6ee635fd7c05f7f80d1228b4f533936e"
const revision_ppc64le = "213dc6a138b8d764010affcd2c64413208c5f03e"

View File

@ -4,7 +4,8 @@
include <linux/perf_event.h>
include <linux/hw_breakpoint.h>
resource fd_perf[fd]
resource fd_perf_base[fd]
resource fd_perf[fd_perf_base]
perf_event_open(attr ptr[in, perf_event_attr], pid pid, cpu intptr[0:16], group fd_perf[opt], flags flags[perf_flags]) fd_perf
perf_event_open$cgroup(attr ptr[in, perf_event_attr], fd fd_cgroup, cpu intptr[0:16], group fd_perf[opt], flags flags[perf_flags_cgroup]) fd_perf