Lines Matching refs:str

104 	char *str;  in BPF_PROG()  local
107 str = bpf_map_lookup_elem(&strdata, &key); in BPF_PROG()
108 if (!str) in BPF_PROG()
116 ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
124 __ret = bpf_snprintf_btf(str, STRSIZE, &p, sizeof(p), 0); in BPF_PROG()
134 TEST_BTF_C(str, int, 0, 1234); in BPF_PROG()
135 TEST_BTF(str, int, BTF_F_NONAME, "1234", 1234); in BPF_PROG()
137 TEST_BTF(str, int, 0, "(int)0", 0); in BPF_PROG()
138 TEST_BTF(str, int, BTF_F_NONAME, "0", 0); in BPF_PROG()
139 TEST_BTF(str, int, BTF_F_ZERO, "(int)0", 0); in BPF_PROG()
140 TEST_BTF(str, int, BTF_F_NONAME | BTF_F_ZERO, "0", 0); in BPF_PROG()
141 TEST_BTF_C(str, int, 0, -4567); in BPF_PROG()
142 TEST_BTF(str, int, BTF_F_NONAME, "-4567", -4567); in BPF_PROG()
145 TEST_BTF_C(str, char, 0, 100); in BPF_PROG()
146 TEST_BTF(str, char, BTF_F_NONAME, "100", 100); in BPF_PROG()
148 TEST_BTF(str, char, 0, "(char)0", 0); in BPF_PROG()
149 TEST_BTF(str, char, BTF_F_NONAME, "0", 0); in BPF_PROG()
150 TEST_BTF(str, char, BTF_F_ZERO, "(char)0", 0); in BPF_PROG()
151 TEST_BTF(str, char, BTF_F_NONAME | BTF_F_ZERO, "0", 0); in BPF_PROG()
154 TEST_BTF_C(str, uint64_t, 0, 100); in BPF_PROG()
155 TEST_BTF(str, u64, BTF_F_NONAME, "1", 1); in BPF_PROG()
157 TEST_BTF(str, u64, 0, "(u64)0", 0); in BPF_PROG()
158 TEST_BTF(str, u64, BTF_F_NONAME, "0", 0); in BPF_PROG()
159 TEST_BTF(str, u64, BTF_F_ZERO, "(u64)0", 0); in BPF_PROG()
160 TEST_BTF(str, u64, BTF_F_NONAME|BTF_F_ZERO, "0", 0); in BPF_PROG()
163 TEST_BTF_C(str, atomic_t, 0, {.counter = (int)1,}); in BPF_PROG()
164 TEST_BTF(str, atomic_t, BTF_F_NONAME, "{1,}", {.counter = 1,}); in BPF_PROG()
166 TEST_BTF(str, atomic_t, 0, "(atomic_t){}", {.counter = 0,}); in BPF_PROG()
167 TEST_BTF(str, atomic_t, BTF_F_NONAME, "{}", {.counter = 0,}); in BPF_PROG()
168 TEST_BTF(str, atomic_t, BTF_F_ZERO, "(atomic_t){.counter = (int)0,}", in BPF_PROG()
170 TEST_BTF(str, atomic_t, BTF_F_NONAME|BTF_F_ZERO, in BPF_PROG()
174 TEST_BTF_C(str, enum bpf_cmd, 0, BPF_MAP_CREATE); in BPF_PROG()
175 TEST_BTF(str, enum bpf_cmd, 0, "(enum bpf_cmd)BPF_MAP_CREATE", 0); in BPF_PROG()
176 TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME, "BPF_MAP_CREATE", in BPF_PROG()
178 TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME|BTF_F_ZERO, in BPF_PROG()
181 TEST_BTF(str, enum bpf_cmd, BTF_F_ZERO, "(enum bpf_cmd)BPF_MAP_CREATE", in BPF_PROG()
183 TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME|BTF_F_ZERO, in BPF_PROG()
185 TEST_BTF_C(str, enum bpf_cmd, 0, 2000); in BPF_PROG()
186 TEST_BTF(str, enum bpf_cmd, BTF_F_NONAME, "2000", 2000); in BPF_PROG()
189 TEST_BTF_C(str, struct btf_enum, 0, in BPF_PROG()
191 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{3,-1,}", in BPF_PROG()
193 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{-1,}", in BPF_PROG()
195 TEST_BTF(str, struct btf_enum, BTF_F_NONAME|BTF_F_ZERO, "{0,-1,}", in BPF_PROG()
198 TEST_BTF(str, struct btf_enum, 0, "(struct btf_enum){}", in BPF_PROG()
200 TEST_BTF(str, struct btf_enum, BTF_F_NONAME, "{}", in BPF_PROG()
202 TEST_BTF(str, struct btf_enum, BTF_F_ZERO, in BPF_PROG()
207 TEST_BTF(str, struct list_head, BTF_F_PTR_RAW, in BPF_PROG()
211 TEST_BTF(str, struct list_head, BTF_F_PTR_RAW, in BPF_PROG()
216 TEST_BTF(str, struct bpf_prog_info, 0, in BPF_PROG()
219 TEST_BTF(str, struct bpf_prog_info, BTF_F_NONAME, in BPF_PROG()
223 TEST_BTF(str, struct bpf_prog_info, 0, in BPF_PROG()
227 TEST_BTF(str, struct bpf_prog_info, 0, in BPF_PROG()
232 TEST_BTF(str, struct __sk_buff, 0, in BPF_PROG()
235 TEST_BTF(str, struct __sk_buff, BTF_F_NONAME, in BPF_PROG()
239 TEST_BTF(str, struct __sk_buff, 0, in BPF_PROG()
244 TEST_BTF_C(str, struct bpf_insn, 0, in BPF_PROG()
246 TEST_BTF(str, struct bpf_insn, BTF_F_NONAME, "{1,0x2,0x3,4,5,}", in BPF_PROG()