/tools/perf/util/ |
D | target.h | 8 struct target { struct 56 enum target_errno target__validate(struct target *target); 57 enum target_errno target__parse_uid(struct target *target); 59 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen); 61 static inline bool target__has_task(struct target *target) in target__has_task() argument 63 return target->tid || target->pid || target->uid_str; in target__has_task() 66 static inline bool target__has_cpu(struct target *target) in target__has_cpu() argument 68 return target->system_wide || target->cpu_list; in target__has_cpu() 71 static inline bool target__none(struct target *target) in target__none() argument 73 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 | bpf_counter.h | 15 struct target; 20 struct target *target); 41 int bpf_counter__load(struct evsel *evsel, struct target *target); 53 struct target *target __maybe_unused) in bpf_counter__load()
|
/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 (maps__find_ams(ms->maps, &target) == 0 && in s390_call__parse() 42 map__rip_2objdump(target.ms.map, map->map_ip(target.ms.map, target.addr)) == ops->target.addr) in s390_call__parse() 43 ops->target.sym = target.ms.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-2/ |
D | router_scale.sh | 7 local target 9 target=$(devlink_resource_size_get kvd) 12 target=$((target * 85 / 100)) 14 target=$((target + 1)) 17 echo $target
|
D | port_scale.sh | 7 local target 9 target=$(devlink_resource_size_get physical_ports) 12 echo $target 14 echo $((target + 1))
|
D | mirror_gre_scale.sh | 7 local target 9 target=$(devlink_resource_size_get span_agents) 12 echo $target 14 echo $((target + 1))
|
D | tc_police_scale.sh | 7 local target 9 target=$(devlink_resource_size_get global_policers single_rate_policers) 12 echo $target 14 echo $((target + 1))
|
D | tc_flower_scale.sh | 13 local target=30714 16 echo $target 18 echo $((target + 1))
|
/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 | mirror_gre_scale.sh | 7 local target 9 target=$(devlink_resource_size_get span_agents) 12 echo $target 14 echo $((target + 1))
|
D | port_scale.sh | 7 local target 9 target=$(devlink_resource_size_get physical_ports) 12 echo $target 14 echo $((target + 1))
|
D | tc_police_scale.sh | 7 local target 9 target=$(devlink_resource_size_get global_policers single_rate_policers) 12 echo $target 14 echo $((target + 1))
|
D | tc_flower_scale.sh | 12 local target=5631 15 echo $target 17 echo $((target + 1))
|
/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/perf/bench/ |
D | synthesize.c | 63 struct target *target, bool data_mmap) in do_run_single_threaded() argument 81 target, threads, in do_run_single_threaded() 113 struct target target = { in run_single_threaded() local 136 err = do_run_single_threaded(session, threads, &target, false); in run_single_threaded() 140 err = do_run_single_threaded(session, threads, &target, true); in run_single_threaded() 150 static int do_run_multi_threaded(struct target *target, in do_run_multi_threaded() argument 172 target, NULL, in do_run_multi_threaded() 206 struct target target = { in run_multi_threaded() local 230 err = do_run_multi_threaded(&target, nr_threads_synthesize); in run_multi_threaded()
|
D | evlist-open-close.c | 34 .target = { 49 OPT_BOOLEAN('a', "all-cpus", &opts.target.system_wide, "system-wide collection from all CPUs"), 50 OPT_STRING('C', "cpu", &opts.target.cpu_list, "cpu", "list of cpus where to open events"), 51 OPT_STRING('p', "pid", &opts.target.pid, "pid", "record events on existing process id"), 52 OPT_STRING('t', "tid", &opts.target.tid, "tid", "record events on existing thread id"), 53 OPT_STRING('u', "uid", &opts.target.uid_str, "user", "user to profile"), 54 OPT_BOOLEAN(0, "per-thread", &opts.target.per_thread, "use per-thread mmaps"), 93 ret = evlist__create_maps(evlist, &opts.target); in bench__create_evlist() 230 err = target__validate(&opts.target); in bench_evlist_open_close() 232 target__strerror(&opts.target, err, errbuf, sizeof(errbuf)); in bench_evlist_open_close() [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()
|
/tools/testing/selftests/exec/ |
D | binfmt_script | 43 def test(name, size, good=True, leading="", root="./", target="/perl", argument 52 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg) 61 binary = dirpath + target 62 if len(target): 67 buf=hashbang + leading + root + middle + target + arg + newline 96 if len(target): 118 fill=" ", target="") 123 fill="", target="", newline="") 126 target="", newline="") 129 root="", fill=" ", target="")
|
/tools/testing/selftests/openat2/ |
D | helpers.c | 57 char *target, *tmp; in fdreadlink() local 61 target = malloc(PATH_MAX); in fdreadlink() 62 if (!target) in fdreadlink() 64 memset(target, 0, PATH_MAX); in fdreadlink() 66 E_readlink(tmp, target, PATH_MAX); in fdreadlink() 68 return target; in fdreadlink()
|