Home
last modified time | relevance | path

Searched refs:inf (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/resctrl/
A Dresctrlfs.c762 if (!inf) in check_resctrlfs_support()
765 res = fgrep(inf, "nodev\tresctrl\n"); in check_resctrlfs_support()
772 fclose(inf); in check_resctrlfs_support()
792 char *fgrep(FILE *inf, const char *str) in fgrep() argument
797 while (!feof(inf)) { in fgrep()
798 if (!fgets(line, 256, inf)) in fgrep()
849 FILE *inf; in resctrl_mon_feature_exists() local
855 inf = fopen(res_path, "r"); in resctrl_mon_feature_exists()
856 if (!inf) in resctrl_mon_feature_exists()
859 res = fgrep(inf, feature); in resctrl_mon_feature_exists()
[all …]
A Dresctrl_tests.c28 FILE *inf = fopen("/proc/cpuinfo", "r"); in detect_vendor() local
33 if (!inf) in detect_vendor()
36 res = fgrep(inf, "vendor_id"); in detect_vendor()
46 fclose(inf); in detect_vendor()
A Dresctrl.h176 char *fgrep(FILE *inf, const char *str);
/tools/bpf/bpftool/
A Djit_disasm.c275 const bfd_arch_info_type *inf = bfd_scan_arch(arch); in init_context() local
277 if (inf) { in init_context()
278 bfdf->arch_info = inf; in init_context()
/tools/perf/util/
A Ddwarf-aux.c915 const char *fname, *decf = NULL, *inf = NULL; in die_walk_lines() local
974 inf = die_get_call_file(&die_mem); in die_walk_lines()
975 if ((inf && !strcmp(inf, decf)) && in die_walk_lines()
/tools/testing/selftests/landlock/
A Dfs_test.c132 static bool fgrep(FILE *const inf, const char *const str) in fgrep() argument
137 while (!feof(inf)) { in fgrep()
138 if (!fgets(line, sizeof(line), inf)) in fgrep()
154 FILE *const inf = fopen("/proc/filesystems", "r"); in supports_filesystem() local
160 if (!inf) in supports_filesystem()
172 res = fgrep(inf, str); in supports_filesystem()
175 fclose(inf); in supports_filesystem()

Completed in 21 milliseconds