Home
last modified time | relevance | path

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

12345678

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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()
H A Dsubskeleton.c15 *lib->rodata.var1 = 1; in subskeleton_lib_setup()
59 skel->rodata->rovar1 = 10; in test_subskeleton()
60 skel->rodata->var1 = 1; in test_subskeleton()
91 struct test_subskeleton__rodata *rodata;
102 map = bpf_object__find_map_by_name(obj, ".rodata");
106 rodata = bpf_map__initial_value(map, &rodata_sz);
107 if (!ASSERT_OK_PTR(rodata, "rodata_get"))
110 rodata->rovar1 = 10;
111 rodata->var1 = 1;
134 if (!ASSERT_OK_PTR(rodata, "rodata_ge
[all...]
/linux/tools/sched_ext/
H A 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 …]
H A 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()
H A 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()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_renderstate.c53 const struct intel_renderstate_rodata *rodata = so->rodata; in render_state_setup() local
62 while (i < rodata->batch_items) { in render_state_setup()
63 u32 s = rodata->batch[i]; in render_state_setup()
65 if (i * 4 == rodata->reloc[reloc_index]) { in render_state_setup()
70 if (i + 1 >= rodata->batch_items || in render_state_setup()
71 rodata->batch[i + 1] != 0) in render_state_setup()
84 if (rodata->reloc[reloc_index] != -1) { in render_state_setup()
90 so->batch_size = rodata->batch_items * sizeof(u32); in render_state_setup()
151 so->rodata = render_state_get_rodata(engine); in intel_renderstate_init()
152 if (so->rodata) { in intel_renderstate_init()
[all …]
/linux/tools/perf/util/
H A 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 …]
H A 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()
/linux/arch/parisc/boot/compressed/
H A Dvmlinux.lds.S47 .rodata.compressed : {
48 *(.rodata.compressed)
70 .rodata : {
72 *(.rodata) /* read-only data */ argument
73 *(.rodata.*)
/linux/arch/x86/boot/compressed/
H A Dvmlinux.lds.S30 .rodata..compressed : {
31 *(.rodata..compressed)
40 .rodata : {
42 *(.rodata) /* read-only data */ argument
43 *(.rodata.*)
/linux/tools/testing/selftests/bpf/benchs/
H A 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()
H A 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()
/linux/scripts/
H A Dmodule.lds.S57 .rodata : {
58 *(.rodata .rodata.[0-9a-zA-Z_]*)
59 *(.rodata..L*)
/linux/arch/s390/boot/
H A Dvmlinux.lds.S37 .rodata : {
39 *(.rodata) /* read-only data */ argument
40 *(.rodata.*)
121 .rodata.compressed : {
/linux/arch/s390/purgatory/
H A Dpurgatory.lds.S24 .rodata : {
26 *(.rodata) /* read-only data */ argument
27 *(.rodata.*)
/linux/arch/um/kernel/
H A Ddyn.lds.S41 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
42 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
/linux/arch/nios2/boot/compressed/
H A Dvmlinux.lds.S20 .rodata : { *(.rodata) *(.rodata.*) }
/linux/arch/alpha/boot/
H A Dbootloader.lds11 .rodata : { *(.rodata) *(.rodata.*) }
/linux/arch/x86/realmode/rm/
H A Drealmode.lds.S27 .rodata : {
28 *(.rodata)
29 *(.rodata.*)
/linux/drivers/misc/lkdtm/
H A DMakefile22 --rename-section .noinstr.text=.rodata,alloc,readonly,load,contents
23 targets += rodata.o rodata_objcopy.o
24 $(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE
/linux/arch/riscv/kernel/vdso/
H A Dvdso.lds.S28 .rodata : {
29 *(.rodata .rodata.* .gnu.linkonce.r.*)

12345678