test_file
char test_file[64];
snprintf(test_file, sizeof(test_file), "%02x-%02x-%02x-%02x.%s",
dev_err(dev, "IFS Metadata missing in file %s\n", test_file);
IFS_CHUNK_ALIGNMENT, test_file);
test_file, ifs_meta->current_image);
struct file *test_file;
test_file = filp_open(test_file_path, O_RDONLY, 0);
if (IS_ERR(test_file)) {
pr_err("failed to open %s: %ld\n", test_file_path, PTR_ERR(test_file));
return PTR_ERR(test_file);
test_inode = file_inode(test_file);
if (test_lock_mapping && test_file && test_file->f_mapping)
lock_rwsem_ptr = (unsigned long)&test_file->f_mapping->i_mmap_rwsem;
if (test_file)
fput(test_file);
char *file = test_file(TEST_FILE_SIZE);
char *file = test_file(size);
ret = test_file(&ti, filename);
snprintf(test_file, sizeof(test_file), "%s.c", t->file);
test_file, out_file);
char test_file[256], out_file[256], diff_cmd[1024];
snprintf(test_file, sizeof(test_file), "%s.bpf.o", t->file);
btf = btf__parse_elf(test_file, NULL);
snprintf(test_file, sizeof(test_file), "progs/%s.c", t->file);
if (access(test_file, R_OK) == -1)
test_file(link, &skel->data_query->memcg_query);
return test_harness(test_file, "subpage_prot_file");