Searched refs:inf (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/resctrl/ |
D | resctrlfs.c | 556 FILE *inf = fopen("/proc/filesystems", "r"); in check_resctrlfs_support() local 561 if (!inf) in check_resctrlfs_support() 564 res = fgrep(inf, "nodev\tresctrl\n"); in check_resctrlfs_support() 571 fclose(inf); in check_resctrlfs_support() 591 char *fgrep(FILE *inf, const char *str) in fgrep() argument 596 while (!feof(inf)) { in fgrep() 597 if (!fgets(line, 256, inf)) in fgrep() 619 FILE *inf; in validate_resctrl_feature_request() local 636 inf = fopen(L3_MON_FEATURES_PATH, "r"); in validate_resctrl_feature_request() 637 if (!inf) in validate_resctrl_feature_request() [all …]
|
D | resctrl_tests.c | 18 FILE *inf = fopen("/proc/cpuinfo", "r"); in detect_vendor() local 23 if (!inf) in detect_vendor() 26 res = fgrep(inf, "vendor_id"); in detect_vendor() 36 fclose(inf); in detect_vendor()
|
D | resctrl.h | 92 char *fgrep(FILE *inf, const char *str);
|
/tools/bpf/bpftool/ |
D | jit_disasm.c | 136 const bfd_arch_info_type *inf = bfd_scan_arch(arch); in disasm_print_insn() local 138 if (inf) { in disasm_print_insn() 139 bfdf->arch_info = inf; in disasm_print_insn()
|
/tools/perf/util/ |
D | dwarf-aux.c | 852 const char *fname, *decf = NULL, *inf = NULL; in die_walk_lines() local 906 inf = die_get_call_file(&die_mem); in die_walk_lines() 907 if ((inf && !strcmp(inf, decf)) && in die_walk_lines()
|
/tools/testing/selftests/landlock/ |
D | fs_test.c | 91 static bool fgrep(FILE *const inf, const char *const str) in fgrep() argument 96 while (!feof(inf)) { in fgrep() 97 if (!fgets(line, sizeof(line), inf)) in fgrep() 111 FILE *const inf = fopen("/proc/filesystems", "r"); in supports_overlayfs() local 117 if (!inf) in supports_overlayfs() 120 res = fgrep(inf, "nodev\toverlay\n"); in supports_overlayfs() 121 fclose(inf); in supports_overlayfs()
|