Home
last modified time | relevance | path

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

1234

/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/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.c2201 const __u64 *array = event->sample.array; in perf_evsel__parse_id_sample() local
2205 array += ((event->header.size - in perf_evsel__parse_id_sample()
2209 sample->id = *array; in perf_evsel__parse_id_sample()
2210 array--; in perf_evsel__parse_id_sample()
2214 u.val64 = *array; in perf_evsel__parse_id_sample()
2222 array--; in perf_evsel__parse_id_sample()
2226 sample->stream_id = *array; in perf_evsel__parse_id_sample()
2227 array--; in perf_evsel__parse_id_sample()
2231 sample->id = *array; in perf_evsel__parse_id_sample()
2232 array--; in perf_evsel__parse_id_sample()
[all …]
Dsynthetic-events.c1553 __u64 *array, u64 type __maybe_unused) in arch_perf_synthesize_sample_weight() argument
1555 *array = data->weight; in arch_perf_synthesize_sample_weight()
1558 static __u64 *copy_read_group_values(__u64 *array, __u64 read_format, in copy_read_group_values() argument
1566 memcpy(array, v, sz); in copy_read_group_values()
1567 array = (void *)array + sz; in copy_read_group_values()
1569 return array; in copy_read_group_values()
1575 __u64 *array; in perf_event__synthesize_sample() local
1583 array = event->sample.array; in perf_event__synthesize_sample()
1586 *array = sample->id; in perf_event__synthesize_sample()
1587 array++; in perf_event__synthesize_sample()
[all …]
Dbpf_off_cpu.c36 u64 array[1024 / sizeof(u64)]; member
340 data.array[n++] = sid; in off_cpu_write()
343 data.array[n++] = 0; /* will be updated */ in off_cpu_write()
346 data.array[n++] = (u64)key.pid << 32 | key.tgid; in off_cpu_write()
348 data.array[n++] = tstamp; in off_cpu_write()
350 data.array[n++] = sid; in off_cpu_write()
352 data.array[n++] = 0; in off_cpu_write()
354 data.array[n++] = val; in off_cpu_write()
359 data.array[n + 1] = PERF_CONTEXT_USER; in off_cpu_write()
360 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/perf/arch/x86/util/
Devent.c83 const __u64 *array, u64 type) in arch_perf_parse_sample_weight() argument
87 weight.full = *array; in arch_perf_parse_sample_weight()
98 __u64 *array, u64 type) in arch_perf_synthesize_sample_weight() argument
100 *array = data->weight; in arch_perf_synthesize_sample_weight()
103 *array &= 0xffffffff; in arch_perf_synthesize_sample_weight()
104 *array |= ((u64)data->ins_lat << 32); in arch_perf_synthesize_sample_weight()
105 *array |= ((u64)data->retire_lat << 48); in arch_perf_synthesize_sample_weight()
/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/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/bpf/progs/
Dtest_global_func16.c19 int array[10]; in global_func16() local
21 const int rv = foo(&array); in global_func16()
Dsample_map_ret0.c17 } array SEC(".maps");
29 value = bpf_map_lookup_elem(&array, &key64); in func()
Dtest_subprogs.c12 } array SEC(".maps");
18 bpf_map_lookup_elem(&array, &key); in sub1()
38 bpf_map_lookup_elem(&array, &key); in sub4()
Dtest_global_map_resize.c16 int array[1]; variable
44 sum += array[i]; in bss_array_sum()
Dtimer.c40 } array SEC(".maps");
138 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
141 bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC); in BPF_PROG2()
156 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
159 bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC); in BPF_PROG2()
180 arr_timer = bpf_map_lookup_elem(&array, &array_key); in timer_cb2()
/tools/perf/
Dperf-completion.sh227 local -a array
234 array[${#array[@]}+1]="$c"
238 compadd -Q -S '' -a -- array && _ret=0
247 local -a array
258 array[$#array+1]=${c#"$colon_word"}
262 compadd -Q -S '' -a -- array && _ret=0
/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/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()
/tools/firewire/
Dnosy-dump.h5 #define array_length(array) (sizeof(array) / sizeof(array[0])) argument
/tools/testing/selftests/rseq/
Dparam_test.c380 struct percpu_buffer_node **array; member
397 struct percpu_memcpy_buffer_node *array; member
790 targetptr_spec = (intptr_t *)&buffer->c[cpu].array[offset]; in this_cpu_buffer_push()
825 head = RSEQ_READ_ONCE(buffer->c[cpu].array[offset - 1]); in this_cpu_buffer_pop()
830 (intptr_t *)&buffer->c[cpu].array[offset - 1], in this_cpu_buffer_pop()
854 head = buffer->c[cpu].array[offset - 1]; in __percpu_buffer_pop()
908 buffer.c[i].array = in test_percpu_buffer()
909 malloc(sizeof(*buffer.c[i].array) * CPU_SETSIZE * in test_percpu_buffer()
911 assert(buffer.c[i].array); in test_percpu_buffer()
928 buffer.c[i].array[j - 1] = node; in test_percpu_buffer()
[all …]
/tools/lib/api/fd/
DBuild1 libapi-y += array.o

1234