History

tools/bpf: Sync kernel btf.h header

For the fix of BTF_INT_OFFSET().

Gary Lin committed 7 years ago

Commit 2474c621 parent 948dc8c1 file · +1 −1Browse files

Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all

Unified · Split

tools/include/uapi/linux/btf.h+1−1
@@ -83,7 +83,7 @@ struct btf_type { · 82 unmodified lines
8383 * is the 32 bits arrangement:
8484 */
8585 #define BTF_INT_ENCODING(VAL) (((VAL) & 0x0f000000) >> 24)
86−#define BTF_INT_OFFSET(VAL) (((VAL & 0x00ff0000)) >> 16)
86+#define BTF_INT_OFFSET(VAL) (((VAL) & 0x00ff0000) >> 16)
8787 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff)
8888
8989 /* Attributes stored in the BTF_INT_ENCODING */