• Yonghong Song's avatar
    tools/bpf: add int128 raw test in test_btf · a80eba20
    Yonghong Song authored
    Several int128 raw type tests are added to test_btf.
    Currently these tests are enabled only for x64 and arm64
    for which kernel has CONFIG_ARCH_SUPPORTS_INT128 set.
    
      $ test_btf
      ......
      BTF raw test[106] (128-bit int): OK
      BTF raw test[107] (struct, 128-bit int member): OK
      BTF raw test[108] (struct, 120-bit int member bitfield): OK
      BTF raw test[109] (struct, kind_flag, 128-bit int member): OK
      BTF raw test[110] (struct, kind_flag, 120-bit int member bitfield): OK
      ......
    Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarYonghong Song <yhs@fb.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    a80eba20
test_btf.c 134 KB