llvm-project/llvm/test/CodeGen/BPF/BTF
Yonghong Song 98fe9c9869 [BPF] emit BTF sections only if debuginfo available
Currently, without -g, BTF sections may still be emitted with
data sections, e.g., for linux kernel bpf selftest
test_tcp_check_syncookie_kern.c issue discovered by Martin
as shown below.

-bash-4.4$ bpftool btf dump file test_tcp_check_syncookie_kern.o
[1] VAR 'results' type_id=0, linkage=global-alloc
[2] VAR '_license' type_id=0, linkage=global-alloc
[3] DATASEC 'license' size=0 vlen=1
        type_id=2 offset=0 size=4
[4] DATASEC 'maps' size=0 vlen=1
        type_id=1 offset=0 size=28

Let disable BTF generation if no debuginfo, which is
the original design.

Signed-off-by: Yonghong Song <yhs@fb.com>

Differential Revision: https://reviews.llvm.org/D61826

llvm-svn: 360556
2019-05-13 05:00:23 +00:00
..
array-1d-char.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
array-1d-int.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
array-2d-int.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
array-size-0.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
array-typedef.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
binary-format.ll
char-no-debuginfo.ll [BPF] emit BTF sections only if debuginfo available 2019-05-13 05:00:23 +00:00
char.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
empty-btf.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
enum-basic.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
extern-global-var.ll [BPF] do not generate unused local/global types 2019-03-15 05:51:25 +00:00
filename.ll [BPF] [BTF] Process FileName with absolute path correctly 2019-02-02 05:54:59 +00:00
func-func-ptr.ll
func-non-void.ll
func-source.ll
func-typedef.ll
func-unused-arg.ll
func-void.ll
fwd-no-define.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
fwd-with-define.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
global-var-inited.ll [BPF] handle external global properly 2019-03-15 17:39:10 +00:00
global-var-sec-readonly.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
global-var-sec.ll [BPF] Add BTF Var and DataSec Support 2019-03-16 15:36:31 +00:00
int.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
local-var.ll [BPF] do not generate unused local/global types 2019-03-15 05:51:25 +00:00
longlong.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-const-void.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-func-1.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-func-2.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-func-3.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-int.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-void.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-volatile-const-void.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ptr-volatile-void.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
restrict-ptr.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
short.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
static-var-derived-type.ll [BPF] use std::map to ensure consistent output 2019-03-27 15:45:27 +00:00
static-var-inited-sec.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
static-var-inited.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
static-var-readonly-sec.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
static-var-readonly.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
static-var-sec.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
static-var-zerolen-array.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
static-var.ll [BPF] handle derived type properly for computing type id 2019-03-22 01:30:50 +00:00
struct-anon.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
struct-basic.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
struct-bitfield-typedef.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
struct-enum.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
uchar.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
uint.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
ulonglong.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
union-array-typedef.ll [BPF] add proper multi-dimensional array support 2019-03-28 21:59:49 +00:00
ushort.ll [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00