/tools/power/cpupower/bench/ |
D | cpufreq-bench_plot.sh | 22 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 …]
|
D | parse.c | 70 DIR *dir; in prepare_output() local 72 dir = opendir(dirname); in prepare_output() 73 if (dir == NULL) { in prepare_output()
|
D | parse.h | 49 FILE *prepare_output(const char *dir);
|
/tools/build/ |
D | Makefile.build | 32 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))
|
D | Makefile | 2 srctree := $(patsubst %/,%,$(dir $(shell pwd))) 3 srctree := $(patsubst %/,%,$(dir $(srctree))) 26 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
|
D | Makefile.include | 1 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
|
/tools/perf/tests/ |
D | pmu.c | 86 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()
|
D | attr.c | 34 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()
|
D | dso-data.c | 178 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/ |
D | trace-event-info.c | 178 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 …]
|
D | pmu.c | 34 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 …]
|
D | config.c | 519 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()
|
D | util.c | 76 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()
|
D | run-command.c | 102 if (cmd->dir && chdir(cmd->dir)) in start_command() 104 cmd->dir, strerror_r(errno, sbuf, sizeof(sbuf))); in start_command()
|
D | run-command.h | 39 const char *dir; member
|
/tools/power/acpi/os_specific/service_layers/ |
D | osunixdir.c | 84 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/ |
D | Makefile.perf | 88 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 …]
|
D | builtin-buildid-cache.c | 39 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/ |
D | Makefile | 5 srctree := $(patsubst %/,%,$(dir $(shell pwd))) 6 srctree := $(patsubst %/,%,$(dir $(srctree))) 7 srctree := $(patsubst %/,%,$(dir $(srctree)))
|
/tools/thermal/tmon/ |
D | sysfs.c | 289 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/ |
D | iio_event_monitor.c | 112 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/ |
D | event-plugin.c | 352 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/ |
D | perf.txt | 26 --buildid-dir:: 28 buildid.dir config file option.
|
D | perfconfig.example | 21 dir = /root/.debug
|
/tools/build/tests/ex/ |
D | Makefile | 14 make -f $(srctree)/tools/build/Makefile.build dir=. $@
|