Skip to content

Commit 11eb2a8

Browse files
committed
test
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
1 parent b3605b1 commit 11eb2a8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

kernel/bpf/core.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,13 +3270,19 @@ int bpf_prog_get_file_line(struct bpf_prog *prog, unsigned long ip, const char *
32703270

32713271
/* Get base component of the file path. */
32723272
*filep = btf_name_by_offset(btf, linfo[idx].file_name_off);
3273-
if (!*filep)
3273+
if (!*filep) {
3274+
printk("idx = %d\n", idx);
3275+
panic("");
32743276
return -ENOENT;
3277+
}
32753278
*filep = kbasename(*filep);
32763279
/* Obtain the source line, and strip whitespace in prefix. */
32773280
*linep = btf_name_by_offset(btf, linfo[idx].line_off);
3278-
if (!*linep)
3281+
if (!*linep) {
3282+
printk("idx = %d\n", idx);
3283+
panic("");
32793284
return -ENOENT;
3285+
}
32803286
while (isspace(**linep))
32813287
*linep += 1;
32823288
return BPF_LINE_INFO_LINE_NUM(linfo[idx].line_col);

0 commit comments

Comments
 (0)