Home
last modified time | relevance | path

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

12345

/tools/power/cpupower/bench/
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
67 echo "set ylabel \"Performance (%)\"" >> $dir/plot_script.gpl
78 cat ${file[$plot]} |grep -v "^#" |awk '{printf "%lu %.1f\n",$2/1000, $6}' >$dir/data_$plot
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
[all …]
/tools/testing/selftests/netfilter/
Dnft_nat.sh148 for dir in "in" "out" ; do
150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect")
152 bad_counter "$ns0" $ns$dir "$expect" "check_ns0_counters 4"
157 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir}6 | grep -q "$expect")
206 for dir in "in6" "out6" ; do
207 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns1${dir} | grep -q "$expect")
209 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat6 1"
215 for dir in "in6" "out6" ; do
216 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns2${dir} | grep -q "$expect")
218 bad_counter "$ns0" ns2$dir "$expect" "test_local_dnat6 2"
[all …]
/tools/perf/trace/beauty/
Dioctl.c21 static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_tty_cmd() argument
44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd()
47 static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_drm_cmd() argument
55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd()
58 static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_pcm_cmd() argument
66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd()
69 static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_ctl_cmd() argument
77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd()
80 static size_t ioctl__scnprintf_kvm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_kvm_cmd() argument
88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd()
[all …]
/tools/build/
DMakefile.build27 build-dir := $(srctree)/tools/build
31 fixdep := $(build-dir)/fixdep
37 include $(build-dir)/Build.include
51 build-file := $(dir)/Build
58 quiet_cmd_mkdir = MKDIR $(dir $@)
59 cmd_mkdir = mkdir -p $(dir $@)
60 rule_mkdir = $(if $(wildcard $(dir $@)),,@$(call echo-cmd,mkdir) $(cmd_mkdir))
129 objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
139 $(Q)$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
156 cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
DMakefile3 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
4 srctree := $(patsubst %/,%,$(dir $(srctree)))
29 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
/tools/perf/tests/
Dpmu.c90 static char dir[PATH_MAX]; in test_format_dir_get() local
93 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get()
94 if (!mkdtemp(dir)) in test_format_dir_get()
102 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
114 return dir; in test_format_dir_get()
118 static int test_format_dir_put(char *dir) in test_format_dir_put() argument
121 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put()
125 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
Dbuiltin-test.c447 #define for_each_shell_test(dir, base, ent) \ argument
448 while ((ent = readdir(dir)) != NULL) \
475 DIR *dir; in shell_tests__max_desc_width() local
484 dir = opendir(path); in shell_tests__max_desc_width()
485 if (!dir) in shell_tests__max_desc_width()
488 for_each_shell_test(dir, path, ent) { in shell_tests__max_desc_width()
500 closedir(dir); in shell_tests__max_desc_width()
505 const char *dir; member
515 path__join(script, sizeof(script), st->dir, st->file); in shell_test__run()
526 DIR *dir; in run_shell_tests() local
[all …]
/tools/perf/util/
Ddata.c32 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
61 data->dir.version = PERF_DIR_VERSION; in perf_data__create_dir()
62 data->dir.files = files; in perf_data__create_dir()
63 data->dir.nr = nr; in perf_data__create_dir()
76 DIR *dir; in perf_data__open_dir() local
83 if (WARN_ON(data->dir.version != PERF_DIR_VERSION)) in perf_data__open_dir()
86 dir = opendir(data->path); in perf_data__open_dir()
87 if (!dir) in perf_data__open_dir()
90 while ((dent = readdir(dir)) != NULL) { in perf_data__open_dir()
123 closedir(dir); in perf_data__open_dir()
[all …]
Dutil.c132 DIR *dir; in rm_rf_depth_pat() local
148 dir = opendir(path); in rm_rf_depth_pat()
149 if (dir == NULL) in rm_rf_depth_pat()
152 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf_depth_pat()
177 closedir(dir); in rm_rf_depth_pat()
212 DIR *dir; in lsdir() local
215 dir = opendir(name); in lsdir()
216 if (!dir) in lsdir()
225 while ((d = readdir(dir)) != NULL) { in lsdir()
231 closedir(dir); in lsdir()
Dtrace-event-info.c155 #define for_each_event(dir, dent, tps) \ argument
156 while ((dent = readdir(dir))) \
166 DIR *dir; in copy_event_system() local
171 dir = opendir(sys); in copy_event_system()
172 if (!dir) { in copy_event_system()
177 for_each_event(dir, dent, tps) { in copy_event_system()
198 rewinddir(dir); in copy_event_system()
199 for_each_event(dir, dent, tps) { in copy_event_system()
220 closedir(dir); in copy_event_system()
259 DIR *dir; in record_event_files() local
[all …]
Dpmu.c44 int perf_pmu__format_parse(char *dir, struct list_head *head) in perf_pmu__format_parse() argument
50 format_dir = opendir(dir); in perf_pmu__format_parse()
62 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
141 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument
149 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
173 static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_unit() argument
179 scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit()
204 perf_pmu__parse_per_pkg(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_per_pkg() argument
209 scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg()
222 char *dir, char *name) in perf_pmu__parse_snapshot() argument
[all …]
/tools/testing/selftests/filesystems/incfs/
Dutils.c99 int crypto_emit_file(int fd, const char *dir, const char *filename, in crypto_emit_file() argument
111 .directory_path = ptr_to_u64(dir), in crypto_emit_file()
133 int emit_file(int fd, const char *dir, const char *filename, in emit_file() argument
140 .directory_path = ptr_to_u64(dir), in emit_file()
236 char *concat_file_name(const char *dir, char *file) in concat_file_name() argument
240 if (snprintf(full_name, ARRAY_SIZE(full_name), "%s/%s", dir, file) < 0) in concat_file_name()
247 DIR *dir = NULL; in delete_dir_tree() local
251 dir = opendir(dir_path); in delete_dir_tree()
252 if (!dir) { in delete_dir_tree()
257 while ((dp = readdir(dir))) { in delete_dir_tree()
[all …]
Dutils.h35 int emit_file(int fd, const char *dir, const char *filename,
38 int crypto_emit_file(int fd, const char *dir, const char *filename,
51 char *concat_file_name(const char *dir, char *file);
/tools/testing/selftests/net/
Dxfrm_policy.sh39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block
113 …policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fwd priority $((200…
123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
130 ip -net $ns xfrm policy get src $rnet dst $lnet dir fwd > /dev/null
146 ip -net $ns xfrm policy add dst $plain dir out priority 10 action allow
[all …]
/tools/memory-model/scripts/
Drunlitmushist.sh38 echo ' ... ' /usr/bin/time $LKMM_TIMEOUT_CMD herd7 $herdoptions $1 '>' $dir/$1.out '2>&1'
39 if /usr/bin/time $LKMM_TIMEOUT_CMD herd7 $herdoptions $1 > $dir/$1.out 2>&1
41 if ! grep -q '^Observation ' $dir/$1.out
/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh171 local dir=$1; shift
173 devlink sb tc bind show $port tc $tc type $dir -j \
181 local dir=$1; shift
184 local key="tc_bind($port,$dir,$tc).pool_th"
186 DEVLINK_ORIG[$key]=$(devlink_tc_bind_pool_th $port $tc $dir)
187 devlink sb tc bind set $port tc $tc type $dir pool $pool th $th
194 local dir=$1; shift
195 local key="tc_bind($port,$dir,$tc).pool_th"
198 devlink sb tc bind set $port tc $tc type $dir \
/tools/power/acpi/os_specific/service_layers/
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/power/x86/intel-speed-select/
DMakefile7 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
8 srctree := $(patsubst %/,%,$(dir $(srctree)))
9 srctree := $(patsubst %/,%,$(dir $(srctree)))
10 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/testing/selftests/tc-testing/
Dtdc_multibatch.py51 dir = args.dir variable
61 file = dir + '/' + file_prefix + str(i)
/tools/hv/
Dhv_vss_daemon.c32 static int vss_do_freeze(char *dir, unsigned int cmd) in vss_do_freeze() argument
34 int ret, fd = open(dir, O_RDONLY); in vss_do_freeze()
65 DIR *dir; in is_dev_loop() local
85 dir = opendir(buffer); in is_dev_loop()
86 if (!dir) { in is_dev_loop()
93 while ((entry = readdir(dir)) != NULL) { in is_dev_loop()
105 closedir(dir); in is_dev_loop()
/tools/include/uapi/linux/
Derspan.h29 dir:1, member
36 dir:1, member
/tools/thermal/tmon/
Dsysfs.c282 DIR *dir; in scan_tzones() local
294 dir = opendir(tz_name); in scan_tzones()
295 if (!dir) { in scan_tzones()
329 closedir(dir); in scan_tzones()
340 DIR *dir; in scan_cdevs() local
353 dir = opendir(cdev_name); in scan_cdevs()
354 if (!dir) { in scan_cdevs()
376 closedir(dir); in scan_cdevs()
385 DIR *dir; in probe_thermal_sysfs() local
389 dir = opendir(THERMAL_SYSFS); in probe_thermal_sysfs()
[all …]
/tools/virtio/linux/
Ddma-mapping.h24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) argument
26 #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) argument
/tools/lib/subcmd/
DMakefile6 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
8 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/lib/api/
DMakefile6 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
8 srctree := $(patsubst %/,%,$(dir $(srctree)))

12345