Home
last modified time | relevance | path

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

12

/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()
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))
116 objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
126 $(Q)$(MAKE) -f $(build-dir)/Makefile.build dir=$(dir)/$@ obj=$(obj)
143 cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
DMakefile2 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
3 srctree := $(patsubst %/,%,$(dir $(srctree)))
26 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 scnprintf(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.c34 int perf_pmu__format_parse(char *dir, struct list_head *head) in perf_pmu__format_parse() argument
40 format_dir = opendir(dir); in perf_pmu__format_parse()
52 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
94 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument
103 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
144 static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_unit() argument
150 scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit()
175 perf_pmu__parse_per_pkg(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_per_pkg() argument
180 scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg()
193 char *dir, char *name) in perf_pmu__parse_snapshot() argument
[all …]
Dconfig.c519 char *dir; member
533 strncpy(c->dir, v, MAXPATHLEN-1); in buildid_dir_command_config()
534 c->dir[MAXPATHLEN-1] = '\0'; in buildid_dir_command_config()
542 c.dir = buildid_dir; in check_buildid_dir_config()
546 void set_buildid_dir(const char *dir) in set_buildid_dir() argument
548 if (dir) in set_buildid_dir()
549 scnprintf(buildid_dir, MAXPATHLEN-1, "%s", dir); in set_buildid_dir()
Dutil.c76 DIR *dir; in rm_rf() local
81 dir = opendir(path); in rm_rf()
82 if (dir == NULL) in rm_rf()
85 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf()
109 closedir(dir); in rm_rf()
637 DIR *dir; in find_process() local
641 dir = opendir(procfs__mountpoint()); in find_process()
642 if (!dir) in find_process()
646 while (ret && (d = readdir(dir)) != NULL) { in find_process()
666 closedir(dir); in find_process()
Drun-command.c102 if (cmd->dir && chdir(cmd->dir)) in start_command()
104 cmd->dir, strerror_r(errno, sbuf, sizeof(sbuf))); in start_command()
Drun-command.h39 const char *dir; member
/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/perf/
DMakefile.perf88 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
89 srctree := $(patsubst %/,%,$(dir $(srctree)))
374 __build-dir = $(subst $(OUTPUT),,$(dir $@))
375 build-dir = $(if $(__build-dir),$(__build-dir),.)
380 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
383 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
386 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
389 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
392 $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
395 $(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
51 scnprintf(dir, sz, "%s%02u", dt, (unsigned)tv.tv_usec / 10000); in build_id_cache__kcore_dir()
120 char dir[32], sbuildid[SBUILD_ID_SIZE]; in build_id_cache__add_kcore() local
143 if (build_id_cache__kcore_dir(dir, sizeof(dir))) in build_id_cache__add_kcore()
147 buildid_dir, sbuildid, dir); in build_id_cache__add_kcore()
/tools/lib/api/
DMakefile5 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
6 srctree := $(patsubst %/,%,$(dir $(srctree)))
7 srctree := $(patsubst %/,%,$(dir $(srctree)))
/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/iio/
Diio_event_monitor.c112 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in event_is_known() local
194 switch (dir) { in event_is_known()
212 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in print_event() local
238 if (dir != IIO_EV_DIR_NONE) in print_event()
239 printf(", direction: %s", iio_ev_dir_text[dir]); in print_event()
/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/perf/Documentation/
Dperf.txt26 --buildid-dir::
28 buildid.dir config file option.
Dperfconfig.example21 dir = /root/.debug
/tools/build/tests/ex/
DMakefile14 make -f $(srctree)/tools/build/Makefile.build dir=. $@

12