Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 113) sorted by relevance

12345

/tools/lib/perf/Documentation/examples/
A Dsampling.c86 __u64 ip, period, *array; in main() local
89 array = event->sample.array; in main()
91 ip = *array; in main()
92 array++; in main()
94 u.val64 = *array; in main()
97 array++; in main()
99 u.val64 = *array; in main()
101 array++; in main()
103 period = *array; in main()
/tools/testing/selftests/bpf/progs/
A Dwq_failures.c21 } array SEC(".maps");
58 val = bpf_map_lookup_elem(&array, &key); in __flag()
83 val = bpf_map_lookup_elem(&array, &key); in __flag()
107 wq = bpf_map_lookup_elem(&array, &key); in test_wrong_wq_pointer()
111 if (bpf_wq_init(wq, &array, 0)) in test_wrong_wq_pointer()
133 wq = bpf_map_lookup_elem(&array, &key); in test_wrong_wq_pointer_offset()
137 if (bpf_wq_init(wq, &array, 0)) in test_wrong_wq_pointer_offset()
A Dpercpu_alloc_array.c17 } array SEC(".maps");
32 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
56 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
88 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
116 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
140 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
A Dtest_global_func16.c19 int array[10]; in global_func16() local
21 const int rv = foo(&array); in global_func16()
A Dpreempted_bpf_ma_op.c23 } array SEC(".maps");
34 value = bpf_map_lookup_elem(&array, from); in del_array()
51 value = bpf_map_lookup_elem(&array, from); in add_array()
A Dpercpu_alloc_fail.c34 } array SEC(".maps");
46 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
71 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
95 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
A Dverifier_private_stack.c23 } array SEC(".maps");
313 arr_timer = bpf_map_lookup_elem(&array, &array_key); in private_stack_async_callback_1()
317 bpf_timer_init(arr_timer, &array, 1); in private_stack_async_callback_1()
336 arr_timer = bpf_map_lookup_elem(&array, &array_key); in private_stack_async_callback_2()
340 bpf_timer_init(arr_timer, &array, 1); in private_stack_async_callback_2()
A Dtest_subprogs.c12 } array SEC(".maps");
18 bpf_map_lookup_elem(&array, &key); in sub1()
38 bpf_map_lookup_elem(&array, &key); in sub4()
A Dnormal_map_btf.c25 } array SEC(".maps");
42 value = bpf_map_lookup_elem(&array, &zero); in add_to_list_in_array()
/tools/lib/perf/tests/
A Dtest-threadmap.c14 static int test_threadmap_array(int nr, pid_t *array) in test_threadmap_array() argument
19 threads = perf_thread_map__new_array(nr, array); in test_threadmap_array()
26 perf_thread_map__pid(threads, i) == (array ? array[i] : -1)); in test_threadmap_array()
33 perf_thread_map__pid(threads, 0) == (array ? array[0] : -1)); in test_threadmap_array()
/tools/testing/radix-tree/
A Diteration_check_2.c57 DEFINE_XARRAY(array); in iteration_test2()
64 xa_store(&array, 100, xa_mk_value(100), GFP_KERNEL); in iteration_test2()
65 xa_set_mark(&array, 100, XA_MARK_0); in iteration_test2()
67 if (pthread_create(&threads[0], NULL, iterator, &array)) { in iteration_test2()
71 if (pthread_create(&threads[1], NULL, throbber, &array)) { in iteration_test2()
86 xa_destroy(&array); in iteration_test2()
A Diteration_check.c17 static DEFINE_XARRAY(array);
54 my_item_insert(&array, pgoff); in add_entries_fn()
69 XA_STATE(xas, &array, 0); in tagged_iteration_fn()
102 XA_STATE(xas, &array, 0); in untagged_iteration_fn()
143 item = xa_erase(&array, pgoff); in remove_entries_fn()
158 tag_tagged_items(&array, 0, MAX_IDX, 10, TAG, NEW_TAG); in tag_entries_fn()
209 item_kill_tree(&array); in iteration_test()
/tools/perf/util/
A Dsynthetic-events.c1597 array = (void *)array + sz; in copy_read_group_values()
1613 array = event->sample.array; in perf_event__synthesize_sample()
1617 array++; in perf_event__synthesize_sample()
1622 array++; in perf_event__synthesize_sample()
1629 array++; in perf_event__synthesize_sample()
1699 array = (void *)array + sz; in perf_event__synthesize_sample()
1720 array = (void *)array + sz; in perf_event__synthesize_sample()
1728 array = (void *)array + sz; in perf_event__synthesize_sample()
1739 array = (void *)array + sz; in perf_event__synthesize_sample()
1764 array = (void *)array + sz; in perf_event__synthesize_sample()
[all …]
A Devsel.c3011 array = event->sample.array; in evsel__parse_sample()
3113 array = (void *)array + sz; in evsel__parse_sample()
3136 array = (void *)array + sz; in evsel__parse_sample()
3163 array = (void *)array + sizeof(u32); in evsel__parse_sample()
3211 array = (void *)array + sz; in evsel__parse_sample()
3218 array = (void *)array + sz; in evsel__parse_sample()
3236 array = (void *)array + sz; in evsel__parse_sample()
3252 array = (void *)array + sz; in evsel__parse_sample()
3293 array = (void *)array + sz; in evsel__parse_sample()
3331 array = (void *)array + sz; in evsel__parse_sample()
[all …]
A Ddemangle-java.c48 int array = 0; in __demangle_java_sym() local
87 while (array--) in __demangle_java_sym()
89 array = 0; in __demangle_java_sym()
97 while (array--) in __demangle_java_sym()
99 array = 0; in __demangle_java_sym()
106 array++; in __demangle_java_sym()
A Dbpf-utils.c75 __u32 *array = (__u32 *)info; in bpf_prog_info_read_offset_u32() local
78 return array[offset / sizeof(__u32)]; in bpf_prog_info_read_offset_u32()
85 __u64 *array = (__u64 *)info; in bpf_prog_info_read_offset_u64() local
88 return array[offset / sizeof(__u64)]; in bpf_prog_info_read_offset_u64()
95 __u32 *array = (__u32 *)info; in bpf_prog_info_set_offset_u32() local
98 array[offset / sizeof(__u32)] = val; in bpf_prog_info_set_offset_u32()
104 __u64 *array = (__u64 *)info; in bpf_prog_info_set_offset_u64() local
107 array[offset / sizeof(__u64)] = val; in bpf_prog_info_set_offset_u64()
/tools/virtio/ringtest/
A Dptr_ring.c115 static struct ptr_ring array ____cacheline_aligned_in_smp;
120 int ret = ptr_ring_init(&array, ring_size, 0); in alloc_ring()
124 array.batch = param; in alloc_ring()
132 ret = __ptr_ring_produce(&array, buf); in add_inbuf()
151 if (tailcnt == headcnt || __ptr_ring_full(&array)) in get_buf()
163 return (tailcnt == headcnt || __ptr_ring_full(&array)); in used_empty()
194 return __ptr_ring_empty(&array); in avail_empty()
201 ptr = __ptr_ring_consume(&array); in use_buf()
/tools/perf/trace/beauty/
A Dbeauty.h17 #define DEFINE_STRARRAY(array, _prefix) struct strarray strarray__##array = { \ argument
18 .nr_entries = ARRAY_SIZE(array), \
19 .entries = array, \
23 #define DEFINE_STRARRAY_OFFSET(array, _prefix, off) struct strarray strarray__##array = { \ argument
25 .nr_entries = ARRAY_SIZE(array), \
26 .entries = array, \
52 #define DEFINE_STRARRAYS(array) struct strarrays strarrays__##array = { \ argument
53 .nr_entries = ARRAY_SIZE(array), \
54 .entries = array, \
/tools/perf/util/bpf_skel/
A Doff_cpu.bpf.c26 u64 array[MAX_STACKS]; member
52 u64 array[MAX_OFFCPU_LEN]; member
219 for (int i = 0; i < MAX_STACKS && from->array[i]; ++i, ++len) in copy_stack()
220 to->array[n + 2 + i] = from->array[i]; in copy_stack()
239 data->array[n++] = (u64)key->tgid << 32 | key->pid; in off_cpu_dump()
240 data->array[n++] = delta; in off_cpu_dump()
243 data->array[n + 1] = PERF_CONTEXT_USER; in off_cpu_dump()
244 data->array[n + 2] = 0; in off_cpu_dump()
248 data->array[n] = len + 1; in off_cpu_dump()
251 data->array[n++] = key->cgroup_id; in off_cpu_dump()
/tools/mm/
A Dslabinfo-gnuplot.sh190 array=(${OPTARG//,/ })
191 width=${array[0]}
192 height=${array[1]}
195 array=(${OPTARG//,/ })
196 xmin=${array[0]}
197 xmax=${array[1]}
/tools/testing/selftests/net/
A Dsample_map_ret0.bpf.c17 } array SEC(".maps");
29 value = bpf_map_lookup_elem(&array, &key64); in func()
/tools/testing/selftests/kvm/s390/
A Dcpumodel_subfuncs_test.c230 typedef void (*testfunc_t)(u8 (*array)[]);
284 u8 *array = malloc(testlist[idx].array_size); in main() local
286 testlist[idx].test((u8 (*)[testlist[idx].array_size])array); in main()
289 array, testlist[idx].array_size), 0); in main()
292 free(array); in main()
/tools/lib/perf/Documentation/
A Dlibperf-sampling.txt193 86 __u64 ip, period, *array;
196 89 array = event->sample.array;
198 91 ip = *array;
199 92 array++;
201 94 u.val64 = *array;
204 97 array++;
206 99 u.val64 = *array;
208 101 array++;
210 103 period = *array;
/tools/perf/
A Dperf-completion.sh242 local -a array
249 array[${#array[@]}+1]="$c"
253 compadd -Q -S '' -a -- array && _ret=0
262 local -a array
273 array[$#array+1]=${c#"$colon_word"}
277 compadd -Q -S '' -a -- array && _ret=0
/tools/testing/selftests/net/bench/page_pool/
A Dbench_page_pool_simple.c110 struct page **array; in pp_fill_ptr_ring() local
113 array = kcalloc(elems, sizeof(struct page *), gfp_mask); in pp_fill_ptr_ring()
116 array[i] = page_pool_alloc_pages(pp, gfp_mask); in pp_fill_ptr_ring()
118 page_pool_put_page(pp, array[i], -1, false); in pp_fill_ptr_ring()
120 kfree(array); in pp_fill_ptr_ring()

Completed in 62 milliseconds

12345