BPF_F_QUERY_EFFECTIVE is in the middle of the flags valid for BPF_MAP_CREATE. Move it to its own section to reduce confusion.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -257,9 +257,6 @@ enum bpf_attach_type { · 256 unmodified lines | ||
| 257 | 257 | /* Specify numa node during map creation */ |
| 258 | 258 | #define BPF_F_NUMA_NODE (1U << 2) |
| 259 | 259 | |
| 260 | −/* flags for BPF_PROG_QUERY */ | |
| 261 | −#define BPF_F_QUERY_EFFECTIVE (1U << 0) | |
| 262 | − | |
| 263 | 260 | #define BPF_OBJ_NAME_LEN 16U |
| 264 | 261 | |
| 265 | 262 | /* Flags for accessing BPF object */ |
| @@ -272,6 +269,9 @@ enum bpf_attach_type { · 6 unmodified lines | ||
| 272 | 269 | /* Zero-initialize hash function seed. This should only be used for testing. */ |
| 273 | 270 | #define BPF_F_ZERO_SEED (1U << 6) |
| 274 | 271 | |
| 272 | +/* flags for BPF_PROG_QUERY */ | |
| 273 | +#define BPF_F_QUERY_EFFECTIVE (1U << 0) | |
| 274 | + | |
| 275 | 275 | enum bpf_stack_build_id_status { |
| 276 | 276 | /* user space need an empty entry to identify end of a trace */ |
| 277 | 277 | BPF_STACK_BUILD_ID_EMPTY = 0, |