Searched refs:dump_buf_file (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_split.c | 8 static FILE *dump_buf_file; variable 67 dump_buf_file = open_memstream(&dump_buf, &dump_buf_sz); in test_btf_split() 68 if (!ASSERT_OK_PTR(dump_buf_file, "dump_memstream")) in test_btf_split() 70 d = btf_dump__new(btf2, btf_dump_printf, dump_buf_file, NULL); in test_btf_split() 77 fflush(dump_buf_file); in test_btf_split() 91 if (dump_buf_file) in test_btf_split() 92 fclose(dump_buf_file); in test_btf_split()
|
| H A D | btf_dump.c | 134 FILE *dump_buf_file; member 139 fclose(t->dump_buf_file); in test_ctx__free() 147 t->dump_buf_file = open_memstream(&t->dump_buf, &t->dump_buf_sz); in test_ctx__init() 148 if (!ASSERT_OK_PTR(t->dump_buf_file, "dump_memstream")) in test_ctx__init() 153 t->d = btf_dump__new(t->btf, btf_dump_printf, t->dump_buf_file, NULL); in test_ctx__init() 175 fflush(t->dump_buf_file); in test_ctx__dump_and_compare() 259 fseek(t.dump_buf_file, 0, SEEK_SET); in test_btf_dump_incremental()
|