Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 56) 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()
Dparse.h49 FILE *prepare_output(const char *dir);
/tools/build/
DMakefile.build32 build-dir := $(srctree)/tools/build
36 fixdep := $(build-dir)/fixdep
42 include $(build-dir)/Build.include
56 build-file := $(dir)/Build
63 quiet_cmd_mkdir = MKDIR $(dir $@)
64 cmd_mkdir = mkdir -p $(dir $@)
65 rule_mkdir = $(if $(wildcard $(dir $@)),,@$(call echo-cmd,mkdir) $(cmd_mkdir))
134 objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
144 $(Q)$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
161 cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
DMakefile2 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
3 srctree := $(patsubst %/,%,$(dir $(srctree)))
32 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
DMakefile.include1 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
/tools/perf/tests/
Dpmu.c86 static char dir[PATH_MAX]; in test_format_dir_get() local
89 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get()
90 if (!mkdtemp(dir)) in test_format_dir_get()
98 snprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
110 return dir; in test_format_dir_get()
114 static int test_format_dir_put(char *dir) in test_format_dir_put() argument
117 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put()
121 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
Dattr.c34 static char *dir; variable
38 dir = getenv(ENV); in test_attr__init()
39 test_attr__enabled = (dir != NULL); in test_attr__init()
66 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event()
Ddso-data.c178 DIR *dir; in open_files_cnt() local
184 dir = opendir(path); in open_files_cnt()
185 TEST_ASSERT_VAL("failed to open fd directory", dir); in open_files_cnt()
187 while ((dent = readdir(dir)) != NULL) { in open_files_cnt()
195 closedir(dir); in open_files_cnt()
/tools/perf/util/
Dtrace-event-info.c178 DIR *dir; in copy_event_system() local
183 dir = opendir(sys); in copy_event_system()
184 if (!dir) { in copy_event_system()
189 while ((dent = readdir(dir))) { in copy_event_system()
212 rewinddir(dir); in copy_event_system()
213 while ((dent = readdir(dir))) { in copy_event_system()
236 closedir(dir); in copy_event_system()
275 DIR *dir; in record_event_files() local
286 dir = opendir(path); in record_event_files()
287 if (!dir) { in record_event_files()
[all …]
Dpmu.c37 int perf_pmu__format_parse(char *dir, struct list_head *head) in perf_pmu__format_parse() argument
43 format_dir = opendir(dir); in perf_pmu__format_parse()
55 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
97 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument
106 snprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
160 static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_unit() argument
166 snprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit()
191 perf_pmu__parse_per_pkg(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_per_pkg() argument
196 snprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg()
209 char *dir, char *name) in perf_pmu__parse_snapshot() argument
[all …]
Dutil.c90 DIR *dir; in rm_rf() local
95 dir = opendir(path); in rm_rf()
96 if (dir == NULL) in rm_rf()
99 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf()
120 closedir(dir); in rm_rf()
139 DIR *dir; in lsdir() local
142 dir = opendir(name); in lsdir()
143 if (!dir) in lsdir()
152 while ((d = readdir(dir)) != NULL) { in lsdir()
158 closedir(dir); in lsdir()
[all …]
/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/lib/api/
DMakefile5 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/lib/subcmd/
DMakefile5 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/virtio/linux/
Ddma-mapping.h25 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) argument
27 #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) argument
/tools/iio/
Diio_event_monitor.c121 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in event_is_known() local
212 switch (dir) { in event_is_known()
230 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in print_event() local
256 if (dir != IIO_EV_DIR_NONE) in print_event()
257 printf(", direction: %s", iio_ev_dir_text[dir]); in print_event()
/tools/perf/
DMakefile.perf97 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
98 srctree := $(patsubst %/,%,$(dir $(srctree)))
362 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
461 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents
467 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=pmu-events
515 __build-dir = $(subst $(OUTPUT),,$(dir $@))
516 build-dir = $(if $(__build-dir),$(__build-dir),.)
521 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
524 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
527 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
[all …]
Dbuiltin-buildid-cache.c39 static int build_id_cache__kcore_dir(char *dir, size_t sz) in build_id_cache__kcore_dir() argument
41 return fetch_current_timestamp(dir, sz); in build_id_cache__kcore_dir()
108 char dir[32], sbuildid[SBUILD_ID_SIZE]; in build_id_cache__add_kcore() local
131 if (build_id_cache__kcore_dir(dir, sizeof(dir))) in build_id_cache__add_kcore()
135 buildid_dir, DSO__NAME_KCORE, sbuildid, dir); in build_id_cache__add_kcore()
/tools/power/acpi/
DMakefile.config12 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
13 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/perf/Documentation/
Dperf.txt26 --buildid-dir::
28 buildid.dir config file option.
/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/lib/bpf/
DMakefile10 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
11 srctree := $(patsubst %/,%,$(dir $(srctree)))
12 srctree := $(patsubst %/,%,$(dir $(srctree)))
/tools/gpio/
DMakefile6 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))

123