Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 176) sorted by relevance

12345678

/tools/power/cpupower/bench/
A Dcpufreq-bench_plot.sh9 dir=`mktemp -d`
63 echo "set terminal $picture_type" >> $dir/plot_script.gpl
64 echo "set output \"$output_file\"" >> $dir/plot_script.gpl
65 echo "set title \"$global_title\"" >> $dir/plot_script.gpl
66 echo "set xlabel \"sleep/load time\"" >> $dir/plot_script.gpl
81 echo -n "plot " >> $dir/plot_script.gpl
83 echo -n "\"$dir/data_$plot\" title \"${title[$plot]}\" with lines" >> $dir/plot_script.gpl
85 echo -n ", " >> $dir/plot_script.gpl
88 echo >> $dir/plot_script.gpl
90 gnuplot $dir/plot_script.gpl
[all …]
/tools/perf/trace/beauty/
A Dioctl.c44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd()
55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd()
66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd()
77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd()
88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd()
123 return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_usbdevfs_cmd()
129 int dir = _IOC_DIR(cmd), in ioctl__scnprintf_cmd() local
152 return ioctl_types[index].scnprintf(nr, dir, bf, size); in ioctl__scnprintf_cmd()
157 if (dir == _IOC_NONE) { in ioctl__scnprintf_cmd()
160 if (dir & _IOC_READ) in ioctl__scnprintf_cmd()
[all …]
/tools/testing/selftests/net/netfilter/
A Dnft_nat.sh124 for dir in "in" "out" ; do
254 for dir in "in" "out" ; do
262 for dir in "in" "out" ; do
271 for dir in "in" "out" ; do
280 for dir in "in" "out" ; do
299 for dir in "in" "out" ; do
306 for dir in "in" "out" ; do
315 for dir in "in" "out" ; do
324 for dir in "in" "out" ; do
488 for dir in "in" "out" ; do
[all …]
/tools/testing/selftests/net/
A Ddrop_monitor_tests.sh64 local dir=$(mktemp -d)
73 timeout 5 dwdump -o sw -w ${dir}/packets.pcap
74 (( $(tshark -r ${dir}/packets.pcap \
78 rm ${dir}/packets.pcap
82 (( $(tshark -r ${dir}/packets.pcap \
86 rm -r $dir
98 local dir=$(mktemp -d)
102 (( $(tshark -r ${dir}/packets.pcap \
107 rm ${dir}/packets.pcap
111 (( $(tshark -r ${dir}/packets.pcap \
[all …]
A Dxfrm_policy.sh75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
122 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
129 ip -net $ns xfrm policy get src $rnet dst $lnet dir fwd > /dev/null
145 ip -net $ns xfrm policy add dst $plain dir out priority 10 action allow
299 ip -net $ns xfrm policy add dst $j.0.0.0/24 dir out priority 10 action allow
302 if ! ip -net $ns xfrm policy get dst $j.0.0.0/24 dir out > /dev/null; then
313 ip -net $ns xfrm policy add dst $addr dir out priority 10 action allow
317 if ! ip -net $ns xfrm policy get dst $addr dir out > /dev/null; then
402 ip netns exec ${ns[3]} iptables -p icmp -A FORWARD -m policy --dir out --pol ipsec
[all …]
A Dxfrm_policy_add_speed.sh20 local dir="$1"
40 echo xfrm policy add src 10.$s.$j.0/30 dst 10.$d.$j.$a/$pfx dir $dir action block
45 echo xfrm policy add src 10.$s.$j.$a/30 dst 10.$d.$j.0/$pfx dir $dir action block
/tools/perf/tests/
A Dhwmon_pmu.c42 if (scnprintf(buf, sizeof(buf), "rm -fr %s", dir) < 0) { in test_pmu_put()
43 pr_err("Failure to set up buffer for \"%s\"\n", dir); in test_pmu_put()
80 if (!mkdtemp(dir)) { in test_pmu_get()
82 dir[0] = '\0'; in test_pmu_get()
85 test_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
96 strncat(dir, "/hwmon1234", sz - strlen(dir)); in test_pmu_get()
97 hwmon_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
140 test_pmu_put(dir, hwm); in test_pmu_get()
218 char dir[PATH_MAX]; in test__hwmon_pmu() local
219 struct perf_pmu *pmu = test_pmu_get(dir, sizeof(dir)); in test__hwmon_pmu()
[all …]
A Dpmu.c71 scnprintf(dir, sz, "/tmp/perf-pmu-test-XXXXXX"); in test_pmu_get()
72 if (!mkdtemp(dir)) { in test_pmu_get()
74 dir[0] = '\0'; in test_pmu_get()
77 dirfd = open(dir, O_DIRECTORY); in test_pmu_get()
152 test_pmu_put(dir, pmu); in test_pmu_get()
160 char dir[PATH_MAX]; in test__pmu_format() local
164 struct perf_pmu *pmu = test_pmu_get(dir, sizeof(dir)); in test__pmu_format()
202 test_pmu_put(dir, pmu); in test__pmu_format()
208 char dir[PATH_MAX]; in test__pmu_events() local
214 struct perf_pmu *pmu = test_pmu_get(dir, sizeof(dir)); in test__pmu_events()
[all …]
/tools/build/
A DMakefile.build15 build-dir := $(srctree)/tools/build
19 fixdep := $(build-dir)/fixdep
25 include $(build-dir)/Build.include
39 build-file := $(dir)/Build
47 quiet_cmd_mkdir = MKDIR $(dir $@)
48 cmd_mkdir = mkdir -p $(dir $@)
49 rule_mkdir = $(if $(wildcard $(dir $@)),,@$(call echo-cmd,mkdir) $(cmd_mkdir))
128 objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
142 $(Q)$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
159 cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
/tools/testing/selftests/cgroup/
A Dtest_cpuset_v1_base.sh14 dir=$1
17 original=$(cat $dir/$interface)
19 echo $value > $dir/$interface
20 new=$(cat $dir/$interface)
21 [[ $value -ne $(cat $dir/$interface) ]] && {
/tools/testing/selftests/dma/
A Ddma_map_benchmark.c31 int bits = 32, xdelay = 0, dir = DMA_MAP_BIDIRECTIONAL; in main() local
52 dir = atoi(optarg); in main()
89 if (dir != DMA_MAP_BIDIRECTIONAL && dir != DMA_MAP_TO_DEVICE && in main()
90 dir != DMA_MAP_FROM_DEVICE) { in main()
111 map.dma_dir = dir; in main()
121 threads, seconds, node, dir[directions], granule); in main()
/tools/arch/arm64/tools/
A DMakefile4 top_srcdir := $(patsubst %/,%,$(dir $(CURDIR)))
5 top_srcdir := $(patsubst %/,%,$(dir $(top_srcdir)))
6 top_srcdir := $(patsubst %/,%,$(dir $(top_srcdir)))
7 top_srcdir := $(patsubst %/,%,$(dir $(top_srcdir)))
26 $(Q)$(MKDIR) -p $(dir $@)
/tools/perf/util/
A Ddata.c34 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
80 data->dir.nr = nr; in perf_data__create_dir()
93 DIR *dir; in perf_data__open_dir() local
111 if (!dir) in perf_data__open_dir()
147 closedir(dir); in perf_data__open_dir()
151 data->dir.files = files; in perf_data__open_dir()
152 data->dir.nr = nr; in perf_data__open_dir()
156 closedir(dir); in perf_data__open_dir()
488 if (dir) { in has_kcore_dir()
490 d = readdir(dir); in has_kcore_dir()
[all …]
A Dtrace-event-info.c166 DIR *dir; in copy_event_system() local
171 dir = opendir(sys); in copy_event_system()
172 if (!dir) { in copy_event_system()
198 rewinddir(dir); in copy_event_system()
220 closedir(dir); in copy_event_system()
259 DIR *dir; in record_event_files() local
270 dir = opendir(path); in record_event_files()
271 if (!dir) { in record_event_files()
291 rewinddir(dir); in record_event_files()
316 if (dir) in record_event_files()
[all …]
A Dutil.c159 DIR *dir; in rm_rf_depth_pat() local
175 dir = opendir(path); in rm_rf_depth_pat()
176 if (dir == NULL) in rm_rf_depth_pat()
179 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf_depth_pat()
204 closedir(dir); in rm_rf_depth_pat()
289 DIR *dir; in lsdir() local
292 dir = opendir(name); in lsdir()
293 if (!dir) in lsdir()
302 while ((d = readdir(dir)) != NULL) { in lsdir()
308 closedir(dir); in lsdir()
/tools/testing/selftests/drivers/net/hw/
A Dhw_stats_l3.sh200 local dir=$1; shift
206 a=$(hw_stats_get l3_stats $rp1.200 ${dir} packets)
207 send_packets_${dir}_${prot}
210 hw_stats_get l3_stats $rp1.200 ${dir} packets)
216 local dir=$1; shift
220 ___test_stats "$dir" "$prot"
221 log_test "Test $dir packets: $prot"
273 local dir=$1; shift
281 a=$(hw_stats_get l3_stats $rp1.200 ${dir} packets)
282 send_packets_${dir}_${prot}
[all …]
A Dhw_stats_l3_gre.sh78 local dir=$1; shift
85 a=$(hw_stats_get l3_stats $dev $dir packets)
88 hw_stats_get l3_stats $dev $dir packets)
91 log_test "Test $dir packets: $prot"
/tools/thermal/thermometer/
A DMakefile5 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c396 struct dirent *dir; in numer_of_heaps() local
399 while ((dir = readdir(d))) { in numer_of_heaps()
400 if (!strncmp(dir->d_name, ".", 2)) in numer_of_heaps()
402 if (!strncmp(dir->d_name, "..", 3)) in numer_of_heaps()
412 struct dirent *dir; in main() local
425 while ((dir = readdir(d))) { in main()
426 if (!strncmp(dir->d_name, ".", 2)) in main()
428 if (!strncmp(dir->d_name, "..", 3)) in main()
433 test_alloc_and_import(dir->d_name); in main()
436 test_alloc_compat(dir->d_name); in main()
[all …]
/tools/perf/arch/arm/util/
A Dauxtrace.c62 DIR *dir = NULL; in find_all_hisi_ptt_pmus() local
66 dir = opendir(path); in find_all_hisi_ptt_pmus()
67 if (!dir) { in find_all_hisi_ptt_pmus()
73 while ((dent = readdir(dir))) { in find_all_hisi_ptt_pmus()
88 rewinddir(dir); in find_all_hisi_ptt_pmus()
89 while ((dent = readdir(dir))) { in find_all_hisi_ptt_pmus()
98 closedir(dir); in find_all_hisi_ptt_pmus()
/tools/thermal/thermal-engine/
A DMakefile5 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/power/acpi/os_specific/service_layers/
A Dosunixdir.c50 DIR *dir; in acpi_os_open_directory() local
61 dir = opendir(dir_pathname); in acpi_os_open_directory()
62 if (!dir) { in acpi_os_open_directory()
73 external_info->dir_ptr = dir; in acpi_os_open_directory()
/tools/testing/selftests/tc-testing/
A Dtdc_multibatch.py51 dir = args.dir variable
61 file = dir + '/' + file_prefix + str(i)
/tools/power/x86/intel-speed-select/
A DMakefile7 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
8 srctree := $(patsubst %/,%,$(dir $(srctree)))
9 srctree := $(patsubst %/,%,$(dir $(srctree)))
10 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/verification/rv/
A DMakefile4 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
5 srctree := $(patsubst %/,%,$(dir $(srctree)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
70 make -f $(srctree)/tools/build/Makefile.build dir=. $@

Completed in 24 milliseconds

12345678