/tools/power/cpupower/bench/ |
D | cpufreq-bench_plot.sh | 9 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/ |
D | nft_nat.sh | 148 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/ |
D | ioctl.c | 21 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/testing/selftests/net/ |
D | drop_monitor_tests.sh | 70 local dir=$(mktemp -d) 79 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 80 (( $(tshark -r ${dir}/packets.pcap \ 84 rm ${dir}/packets.pcap 87 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 88 (( $(tshark -r ${dir}/packets.pcap \ 92 rm -r $dir 104 local dir=$(mktemp -d) 107 timeout 5 dwdump -o hw -w ${dir}/packets.pcap 108 (( $(tshark -r ${dir}/packets.pcap \ [all …]
|
D | xfrm_policy.sh | 39 …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/lib/traceevent/ |
D | event-plugin.c | 519 DIR *dir; in load_plugins_dir() local 529 dir = opendir(path); in load_plugins_dir() 530 if (!dir) in load_plugins_dir() 533 while ((dent = readdir(dir))) { in load_plugins_dir() 547 closedir(dir); in load_plugins_dir() 573 struct tep_plugins_dir *dir = NULL; in tep_load_plugins_hook() local 583 dir = tep->plugins_dir; in tep_load_plugins_hook() 584 while (dir) { in tep_load_plugins_hook() 585 if (dir->prio == TEP_PLUGIN_FIRST) in tep_load_plugins_hook() 586 load_plugins_dir(tep, suffix, dir->path, in tep_load_plugins_hook() [all …]
|
/tools/build/ |
D | Makefile.build | 27 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))
|
D | Makefile | 3 srctree := $(patsubst %/,%,$(dir $(CURDIR))) 4 srctree := $(patsubst %/,%,$(dir $(srctree))) 29 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
|
/tools/perf/tests/ |
D | pmu.c | 90 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()
|
D | builtin-test.c | 503 #define for_each_shell_test(dir, base, ent) \ argument 504 while ((ent = readdir(dir)) != NULL) \ 531 DIR *dir; in shell_tests__max_desc_width() local 540 dir = opendir(path); in shell_tests__max_desc_width() 541 if (!dir) in shell_tests__max_desc_width() 544 for_each_shell_test(dir, path, ent) { in shell_tests__max_desc_width() 556 closedir(dir); in shell_tests__max_desc_width() 561 const char *dir; member 571 path__join(script, sizeof(script), st->dir, st->file); in shell_test__run() 582 DIR *dir; in run_shell_tests() local [all …]
|
/tools/perf/util/ |
D | data.c | 32 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 90 if (WARN_ON(data->dir.version != PERF_DIR_VERSION)) in perf_data__open_dir() 93 dir = opendir(data->path); in perf_data__open_dir() 94 if (!dir) in perf_data__open_dir() 97 while ((dent = readdir(dir)) != NULL) { in perf_data__open_dir() 130 closedir(dir); in perf_data__open_dir() [all …]
|
D | trace-event-info.c | 155 #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 …]
|
D | util.c | 150 DIR *dir; in rm_rf_depth_pat() local 166 dir = opendir(path); in rm_rf_depth_pat() 167 if (dir == NULL) in rm_rf_depth_pat() 170 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf_depth_pat() 195 closedir(dir); in rm_rf_depth_pat() 247 DIR *dir; in lsdir() local 250 dir = opendir(name); in lsdir() 251 if (!dir) in lsdir() 260 while ((d = readdir(dir)) != NULL) { in lsdir() 266 closedir(dir); in lsdir()
|
/tools/testing/selftests/filesystems/incfs/ |
D | utils.c | 33 int remove_dir(const char *dir) in remove_dir() argument 35 int err = rmdir(dir); in remove_dir() 38 err = delete_dir_tree(dir); in remove_dir() 141 int crypto_emit_file(int fd, const char *dir, const char *filename, in crypto_emit_file() argument 153 .directory_path = ptr_to_u64(dir), in crypto_emit_file() 175 int emit_file(int fd, const char *dir, const char *filename, in emit_file() argument 182 .directory_path = ptr_to_u64(dir), in emit_file() 320 char *concat_file_name(const char *dir, const char *file) in concat_file_name() argument 324 if (snprintf(full_name, ARRAY_SIZE(full_name), "%s/%s", dir, file) < 0) in concat_file_name() 331 DIR *dir = NULL; in delete_dir_tree() local [all …]
|
D | utils.h | 25 int remove_dir(const char *dir); 42 int emit_file(int fd, const char *dir, const char *filename, 45 int crypto_emit_file(int fd, const char *dir, const char *filename, 63 char *concat_file_name(const char *dir, const char *file);
|
/tools/memory-model/scripts/ |
D | runlitmushist.sh | 38 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/power/acpi/os_specific/service_layers/ |
D | osunixdir.c | 50 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/ |
D | Makefile | 7 srctree := $(patsubst %/,%,$(dir $(CURDIR))) 8 srctree := $(patsubst %/,%,$(dir $(srctree))) 9 srctree := $(patsubst %/,%,$(dir $(srctree))) 10 srctree := $(patsubst %/,%,$(dir $(srctree)))
|
/tools/testing/selftests/tc-testing/ |
D | tdc_multibatch.py | 51 dir = args.dir variable 61 file = dir + '/' + file_prefix + str(i)
|
/tools/include/uapi/linux/ |
D | erspan.h | 29 dir:1, member 36 dir:1, member
|
/tools/testing/selftests/net/forwarding/ |
D | devlink_lib.sh | 210 local dir=$1; shift 212 devlink sb tc bind show $port tc $tc type $dir -j \ 220 local dir=$1; shift 221 local key="tc_bind($port,$dir,$tc).pool_th" 223 DEVLINK_ORIG[$key]=$(devlink_tc_bind_pool_th $port $tc $dir) 230 local dir=$1; shift 234 devlink sb tc bind set $port tc $tc type $dir pool $pool th $th 241 local dir=$1; shift 242 local key="tc_bind($port,$dir,$tc).pool_th" 248 devlink sb tc bind set $port tc $tc type $dir \
|
/tools/hv/ |
D | hv_vss_daemon.c | 34 static int vss_do_freeze(char *dir, unsigned int cmd) in vss_do_freeze() argument 36 int ret, fd = open(dir, O_RDONLY); in vss_do_freeze() 67 DIR *dir; in is_dev_loop() local 87 dir = opendir(buffer); in is_dev_loop() 88 if (!dir) { in is_dev_loop() 95 while ((entry = readdir(dir)) != NULL) { in is_dev_loop() 107 closedir(dir); in is_dev_loop()
|
/tools/thermal/tmon/ |
D | sysfs.c | 282 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/ |
D | dma-mapping.h | 24 #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/ |
D | Makefile | 6 srctree := $(patsubst %/,%,$(dir $(CURDIR))) 7 srctree := $(patsubst %/,%,$(dir $(srctree))) 8 srctree := $(patsubst %/,%,$(dir $(srctree)))
|