Home
last modified time | relevance | path

Searched refs:rodata (Results 1 – 25 of 69) sorted by relevance

123

/tools/testing/selftests/bpf/prog_tests/
Dmetadata.c76 bpf_map__fd(obj->maps.rodata)); in test_metadata_unused()
83 if (CHECK(strncmp(obj->rodata->bpf_metadata_a, "foo", in test_metadata_unused()
84 sizeof(obj->rodata->bpf_metadata_a)), in test_metadata_unused()
87 if (CHECK(obj->rodata->bpf_metadata_b != 1, "bpf_metadata_b", in test_metadata_unused()
88 "expected 1, got %d", obj->rodata->bpf_metadata_b)) in test_metadata_unused()
93 bpf_map__fd(obj->maps.rodata), NULL); in test_metadata_unused()
110 bpf_map__fd(obj->maps.rodata)); in test_metadata_used()
117 if (CHECK(strncmp(obj->rodata->bpf_metadata_a, "bar", in test_metadata_used()
118 sizeof(obj->rodata->bpf_metadata_a)), in test_metadata_used()
121 if (CHECK(obj->rodata->bpf_metadata_b != 2, "metadata_b", in test_metadata_used()
[all …]
Dtest_bpf_ma.c28 for (i = 0; i < ARRAY_SIZE(skel->rodata->data_sizes); i++) { in do_bpf_ma_test()
29 snprintf(tname, sizeof(tname), "bin_data_%u", skel->rodata->data_sizes[i]); in do_bpf_ma_test()
33 skel->rodata->data_btf_ids[i] = id; in do_bpf_ma_test()
36 for (i = 0; i < ARRAY_SIZE(skel->rodata->percpu_data_sizes); i++) { in do_bpf_ma_test()
37 snprintf(tname, sizeof(tname), "percpu_bin_data_%u", skel->rodata->percpu_data_sizes[i]); in do_bpf_ma_test()
41 skel->rodata->percpu_data_btf_ids[i] = id; in do_bpf_ma_test()
Dskeleton.c21 struct test_skeleton__rodata *rodata; in test_skeleton() local
39 rodata = skel->rodata; in test_skeleton()
56 CHECK(rodata->in.in6 != 0, "in6", "got %d != exp %d\n", rodata->in.in6, 0); in test_skeleton()
70 rodata->in.in6 = 14; in test_skeleton()
85 CHECK(rodata->in.in6 != 14, "in6", "got %d != exp %d\n", rodata->in.in6, 14); in test_skeleton()
Dtask_under_cgroup.c25 skel->rodata->local_pid = getpid(); in test_task_under_cgroup()
27 skel->rodata->cgid = get_cgroup_id(FOO); in test_task_under_cgroup()
54 ASSERT_NEQ(skel->bss->remote_pid, skel->rodata->local_pid, in test_task_under_cgroup()
Dstatic_linked.c16 skel->rodata->rovar1 = 1; in test_static_linked()
17 skel->rodata->rovar2 = 4; in test_static_linked()
Dsubskeleton.c15 *lib->rodata.var1 = 1; in subskeleton_lib_setup()
58 skel->rodata->rovar1 = 10; in test_subskeleton()
59 skel->rodata->var1 = 1; in test_subskeleton()
Dglobal_map_resize.c67 skel->rodata->pid = getpid(); in global_map_resize_bss_subtest()
68 skel->rodata->bss_array_len = array_len; in global_map_resize_bss_subtest()
69 skel->rodata->data_array_len = 1; in global_map_resize_bss_subtest()
137 skel->rodata->pid = getpid(); in global_map_resize_data_subtest()
138 skel->rodata->bss_array_len = 1; in global_map_resize_data_subtest()
139 skel->rodata->data_array_len = array_len; in global_map_resize_data_subtest()
Dtrace_printk.c26 ASSERT_EQ(skel->rodata->fmt[0], 'T', "skel->rodata->fmt[0]"); in serial_test_trace_printk()
27 skel->rodata->fmt[0] = 't'; in serial_test_trace_printk()
Dtest_strncmp.c33 memcpy(str, skel->rodata->target, nr); in strncmp_full_str_cmp()
71 memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str)); in test_strncmp_ret()
76 memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str)); in test_strncmp_ret()
Dpercpu_alloc.c23 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_array()
56 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_array_sleepable()
91 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_cgrp_local_storage()
Dtest_ldsx_insn.c17 if (skel->rodata->skip) { in test_map_val_and_probed_memory()
61 if (skel->rodata->skip) { in test_ctx_member_sign_ext()
110 if (skel->rodata->skip) { in test_ctx_member_narrow_sign_ext()
Dcheck_mtu.c114 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_xdp()
115 skel->rodata->GLOBAL_USER_IFINDEX = ifindex; in test_check_mtu_xdp()
167 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_tc()
168 skel->rodata->GLOBAL_USER_IFINDEX = ifindex; in test_check_mtu_tc()
Dmap_lookup_percpu_elem.c26 skel->rodata->my_pid = getpid(); in test_map_lookup_percpu_elem()
27 skel->rodata->nr_cpus = nr_cpus; in test_map_lookup_percpu_elem()
Dbpf_mod_race.c110 skel->rodata->bpf_mod_race_config.tgid = getpid(); in test_bpf_mod_race_config()
111 skel->rodata->bpf_mod_race_config.inject_error = -4242; in test_bpf_mod_race_config()
112 skel->rodata->bpf_mod_race_config.fault_addr = fault_addr; in test_bpf_mod_race_config()
Dparse_tcp_hdr_opt.c47 pkt.options[6] = skel->rodata->tcp_hdr_opt_kind_tpr; in test_parse_opt()
77 pkt.options[6] = skel->rodata->tcp_hdr_opt_kind_tpr; in test_parse_opt_dynptr()
/tools/sched_ext/
Dscx_qmap.c70 skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000; in main()
76 skel->rodata->stall_user_nth = strtoul(optarg, NULL, 0); in main()
79 skel->rodata->stall_kernel_nth = strtoul(optarg, NULL, 0); in main()
82 skel->rodata->dsp_inf_loop_after = strtoul(optarg, NULL, 0); in main()
85 skel->rodata->dsp_batch = strtoul(optarg, NULL, 0); in main()
88 skel->rodata->print_shared_dsq = true; in main()
91 skel->rodata->highpri_boosting = true; in main()
94 skel->rodata->disallow_tgid = strtol(optarg, NULL, 0); in main()
95 if (skel->rodata->disallow_tgid < 0) in main()
96 skel->rodata->disallow_tgid = getpid(); in main()
[all …]
Dscx_central.c59 skel->rodata->central_cpu = 0; in main()
60 skel->rodata->nr_cpu_ids = libbpf_num_possible_cpus(); in main()
65 skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000; in main()
68 skel->rodata->central_cpu = strtoul(optarg, NULL, 0); in main()
80 RESIZE_ARRAY(skel, data, cpu_gimme_task, skel->rodata->nr_cpu_ids); in main()
81 RESIZE_ARRAY(skel, data, cpu_started_at, skel->rodata->nr_cpu_ids); in main()
96 cpuset = CPU_ALLOC(skel->rodata->nr_cpu_ids); in main()
99 CPU_SET(skel->rodata->central_cpu, cpuset); in main()
102 skel->rodata->central_cpu, skel->rodata->nr_cpu_ids - 1); in main()
Dscx_flatcg.c104 __u64 cnts[FCG_NR_STATS][skel->rodata->nr_cpus]; in fcg_read_stats()
116 for (cpu = 0; cpu < skel->rodata->nr_cpus; cpu++) in fcg_read_stats()
139 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in main()
147 skel->rodata->cgrp_slice_ns = v * 1000; in main()
158 skel->rodata->fifo_sched = true; in main()
171 (double)skel->rodata->cgrp_slice_ns / 1000000.0, in main()
/tools/perf/util/
Dbpf_off_cpu.c76 if (skel->rodata->has_task && skel->rodata->uses_tgid && in off_cpu_start()
120 skel->rodata->has_prev_state = true; in check_sched_switch_args()
149 skel->rodata->has_cpu = 1; in off_cpu_prepare()
175 skel->rodata->has_task = 1; in off_cpu_prepare()
176 skel->rodata->uses_tgid = 1; in off_cpu_prepare()
180 skel->rodata->has_task = 1; in off_cpu_prepare()
183 skel->rodata->has_task = 1; in off_cpu_prepare()
184 skel->rodata->uses_tgid = 1; in off_cpu_prepare()
192 skel->rodata->uses_cgroup_v1 = true; in off_cpu_prepare()
193 skel->rodata->has_cgroup = 1; in off_cpu_prepare()
[all …]
Dbpf_lock_contention.c50 skel->rodata->has_cpu = 1; in lock_contention_prepare()
54 skel->rodata->has_task = 1; in lock_contention_prepare()
58 skel->rodata->has_type = 1; in lock_contention_prepare()
62 skel->rodata->has_cgroup = 1; in lock_contention_prepare()
93 skel->rodata->has_addr = 1; in lock_contention_prepare()
102 skel->rodata->stack_skip = con->stack_skip; in lock_contention_prepare()
103 skel->rodata->aggr_mode = con->aggr_mode; in lock_contention_prepare()
104 skel->rodata->needs_callstack = con->save_callstack; in lock_contention_prepare()
105 skel->rodata->lock_owner = con->owner; in lock_contention_prepare()
109 skel->rodata->use_cgroup_v2 = 1; in lock_contention_prepare()
Dbpf_ftrace.c43 skel->rodata->has_cpu = 1; in perf_ftrace__latency_prepare_bpf()
49 skel->rodata->has_task = 1; in perf_ftrace__latency_prepare_bpf()
52 skel->rodata->use_nsec = ftrace->use_nsec; in perf_ftrace__latency_prepare_bpf()
/tools/testing/selftests/bpf/benchs/
Dbench_local_storage.c125 ctx.skel->rodata->num_maps = args.nr_maps; in __setup()
126 ctx.skel->rodata->hashmap_num_keys = args.hashmap_nr_keys_used; in __setup()
186 skel->rodata->use_hashmap = 1; in hashmap_setup()
187 skel->rodata->interleave = 0; in hashmap_setup()
201 skel->rodata->use_hashmap = 0; in local_storage_cache_get_setup()
202 skel->rodata->interleave = 0; in local_storage_cache_get_setup()
216 skel->rodata->use_hashmap = 0; in local_storage_cache_get_interleaved_setup()
217 skel->rodata->interleave = 1; in local_storage_cache_get_interleaved_setup()
Dbench_bloom_filter_map.c234 ctx.skel->rodata->nr_rand_bytes, 0); in populate_maps()
235 if (nr_rand_bytes != ctx.skel->rodata->nr_rand_bytes) { in populate_maps()
268 skel->rodata->hashmap_use_bloom = ctx.hashmap_use_bloom; in setup_skeleton()
269 skel->rodata->count_false_hits = ctx.count_false_hits; in setup_skeleton()
397 hit_key = ctx.skel->rodata->hit_key; in measure()
398 drop_key = ctx.skel->rodata->drop_key; in measure()
399 false_hit_key = ctx.skel->rodata->false_hit_key; in measure()
Dbench_strncmp.c65 sz = sizeof(ctx.skel->rodata->target); in strncmp_setup()
81 target = ctx.skel->rodata->target; in strncmp_setup()
86 ctx.skel->rodata->cmp_str_len = args.cmp_str_len; in strncmp_setup()
/tools/testing/selftests/kvm/lib/x86_64/
Dhandlers.S46 .pushsection .rodata
58 .pushsection .rodata

123