Home
last modified time | relevance | path

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

123

/tools/power/cpupower/bench/
Dcpufreq-bench_plot.sh22 dir=`mktemp -d`
76 echo "set terminal $picture_type" >> $dir/plot_script.gpl
77 echo "set output \"$output_file\"" >> $dir/plot_script.gpl
78 echo "set title \"$global_title\"" >> $dir/plot_script.gpl
79 echo "set xlabel \"sleep/load time\"" >> $dir/plot_script.gpl
80 echo "set ylabel \"Performance (%)\"" >> $dir/plot_script.gpl
91 cat ${file[$plot]} |grep -v "^#" |awk '{printf "%lu %.1f\n",$2/1000, $6}' >$dir/data_$plot
94 echo -n "plot " >> $dir/plot_script.gpl
96 echo -n "\"$dir/data_$plot\" title \"${title[$plot]}\" with lines" >> $dir/plot_script.gpl
98 echo -n ", " >> $dir/plot_script.gpl
[all …]
Dparse.c70 DIR *dir; in prepare_output() local
72 dir = opendir(dirname); in prepare_output()
73 if (dir == NULL) { in prepare_output()
122 closedir(dir); in prepare_output()
/tools/testing/selftests/netfilter/
Dnft_nat.sh120 for dir in "in" "out" ; do
122 cnt=$(ip netns exec ns0 nft list counter inet filter ${ns}${dir} | grep -q "$expect")
124 bad_counter ns0 $ns$dir "$expect"
129 cnt=$(ip netns exec ns0 nft list counter inet filter ${ns}${dir}6 | grep -q "$expect")
171 for dir in "in6" "out6" ; do
172 cnt=$(ip netns exec ns0 nft list counter inet filter ns1${dir} | grep -q "$expect")
174 bad_counter ns0 ns1$dir "$expect"
180 for dir in "in6" "out6" ; do
181 cnt=$(ip netns exec ns0 nft list counter inet filter ns2${dir} | grep -q "$expect")
183 bad_counter ns0 ns2$dir "$expect"
[all …]
/tools/perf/trace/beauty/
Dioctl.c22 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)))
33 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
/tools/perf/tests/
Dpmu.c89 static char dir[PATH_MAX]; in test_format_dir_get() local
92 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get()
93 if (!mkdtemp(dir)) in test_format_dir_get()
101 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
113 return dir; in test_format_dir_get()
117 static int test_format_dir_put(char *dir) in test_format_dir_put() argument
120 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put()
124 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
Dbuiltin-test.c413 #define for_each_shell_test(dir, ent) \ argument
414 while ((ent = readdir(dir)) != NULL) \
441 DIR *dir; in shell_tests__max_desc_width() local
450 dir = opendir(path); in shell_tests__max_desc_width()
451 if (!dir) in shell_tests__max_desc_width()
454 for_each_shell_test(dir, ent) { in shell_tests__max_desc_width()
466 closedir(dir); in shell_tests__max_desc_width()
471 const char *dir; member
481 path__join(script, sizeof(script), st->dir, st->file); in shell_test__run()
492 DIR *dir; in run_shell_tests() local
[all …]
Dattr.c39 static char *dir; variable
44 dir = getenv(ENV); in test_attr__init()
45 test_attr__enabled = (dir != NULL); in test_attr__init()
75 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event()
Ddso-data.c181 DIR *dir; in open_files_cnt() local
187 dir = opendir(path); in open_files_cnt()
188 TEST_ASSERT_VAL("failed to open fd directory", dir); in open_files_cnt()
190 while ((dent = readdir(dir)) != NULL) { in open_files_cnt()
198 closedir(dir); in open_files_cnt()
/tools/perf/util/
Dtrace-event-info.c173 #define for_each_event(dir, dent, tps) \ argument
174 while ((dent = readdir(dir))) \
184 DIR *dir; in copy_event_system() local
189 dir = opendir(sys); in copy_event_system()
190 if (!dir) { in copy_event_system()
195 for_each_event(dir, dent, tps) { in copy_event_system()
216 rewinddir(dir); in copy_event_system()
217 for_each_event(dir, dent, tps) { in copy_event_system()
238 closedir(dir); in copy_event_system()
277 DIR *dir; in record_event_files() local
[all …]
Dpmu.c41 int perf_pmu__format_parse(char *dir, struct list_head *head) in perf_pmu__format_parse() argument
47 format_dir = opendir(dir); in perf_pmu__format_parse()
59 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
138 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument
146 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
170 static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_unit() argument
176 scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit()
201 perf_pmu__parse_per_pkg(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_per_pkg() argument
206 scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg()
219 char *dir, char *name) in perf_pmu__parse_snapshot() argument
[all …]
Dutil.c75 DIR *dir; in rm_rf() local
80 dir = opendir(path); in rm_rf()
81 if (dir == NULL) in rm_rf()
84 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf()
105 closedir(dir); in rm_rf()
124 DIR *dir; in lsdir() local
127 dir = opendir(name); in lsdir()
128 if (!dir) in lsdir()
137 while ((d = readdir(dir)) != NULL) { in lsdir()
143 closedir(dir); in lsdir()
/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c84 DIR *dir; in acpi_os_open_directory() local
95 dir = opendir(dir_pathname); in acpi_os_open_directory()
96 if (!dir) { in acpi_os_open_directory()
107 external_info->dir_ptr = dir; in acpi_os_open_directory()
/tools/thermal/tmon/
Dsysfs.c289 DIR *dir; in scan_tzones() local
301 dir = opendir(tz_name); in scan_tzones()
302 if (!dir) { in scan_tzones()
336 closedir(dir); in scan_tzones()
347 DIR *dir; in scan_cdevs() local
360 dir = opendir(cdev_name); in scan_cdevs()
361 if (!dir) { in scan_cdevs()
383 closedir(dir); in scan_cdevs()
392 DIR *dir; in probe_thermal_sysfs() local
396 dir = opendir(THERMAL_SYSFS); in probe_thermal_sysfs()
[all …]
/tools/virtio/linux/
Ddma-mapping.h26 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) argument
28 #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) argument
/tools/perf/
DMakefile.perf108 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
109 srctree := $(patsubst %/,%,$(dir $(srctree)))
466 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
472 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents
478 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events
530 __build-dir = $(subst $(OUTPUT),,$(dir $@))
531 build-dir = $(if $(__build-dir),$(__build-dir),.)
542 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
545 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
548 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
[all …]
Dbuiltin-buildid-cache.c43 static int build_id_cache__kcore_dir(char *dir, size_t sz) in build_id_cache__kcore_dir() argument
45 return fetch_current_timestamp(dir, sz); in build_id_cache__kcore_dir()
115 char dir[32], sbuildid[SBUILD_ID_SIZE]; in build_id_cache__add_kcore() local
138 if (build_id_cache__kcore_dir(dir, sizeof(dir))) in build_id_cache__add_kcore()
142 buildid_dir, DSO__NAME_KCORE, sbuildid, dir); in build_id_cache__add_kcore()
/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)))
/tools/iio/
Diio_event_monitor.c122 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in event_is_known() local
214 switch (dir) { in event_is_known()
232 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in print_event() local
258 if (dir != IIO_EV_DIR_NONE) in print_event()
259 printf(", direction: %s", iio_ev_dir_text[dir]); in print_event()
/tools/power/acpi/
DMakefile.config12 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
13 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/lib/traceevent/
Devent-plugin.c352 DIR *dir; in load_plugins_dir() local
362 dir = opendir(path); in load_plugins_dir()
363 if (!dir) in load_plugins_dir()
366 while ((dent = readdir(dir))) { in load_plugins_dir()
380 closedir(dir); in load_plugins_dir()
/tools/spi/
DMakefile6 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/perf/Documentation/
Dperf.txt26 --buildid-dir::
28 buildid.dir config file option.

123