Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 131) sorted by relevance

123456

/tools/perf/util/
Dtarget.h8 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 …]
Dtarget.c17 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 …]
Dtop.c29 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()
/tools/perf/arch/s390/annotate/
Dinstructions.c9 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/
Drouter_scale.sh7 local target
9 target=$(devlink_resource_size_get kvd)
12 target=$((target * 85 / 100))
14 target=$((target + 1))
17 echo $target
Dmirror_gre_scale.sh7 local target
9 target=$(devlink_resource_size_get span_agents)
12 echo $target
14 echo $((target + 1))
Dtc_police_scale.sh7 local target
9 target=$(devlink_resource_size_get global_policers single_rate_policers)
12 echo $target
14 echo $((target + 1))
Dtc_flower_scale.sh13 local target=30714
16 echo $target
18 echo $((target + 1))
Dresource_scale.sh40 target=$(${current_test}_get_target "$should_fail")
43 ${current_test}_test "$target" "$should_fail"
47 log_test "'$current_test' $target"
49 log_test "'$current_test' overflow $target"
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Drouter_scale.sh7 local target
9 target=$(devlink_resource_size_get kvd hash_single)
12 target=$((target * 85 / 100))
14 target=$((target + 1))
17 echo $target
Dmirror_gre_scale.sh7 local target
9 target=$(devlink_resource_size_get span_agents)
12 echo $target
14 echo $((target + 1))
Dtc_police_scale.sh7 local target
9 target=$(devlink_resource_size_get global_policers single_rate_policers)
12 echo $target
14 echo $((target + 1))
Dtc_flower_scale.sh12 local target=5631
15 echo $target
17 echo $((target + 1))
Dresource_scale.sh42 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/
Dinstructions.c16 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/
Dasciidoctor-extensions.rb11 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/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c153 void *target; in runtest_dar_outside() local
162 target = malloc(8); in runtest_dar_outside()
163 if (!target) { in runtest_dar_outside()
177 attr.bp_addr = (__u64)(target + 2); in runtest_dar_outside()
181 free(target); in runtest_dar_outside()
189 temp16 = *((__u16 *)target); in runtest_dar_outside()
190 *((__u16 *)target) = temp16; in runtest_dar_outside()
204 temp16 = *((__u16 *)(target + 1)); in runtest_dar_outside()
205 *((__u16 *)(target + 1)) = temp16; in runtest_dar_outside()
219 temp16 = *((__u16 *)(target + 5)); in runtest_dar_outside()
[all …]
/tools/build/
Dfixdep.c24 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()
DBuild.include18 # 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/
Dsynthesize.c63 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()
/tools/testing/selftests/timers/
Dnsleep-lat.c100 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()
Dnanosleep.c103 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/
Dbinfmt_script43 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/
Dhelpers.c57 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()
/tools/perf/ui/browsers/
Dmap.c50 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()

123456