Home
last modified time | relevance | path

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

12345

/tools/lib/perf/Documentation/examples/
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/perf/arch/powerpc/util/
Devent.c15 const __u64 *array, u64 type) in arch_perf_parse_sample_weight() argument
19 weight.full = *array; in arch_perf_parse_sample_weight()
30 __u64 *array, u64 type) in arch_perf_synthesize_sample_weight() argument
32 *array = data->weight; in arch_perf_synthesize_sample_weight()
35 *array &= 0xffffffff; in arch_perf_synthesize_sample_weight()
36 *array |= ((u64)data->ins_lat << 32); in arch_perf_synthesize_sample_weight()
/tools/testing/selftests/bpf/progs/
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()
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()
Dtest_global_func16.c19 int array[10]; in global_func16() local
21 const int rv = foo(&array); in global_func16()
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()
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()
Dtest_subprogs.c12 } array SEC(".maps");
18 bpf_map_lookup_elem(&array, &key); in sub1()
38 bpf_map_lookup_elem(&array, &key); in sub4()
Dnormal_map_btf.c25 } array SEC(".maps");
42 value = bpf_map_lookup_elem(&array, &zero); in add_to_list_in_array()
/tools/testing/radix-tree/
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()
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/lib/perf/tests/
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/perf/util/
Devsel.c2502 const __u64 *array = event->sample.array; in perf_evsel__parse_id_sample() local
2506 array += ((event->header.size - in perf_evsel__parse_id_sample()
2510 sample->id = *array; in perf_evsel__parse_id_sample()
2511 array--; in perf_evsel__parse_id_sample()
2515 u.val64 = *array; in perf_evsel__parse_id_sample()
2523 array--; in perf_evsel__parse_id_sample()
2527 sample->stream_id = *array; in perf_evsel__parse_id_sample()
2528 array--; in perf_evsel__parse_id_sample()
2532 sample->id = *array; in perf_evsel__parse_id_sample()
2533 array--; in perf_evsel__parse_id_sample()
[all …]
Dsynthetic-events.c1569 __u64 *array, u64 type __maybe_unused) in arch_perf_synthesize_sample_weight() argument
1571 *array = data->weight; in arch_perf_synthesize_sample_weight()
1574 static __u64 *copy_read_group_values(__u64 *array, __u64 read_format, in copy_read_group_values() argument
1582 memcpy(array, v, sz); in copy_read_group_values()
1583 array = (void *)array + sz; in copy_read_group_values()
1585 return array; in copy_read_group_values()
1591 __u64 *array; in perf_event__synthesize_sample() local
1599 array = event->sample.array; in perf_event__synthesize_sample()
1602 *array = sample->id; in perf_event__synthesize_sample()
1603 array++; in perf_event__synthesize_sample()
[all …]
Dbpf_off_cpu.c36 u64 array[1024 / sizeof(u64)]; member
342 data.array[n++] = sid; in off_cpu_write()
345 data.array[n++] = 0; /* will be updated */ in off_cpu_write()
348 data.array[n++] = (u64)key.pid << 32 | key.tgid; in off_cpu_write()
350 data.array[n++] = tstamp; in off_cpu_write()
352 data.array[n++] = sid; in off_cpu_write()
354 data.array[n++] = 0; in off_cpu_write()
356 data.array[n++] = val; in off_cpu_write()
361 data.array[n + 1] = PERF_CONTEXT_USER; in off_cpu_write()
362 data.array[n + 2] = 0; in off_cpu_write()
[all …]
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()
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/
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/arch/x86/util/
Devent.c96 const __u64 *array, u64 type) in arch_perf_parse_sample_weight() argument
100 weight.full = *array; in arch_perf_parse_sample_weight()
111 __u64 *array, u64 type) in arch_perf_synthesize_sample_weight() argument
113 *array = data->weight; in arch_perf_synthesize_sample_weight()
116 *array &= 0xffffffff; in arch_perf_synthesize_sample_weight()
117 *array |= ((u64)data->ins_lat << 32); in arch_perf_synthesize_sample_weight()
118 *array |= ((u64)data->retire_lat << 48); in arch_perf_synthesize_sample_weight()
/tools/perf/trace/beauty/
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/mm/
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/
Dsample_map_ret0.bpf.c17 } array SEC(".maps");
29 value = bpf_map_lookup_elem(&array, &key64); in func()
/tools/lib/perf/Documentation/
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/
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/lib/perf/
Dthreadmap.c45 struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array) in perf_thread_map__new_array() argument
54 perf_thread_map__set_pid(threads, i, array ? array[i] : -1); in perf_thread_map__new_array()

12345