/linux/tools/testing/selftests/resctrl/ |
H A D | resctrlfs.c | 23 mounts = fopen("/proc/mounts", "r"); in find_resctrl_mount() 144 fp = fopen(phys_pkg_path, "r"); in get_domain_id() 166 FILE *fp = fopen(name, "r"); in count_sys_bitmap_bits() 200 fp = fopen("/sys/devices/system/cpu/offline", "r"); in cpus_offline_empty() 273 fp = fopen(cache_path, "r"); in get_cache_size() 338 fp = fopen(filename, "r"); in get_bit_mask() 377 fp = fopen(file_path, "r"); in resource_info_unsigned_get() 608 fp = fopen(tasks, "w"); in write_pid_to_tasks() 757 FILE *inf = fopen("/proc/filesystems", "r"); in check_resctrlfs_support() 855 inf = fopen(res_pat in resctrl_mon_feature_exists() [all...] |
H A D | cache.c | 78 fp = fopen(llc_occup_path, "r"); in get_llc_occu_resctrl() 111 fp = fopen(filename, "a"); in print_results_cache()
|
H A D | resctrl_val.c | 121 fp = fopen(imc_counter_type, "r"); in read_from_imc_dir() 137 fp = fopen(imc_counter_cfg, "r"); in read_from_imc_dir() 357 fp = fopen(mbm_bw_file, "r"); in open_mem_bw_resctrl() 453 fp = fopen(filename, "a"); in print_results_bw()
|
/linux/tools/testing/selftests/powerpc/papr_attributes/ |
H A D | attr_test.c | 90 f = fopen(file_name, "r"); in verify_energy_info() 95 f = fopen(file_name, "r"); in verify_energy_info() 101 f = fopen(file_name, "r"); in verify_energy_info()
|
/linux/tools/power/acpi/tools/acpidump/ |
H A D | apfiles.c | 77 file = fopen(pathname, "w"); in ap_open_output_file() 148 file = fopen(filename, "wb"); in ap_write_to_binary_file() 189 file = fopen(pathname, "rb"); in ap_get_table_from_file()
|
/linux/tools/perf/util/ |
H A D | cputopo.c | 51 fp = fopen(filename, "r"); in build_cpu_topology() 82 fp = fopen(filename, "r"); in build_cpu_topology() 114 fp = fopen(filename, "r"); in build_cpu_topology() 329 fp = fopen(str, "r"); in load_numa_node() 353 fp = fopen(str, "r"); in load_numa_node() 389 fp = fopen(path, "r"); in numa_topology__new()
|
H A D | copyfile.c | 23 from_fp = fopen(from, "r"); in slow_copyfile() 28 to_fp = fopen(to, "w"); in slow_copyfile()
|
/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_debugfs.c | 252 #define FOPS(fopen) { \ argument 254 .open = (fopen), \ 259 #define FOPS_RW(fopen, fwrite) { \ argument 261 .open = (fopen), \
|
/linux/samples/bpf/ |
H A D | hbm.c | 89 outf = fopen(outFname, "w"); in read_trace_pipe2() 228 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", "r"); in run_bpf_prog() 246 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", in run_bpf_prog() 315 fout = fopen(fname, "w"); in run_bpf_prog() 343 fout = fopen(fname, "w"); in run_bpf_prog()
|
/linux/tools/testing/selftests/mm/ |
H A D | vm_util.c | 183 fp = fopen(STATUS_FILE_PATH, "r"); in rss_anon() 210 fp = fopen(SMAP_FILE_PATH, "r"); in __get_smap_entry() 299 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() 391 FILE *f = fopen("/proc/meminfo", "r"); in get_free_hugepages() 492 FILE *f = fopen(file_path, "w"); in write_sysfs() 496 perror("fopen"); in write_sysfs() 511 FILE *f = fopen(file_path, "r"); in read_sysfs() 515 perror("fopen"); in read_sysfs()
|
/linux/tools/wmi/ |
H A D | dell-smbios-example.c | 66 f = fopen(value_sysfs, "rb"); in find_token() 80 f = fopen(location_sysfs, "rb"); in find_token() 147 f = fopen(ioctl_devfs, "rb"); in query_buffer_size()
|
/linux/scripts/ipe/polgen/ |
H A D | polgen.c | 26 fd = fopen(pathname, "r"); in policy_to_buffer() 67 fd = fopen(pathname, "w"); in write_boot_policy()
|
/linux/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 273 def_msgs = fopen(DEF_MSGS, "r+"); in main() 274 def_msgsize = fopen(DEF_MSGSIZE, "r+"); in main() 275 max_msgs = fopen(MAX_MSGS, "r+"); in main() 276 max_msgsize = fopen(MAX_MSGSIZE, "r+"); in main()
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 158 f = fopen(path, "r"); in get_sysfs_val() 193 f = fopen("/proc/meminfo", "r"); in get_def_hugetlb_pagesz() 374 fp = fopen(path, "r"); in get_run_delay() 422 fp = fopen(CLOCKSOURCE_PATH, "r"); in sys_get_cur_clocksource()
|
/linux/tools/bpf/bpftool/ |
H A D | tracelog.c | 76 fp = fopen("/proc/mounts", "r"); in get_tracefs_pipe() 139 trace_pipe_fd = fopen(trace_pipe, "r"); in do_tracelog()
|
/linux/tools/testing/selftests/timens/ |
H A D | procfs.c | 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 99 proc = fopen("/proc/stat", "r"); in read_proc_stat_btime()
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_hugetlb_options.c | 30 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() 51 FILE *f = fopen("/proc/meminfo", "r"); in is_hugetlb_allocated() 75 f = fopen(str, "w"); in write_sysfs()
|
H A D | check_ksm_options.c | 31 f = fopen(str, "r"); in read_sysfs() 48 f = fopen(str, "w"); in write_sysfs()
|
/linux/scripts/dtc/ |
H A D | dtc.c | 149 f = fopen(fname, "r"); in guess_input_format() 288 depfile = fopen(depname, "w"); in main() 353 outf = fopen(outname, "wb"); in main()
|
/linux/security/selinux/ |
H A D | genheaders.c | 52 fout = fopen(argv[1], "w"); in main() 113 fout = fopen(argv[2], "w"); in main()
|
/linux/tools/perf/arch/s390/util/ |
H A D | header.c | 56 sysinfo = fopen(SYSINFO, "r"); in get_cpuid() 100 sysinfo = fopen(SRVLVL, "r"); in get_cpuid()
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | proc.c | 159 fnetstat = fopen("/proc/thread-self/net/netstat", "r"); in netstat_read() 168 fnetstat = fopen("/proc/thread-self/net/snmp", "r"); in netstat_read() 177 fnetstat = fopen("/proc/thread-self/net/snmp6", "r"); in netstat_read()
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm.c | 171 if ((listfile = fopen(optarg, "w")) == NULL) { in main() 187 if ((ofile = fopen(optarg, "w")) == NULL) { in main() 195 if ((regdiagfile = fopen(optarg, "w")) == NULL) { in main() 202 if ((regfile = fopen(optarg, "w")) == NULL) { in main() 537 if ((ifile = fopen(ifilename, "r")) == NULL) { in output_listing()
|
/linux/tools/power/cpupower/bench/ |
H A D | parse.c | 97 output = fopen(filename, "w+"); in prepare_output() 99 perror("fopen"); in prepare_output() 171 configfile = fopen(path, "r"); in prepare_config()
|
/linux/scripts/selinux/mdp/ |
H A D | mdp.c | 56 fout = fopen(polout, "w"); in main() 256 fout = fopen(ctxout, "w"); in main()
|