Message ID | 20221118015614.2013203-20-memxor@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 64069c72b4b8e44f6876249cc8f2e2ee4d209a93 |
Delegated to: | BPF |
Headers | show |
Series | Allocated objects, BPF linked lists | expand |
diff --git a/tools/testing/selftests/bpf/bpf_experimental.h b/tools/testing/selftests/bpf/bpf_experimental.h index d6b143275e82..424f7bbbfe9b 100644 --- a/tools/testing/selftests/bpf/bpf_experimental.h +++ b/tools/testing/selftests/bpf/bpf_experimental.h @@ -6,6 +6,8 @@ #include <bpf/bpf_helpers.h> #include <bpf/bpf_core_read.h> +#define __contains(name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node))) + /* Description * Allocates an object of the type represented by 'local_type_id' in * program BTF. User may use the bpf_core_type_id_local macro to pass the