Home
last modified time | relevance | path

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

123456789

/tools/perf/util/
A Dtarget.h8 struct target { struct
46 enum target_errno target__validate(struct target *target);
52 static inline bool target__has_task(struct target *target) in target__has_task() argument
54 return target->tid || target->pid; 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()
75 return target__none(target) && !target->initial_delay; in target__enable_on_exec()
80 return target->system_wide && target->per_thread; in target__has_per_thread()
[all …]
A 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()
32 if (target->tid && target->system_wide) { in target__validate()
39 if (target->bpf_str && target->cpu_list) { in target__validate()
46 if (target->bpf_str && target->tid) { in target__validate()
47 target->tid = NULL; in target__validate()
53 if (target->bpf_str && target->per_thread) { in target__validate()
60 if (target->per_thread && (target->system_wide || target->cpu_list)) { in target__validate()
[all …]
A Doff_cpu.h7 struct target;
22 int off_cpu_prepare(struct evlist *evlist, struct target *target,
27 struct target *target __maybe_unused, in off_cpu_prepare()
/tools/perf/arch/loongarch/annotate/
A Dinstructions.c13 struct addr_map_symbol target = { in loongarch_call__parse() local
38 if (ops->target.name == NULL) in loongarch_call__parse()
41 target.addr = map__objdump_2mem(map, ops->target.addr); in loongarch_call__parse()
44 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in loongarch_call__parse()
45 ops->target.sym = target.ms.sym; in loongarch_call__parse()
77 target.addr = map__objdump_2mem(map, ops->target.addr); in loongarch_jump__parse()
81 ops->target.outside = target.addr < start || target.addr > end; in loongarch_jump__parse()
84 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in loongarch_jump__parse()
85 ops->target.sym = target.ms.sym; in loongarch_jump__parse()
87 if (!ops->target.outside) { in loongarch_jump__parse()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dtc_opts.c139 assert_mprog_count(target, 0); in test_tc_opts_before_target()
145 assert_mprog_count(target, 1); in test_tc_opts_before_target()
151 assert_mprog_count(target, 2); in test_tc_opts_before_target()
208 assert_mprog_count(target, 4); in test_tc_opts_before_target()
236 assert_mprog_count(target, 3); in test_tc_opts_before_target()
241 assert_mprog_count(target, 2); in test_tc_opts_before_target()
246 assert_mprog_count(target, 1); in test_tc_opts_before_target()
251 assert_mprog_count(target, 0); in test_tc_opts_before_target()
291 assert_mprog_count(target, 0); in test_tc_opts_after_target()
297 assert_mprog_count(target, 1); in test_tc_opts_after_target()
[all …]
A Dtc_links.c152 assert_mprog_count(target, 0); in test_tc_links_before_target()
162 assert_mprog_count(target, 1); in test_tc_links_before_target()
172 assert_mprog_count(target, 2); in test_tc_links_before_target()
228 assert_mprog_count(target, 4); in test_tc_links_before_target()
260 assert_mprog_count(target, 0); in test_tc_links_before_target()
306 assert_mprog_count(target, 0); in test_tc_links_after_target()
316 assert_mprog_count(target, 1); in test_tc_links_after_target()
326 assert_mprog_count(target, 2); in test_tc_links_after_target()
382 assert_mprog_count(target, 4); in test_tc_links_after_target()
414 assert_mprog_count(target, 0); in test_tc_links_after_target()
[all …]
A Dtc_helpers.h24 static inline void __assert_mprog_count(int target, int expected, int ifindex) in __assert_mprog_count() argument
29 err = bpf_prog_query(ifindex, target, 0, &attach_flags, in __assert_mprog_count()
35 static inline void assert_mprog_count(int target, int expected) in assert_mprog_count() argument
37 __assert_mprog_count(target, expected, loopback); in assert_mprog_count()
40 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) in assert_mprog_count_ifindex() argument
42 __assert_mprog_count(target, expected, ifindex); in assert_mprog_count_ifindex()
/tools/testing/selftests/bpf/progs/
A Dtest_lwt_redirect.c43 int target = get_redirect_target(skb); in test_lwt_redirect_in() local
45 if (target < 0) in test_lwt_redirect_in()
51 return bpf_redirect(target, BPF_F_INGRESS); in test_lwt_redirect_in()
57 int target = get_redirect_target(skb); in test_lwt_redirect_out() local
59 if (target < 0) in test_lwt_redirect_out()
65 return bpf_redirect(target, 0); in test_lwt_redirect_out()
71 int target = get_redirect_target(skb); in test_lwt_redirect_out_nomac() local
73 if (target < 0) in test_lwt_redirect_out_nomac()
76 return bpf_redirect(target, 0); in test_lwt_redirect_out_nomac()
82 int target = get_redirect_target(skb); in test_lwt_redirect_in_nomac() local
[all …]
/tools/perf/arch/s390/annotate/
A Dinstructions.c9 struct addr_map_symbol target = { in s390_call__parse() local
37 if (ops->target.name == NULL) in s390_call__parse()
39 target.addr = map__objdump_2mem(map, ops->target.addr); 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()
70 target = ++s; in s390_mov__parse()
71 ops->target.raw = strdup(target); in s390_mov__parse()
72 if (ops->target.raw == NULL) in s390_mov__parse()
75 ops->target.addr = strtoull(target, &endptr, 16); in s390_mov__parse()
76 if (endptr == target) in s390_mov__parse()
[all …]
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Drouter_scale.sh7 local target
9 target=$(devlink_resource_size_get kvd)
12 target=$((target * 85 / 100))
14 target=$((target + 1))
17 echo $target
A Dresource_scale.sh48 target=$(${current_test}_get_target "$should_fail")
49 if ((target == 0)); then
57 target=$(${current_test}_get_target "$should_fail")
58 ${current_test}_test "$target" "$should_fail"
60 log_test "'$current_test' $target"
65 $tt "$target"
66 log_test "'$current_test' $target traffic test"
70 log_test "'$current_test' overflow $target"
72 ${current_test}_cleanup $target
A Dmirror_gre_scale.sh7 local target
9 target=$(devlink_resource_size_get span_agents)
12 echo $target
14 echo $((target + 1))
A Dport_scale.sh7 local target
9 target=$(devlink_resource_size_get physical_ports)
12 echo $target
14 echo $((target + 1))
A Drif_mac_profile_scale.sh7 local target
9 target=$(devlink_resource_size_get rif_mac_profiles)
12 echo $target
14 echo $((target + 1))
A Dtc_police_scale.sh7 local target
9 target=$(devlink_resource_size_get global_policers single_rate_policers)
12 echo $target
14 echo $((target + 1))
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
A 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
A Dresource_scale.sh53 target=$(${current_test}_get_target "$should_fail")
54 if ((target == 0)); then
61 target=$(${current_test}_get_target "$should_fail")
62 ${current_test}_test "$target" "$should_fail"
64 log_test "'$current_test' [$profile] $target"
70 $tt "$target"
71 log_test "'$current_test' [$profile] $target traffic test"
75 log_test "'$current_test' [$profile] overflow $target"
77 ${current_test}_cleanup $target
A Dmirror_gre_scale.sh7 local target
9 target=$(devlink_resource_size_get span_agents)
12 echo $target
14 echo $((target + 1))
A Dport_range_scale.sh7 local target
9 target=$(devlink_resource_size_get port_range_registers)
12 echo $target
14 echo $((target + 1))
A Dport_scale.sh7 local target
9 target=$(devlink_resource_size_get physical_ports)
12 echo $target
14 echo $((target + 1))
A Drif_mac_profile_scale.sh7 local target
9 target=$(devlink_resource_size_get rif_mac_profiles)
12 echo $target
14 echo $((target + 1))
A Dtc_police_scale.sh7 local target
9 target=$(devlink_resource_size_get global_policers single_rate_policers)
12 echo $target
14 echo $((target + 1))
/tools/perf/Documentation/
A 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/perf/arch/arm64/annotate/
A Dinstructions.c17 char *s = strchr(ops->raw, ','), *target, *endptr; in arm64_mov__parse() local
29 target = ++s; in arm64_mov__parse()
30 ops->target.raw = strdup(target); in arm64_mov__parse()
31 if (ops->target.raw == NULL) in arm64_mov__parse()
34 ops->target.addr = strtoull(target, &endptr, 16); in arm64_mov__parse()
35 if (endptr == target) in arm64_mov__parse()
47 ops->target.name = strdup(s); in arm64_mov__parse()
50 if (ops->target.name == NULL) in arm64_mov__parse()
56 zfree(&ops->target.raw); in arm64_mov__parse()
/tools/build/
A 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()

Completed in 33 milliseconds

123456789