/tools/perf/util/ |
D | target.h | 8 struct target { struct 47 enum target_errno target__validate(struct target *target); 48 enum target_errno target__parse_uid(struct target *target); 50 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen); 52 static inline bool target__has_task(struct target *target) in target__has_task() argument 54 return target->tid || target->pid || target->uid_str; in target__has_task() 57 static inline bool target__has_cpu(struct target *target) in target__has_cpu() argument 59 return target->system_wide || target->cpu_list; in target__has_cpu() 62 static inline bool target__none(struct target *target) in target__none() argument 64 return !target__has_task(target) && !target__has_cpu(target); in target__none() [all …]
|
D | target.c | 17 enum target_errno target__validate(struct target *target) in target__validate() argument 21 if (target->pid) in target__validate() 22 target->tid = target->pid; in target__validate() 25 if (target->tid && target->cpu_list) { in target__validate() 26 target->cpu_list = NULL; in target__validate() 32 if (target->tid && target->uid_str) { in target__validate() 33 target->uid_str = NULL; in target__validate() 39 if (target->uid_str && target->cpu_list) { in target__validate() 40 target->cpu_list = NULL; in target__validate() 46 if (target->tid && target->system_wide) { in target__validate() [all …]
|
D | top.c | 29 struct target *target = &opts->target; in perf_top__header_snprintf() local 84 if (target->pid) in perf_top__header_snprintf() 86 target->pid); in perf_top__header_snprintf() 87 else if (target->tid) in perf_top__header_snprintf() 89 target->tid); in perf_top__header_snprintf() 90 else if (target->uid_str != NULL) in perf_top__header_snprintf() 92 target->uid_str); in perf_top__header_snprintf() 96 if (target->cpu_list) in perf_top__header_snprintf() 99 target->cpu_list); in perf_top__header_snprintf() 101 if (target->tid) in perf_top__header_snprintf()
|
D | annotate.c | 213 zfree(&ops->target.raw); in ins__delete() 214 zfree(&ops->target.name); in ins__delete() 244 struct addr_map_symbol target = { in call__parse() local 248 ops->target.addr = strtoull(ops->raw, &endptr, 16); in call__parse() 265 ops->target.name = strdup(name); in call__parse() 268 if (ops->target.name == NULL) in call__parse() 271 target.addr = map__objdump_2mem(map, ops->target.addr); in call__parse() 273 if (map_groups__find_ams(&target) == 0 && in call__parse() 274 map__rip_2objdump(target.map, map->map_ip(target.map, target.addr)) == ops->target.addr) in call__parse() 275 ops->target.sym = target.sym; in call__parse() [all …]
|
/tools/perf/arch/s390/annotate/ |
D | instructions.c | 9 struct addr_map_symbol target = { in s390_call__parse() local 17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse() 34 ops->target.name = strdup(name); in s390_call__parse() 37 if (ops->target.name == NULL) in s390_call__parse() 39 target.addr = map__objdump_2mem(map, ops->target.addr); in s390_call__parse() 41 if (map_groups__find_ams(&target) == 0 && in s390_call__parse() 42 map__rip_2objdump(target.map, map->map_ip(target.map, target.addr)) == ops->target.addr) in s390_call__parse() 43 ops->target.sym = target.sym; in s390_call__parse() 60 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse() local 72 target = ++s; in s390_mov__parse() [all …]
|
/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
D | router_scale.sh | 7 local target 9 target=$(devlink_resource_size_get kvd hash_single) 12 target=$((target * 85 / 100)) 14 target=$((target + 1)) 17 echo $target
|
D | tc_flower_scale.sh | 12 local target=5631 15 echo $target 17 echo $((target + 1))
|
D | resource_scale.sh | 42 target=$(${current_test}_get_target "$should_fail") 45 ${current_test}_test "$target" "$should_fail" 48 log_test "'$current_test' [$profile] $target" 50 log_test "'$current_test' [$profile] overflow $target"
|
/tools/perf/arch/arm64/annotate/ |
D | instructions.c | 16 char *s = strchr(ops->raw, ','), *target, *endptr; in arm64_mov__parse() local 28 target = ++s; in arm64_mov__parse() 29 ops->target.raw = strdup(target); in arm64_mov__parse() 30 if (ops->target.raw == NULL) in arm64_mov__parse() 33 ops->target.addr = strtoull(target, &endptr, 16); in arm64_mov__parse() 34 if (endptr == target) in arm64_mov__parse() 46 ops->target.name = strdup(s); in arm64_mov__parse() 49 if (ops->target.name == NULL) in arm64_mov__parse() 55 zfree(&ops->target.raw); in arm64_mov__parse()
|
/tools/perf/Documentation/ |
D | asciidoctor-extensions.rb | 11 def process(parent, target, attrs) argument 13 %(<a href="#{target}.html">#{target}(#{attrs[1]})</a>\n) 15 "#{target}(#{attrs[1]})" 18 "<refentrytitle>#{target}</refentrytitle>" \
|
/tools/build/ |
D | fixdep.c | 24 char *target; variable 39 printf("cmd_%s := %s\n\n", target, cmdline); in print_cmdline() 97 target, s); in parse_dep_file() 99 target); in parse_dep_file() 117 printf("\n%s: $(deps_%s)\n\n", target, target); in parse_dep_file() 118 printf("$(deps_%s):\n", target); in parse_dep_file() 163 target = argv[2]; in main()
|
D | Build.include | 18 # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o 19 dot-target = $(dir $@).$(notdir $@) 22 # filename of target with directory and extension stripped 28 depfile = $(subst $(comma),_,$(dot-target).d) 54 # Find any prerequisites that is newer than target or that does not exist. 63 $(fixdep) $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp; \ 65 mv -f $(dot-target).tmp $(dot-target).cmd, \ 66 printf '$(pound) cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ 67 printf '$(pound) using basic dep data\n\n' >> $(dot-target).cmd; \ 68 cat $(depfile) >> $(dot-target).cmd; \ [all …]
|
/tools/testing/selftests/timers/ |
D | nsleep-lat.c | 100 struct timespec start, end, target; in nanosleep_lat_test() local 104 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 109 if (clock_nanosleep(clockid, 0, &target, NULL)) in nanosleep_lat_test() 117 clock_nanosleep(clockid, 0, &target, NULL); in nanosleep_lat_test() 128 target = timespec_add(start, ns); in nanosleep_lat_test() 129 clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL); in nanosleep_lat_test() 131 latency += timespec_sub(target, end); in nanosleep_lat_test()
|
D | nanosleep.c | 103 struct timespec now, target, rel; in nanosleep_test() local 108 target = timespec_add(now, ns); in nanosleep_test() 110 if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL)) in nanosleep_test() 114 if (!in_order(target, now)) in nanosleep_test() 122 target = timespec_add(now, ns); in nanosleep_test() 126 if (!in_order(target, now)) in nanosleep_test()
|
D | mqueue-lat.c | 63 struct timespec start, end, now, target; in mqueue_lat_test() local 81 target = now; in mqueue_lat_test() 82 target = timespec_add(now, TARGET_TIMEOUT); /* 100ms */ in mqueue_lat_test() 84 ret = mq_timedreceive(q, buf, sizeof(buf), NULL, &target); in mqueue_lat_test()
|
/tools/perf/ui/browsers/ |
D | map.c | 50 char target[512]; in map_browser__search() local 54 target, "ENTER: OK, ESC: Cancel", 0); in map_browser__search() 58 if (target[0] == '0' && tolower(target[1]) == 'x') { in map_browser__search() 59 u64 addr = strtoull(target, NULL, 16); in map_browser__search() 62 sym = map__find_symbol_by_name(browser->map, target); in map_browser__search() 70 ui_helpline__fpush("%s not found!", target); in map_browser__search()
|
/tools/perf/ |
D | builtin-ftrace.c | 34 struct target target; member 159 if (target__has_cpu(&ftrace->target)) in set_tracing_pid() 200 if (!target__has_cpu(&ftrace->target)) in set_tracing_cpu() 313 &ftrace->target, argv, false, in __cmd_ftrace() 453 .target = { .uid = UINT_MAX, }, in cmd_ftrace() 463 OPT_STRING('p', "pid", &ftrace.target.pid, "pid", in cmd_ftrace() 467 OPT_BOOLEAN('a', "all-cpus", &ftrace.target.system_wide, in cmd_ftrace() 469 OPT_STRING('C', "cpu", &ftrace.target.cpu_list, "cpu", in cmd_ftrace() 495 if (!argc && target__none(&ftrace.target)) in cmd_ftrace() 498 ret = target__validate(&ftrace.target); in cmd_ftrace() [all …]
|
D | builtin-probe.c | 47 char *target; member 65 if (params.target) { in parse_probe_event() 66 pev->target = strdup(params.target); in parse_probe_event() 67 if (!pev->target) in parse_probe_event() 115 if (!params.target && ptr && *ptr == '/') { in set_target() 116 params.target = strdup(ptr); in set_target() 117 if (!params.target) in set_target() 193 free(params.target); in opt_set_target() 194 params.target = tmp; in opt_set_target() 319 free(params.target); in cleanup_params() [all …]
|
D | builtin-stat.c | 139 static struct target target = { variable 273 if (target__has_cpu(&target) && !target__has_per_thread(&target)) in read_counter() 368 if (!target__none(&target) || stat_config.initial_delay) in enable_counters() 379 if (!target__none(&target)) in disable_counters() 401 static bool is_target_alive(struct target *_target, in is_target_alive() 449 if (perf_evlist__prepare_workload(evsel_list, &target, argv, is_pipe, in __run_perf_stat() 462 if (create_perf_stat_counter(counter, &stat_config, &target) < 0) { in __run_perf_stat() 491 } else if (target__has_per_thread(&target) && in __run_perf_stat() 505 perf_evsel__open_strerror(counter, &target, in __run_perf_stat() 586 if (!is_target_alive(&target, evsel_list->core.threads)) in __run_perf_stat() [all …]
|
/tools/arch/x86/include/asm/ |
D | mcsafe_test.h | 8 .macro MCSAFE_TEST_SRC reg count target 11 .macro MCSAFE_TEST_DST reg count target
|
/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 194 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc` 196 echo -e "\t trying to offline $target out of $hotpluggable_num memory block(s):" 198 if [ "$target" -gt 0 ]; then 201 target=$(($target - 1)) 205 if [ "$target" -gt 0 ]; then
|
/tools/bpf/bpftool/ |
D | common.c | 81 mnt_fs(const char *target, const char *type, char *buff, size_t bufflen) in mnt_fs() argument 85 while (mount("", target, "none", MS_PRIVATE | MS_REC, NULL)) { in mnt_fs() 89 target, strerror(errno)); in mnt_fs() 93 if (mount(target, target, "none", MS_BIND, NULL)) { in mnt_fs() 96 target, target, strerror(errno)); in mnt_fs() 103 if (mount(type, target, type, 0, "mode=0700")) { in mnt_fs() 105 type, type, target, strerror(errno)); in mnt_fs() 112 int mount_tracefs(const char *target) in mount_tracefs() argument 117 err = mnt_fs(target, "tracefs", err_str, ERR_MAX_LEN); in mount_tracefs()
|
/tools/perf/tests/ |
D | sdt.c | 59 static int search_cached_probe(const char *target, in search_cached_probe() argument 62 struct probe_cache *cache = probe_cache__new(target, NULL); in search_cached_probe() 66 pr_debug("Failed to open probe cache of %s\n", target); in search_cached_probe()
|
D | backward-ring-buffer.c | 92 .target = { in test__backward_ring_buffer() 103 opts.target.tid = opts.target.pid = pid; in test__backward_ring_buffer() 111 err = perf_evlist__create_maps(evlist, &opts.target); in test__backward_ring_buffer()
|
/tools/testing/selftests/x86/ |
D | Makefile | 43 define gen-target-rule-32 48 define gen-target-rule-64 57 $(foreach t,$(TARGETS_C_32BIT_ALL),$(eval $(call gen-target-rule-32,$(t)))) 64 $(foreach t,$(TARGETS_C_64BIT_ALL),$(eval $(call gen-target-rule-64,$(t))))
|