Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 163) sorted by relevance

1234567

/tools/perf/util/
A Dvalues.c16 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
17 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
18 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
19 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
23 values->threads = 0; in perf_read_values_init()
26 values->counters = malloc(values->counters_max * sizeof(*values->counters)); in perf_read_values_init()
48 if (!values->threads_max || !values->counters_max) in perf_read_values_destroy()
88 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
91 if (values->threads == values->threads_max) { in perf_read_values__findnew_thread()
99 values->value[i] = zalloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread()
[all …]
A Dcounts.c15 struct xyarray *values; in perf_counts__new() local
17 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
18 if (!values) { in perf_counts__new()
23 counts->values = values; in perf_counts__new()
25 values = xyarray__new(ncpus, nthreads, sizeof(bool)); in perf_counts__new()
26 if (!values) { in perf_counts__new()
27 xyarray__delete(counts->values); in perf_counts__new()
32 counts->loaded = values; in perf_counts__new()
42 xyarray__delete(counts->values); in perf_counts__delete()
50 xyarray__reset(counts->values); in perf_counts__reset()
A Dvalues.h20 int perf_read_values_init(struct perf_read_values *values);
21 void perf_read_values_destroy(struct perf_read_values *values);
23 int perf_read_values_add_value(struct perf_read_values *values,
27 void perf_read_values_display(FILE *fp, struct perf_read_values *values,
A Dbpf_counter_cgroup.c237 struct bpf_perf_event_value *values; in bperf_cgrp__read() local
245 values = calloc(total_cpus, sizeof(*values)); in bperf_cgrp__read()
246 if (values == NULL) in bperf_cgrp__read()
256 err = bpf_map_lookup_elem(reading_map_fd, &idx, values); in bperf_cgrp__read()
265 counts->val = values[cpu.cpu].counter; in bperf_cgrp__read()
266 counts->ena = values[cpu.cpu].enabled; in bperf_cgrp__read()
267 counts->run = values[cpu.cpu].running; in bperf_cgrp__read()
272 free(values); in bperf_cgrp__read()
/tools/testing/selftests/bpf/map_tests/
A Dhtab_map_batch_ops.c15 void *values, bool is_pcpu) in map_batch_update() argument
26 v = (value *)values; in map_batch_update()
34 ((int *)values)[i] = i + 2; in map_batch_update()
49 v = (value *)values; in map_batch_verify()
65 ((int *)values)[i]); in map_batch_verify()
86 void *values; in __test_map_lookup_and_delete_batch() local
100 values = pcpu_values; in __test_map_lookup_and_delete_batch()
110 values, &count, &opts); in __test_map_lookup_and_delete_batch()
155 values + in __test_map_lookup_and_delete_batch()
218 values + in __test_map_lookup_and_delete_batch()
[all …]
A Darray_map_batch_ops.c16 __s64 *values, bool is_pcpu) in map_batch_update() argument
30 (values + cpu_offset)[j] = i + 1 + j; in map_batch_update()
32 values[i] = i + 1; in map_batch_update()
41 __s64 *values, bool is_pcpu) in map_batch_verify() argument
51 __s64 value = (values + cpu_offset)[j]; in map_batch_verify()
60 values[i]); in map_batch_verify()
77 void *values; in __test_map_lookup_and_update_batch() local
93 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
104 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_update_batch()
115 values + total * value_size, in __test_map_lookup_and_update_batch()
[all …]
A Dlpm_trie_map_batch_ops.c23 struct test_lpm_key *keys, int *values) in map_batch_update() argument
37 values[i] = i + 1; in map_batch_update()
45 struct test_lpm_key *keys, int *values) in map_batch_verify() argument
56 CHECK(lower_byte != values[i], "key/value checking", in map_batch_verify()
70 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
87 values = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops()
94 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops()
95 map_batch_verify(visited, max_entries, keys, values); in test_lpm_trie_map_batch_ops()
97 memset(values, 0, max_entries * sizeof(*values)); in test_lpm_trie_map_batch_ops()
107 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops()
[all …]
/tools/gpio/
A Dgpio-hammer.c28 struct gpio_v2_line_values values; in hammer_device() local
46 values.mask = 0; in hammer_device()
47 values.bits = 0; in hammer_device()
49 gpiotools_set_bit(&values.mask, i); in hammer_device()
51 ret = gpiotools_get_values(fd, &values); in hammer_device()
63 fprintf(stdout, "%d", gpiotools_test_bit(values.bits, i)); in hammer_device()
74 gpiotools_change_bit(&values.bits, i); in hammer_device()
76 ret = gpiotools_set_values(fd, &values); in hammer_device()
81 ret = gpiotools_get_values(fd, &values); in hammer_device()
93 gpiotools_test_bit(values.bits, i)); in hammer_device()
A Dgpio-utils.c111 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_set_values() argument
115 ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values); in gpiotools_set_values()
135 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_get_values() argument
139 ret = ioctl(fd, GPIO_V2_LINE_GET_VALUES_IOCTL, values); in gpiotools_get_values()
206 unsigned int num_lines, unsigned int *values) in gpiotools_gets() argument
227 values[i] = gpiotools_test_bit(lv.bits, i); in gpiotools_gets()
264 unsigned int num_lines, unsigned int *values) in gpiotools_sets() argument
275 gpiotools_assign_bit(&config.attrs[0].attr.values, in gpiotools_sets()
276 i, values[i]); in gpiotools_sets()
A Dgpio-event-mon.c34 struct gpio_v2_line_values values; in monitor_device() local
59 values.mask = 0; in monitor_device()
60 values.bits = 0; in monitor_device()
62 gpiotools_set_bit(&values.mask, i); in monitor_device()
63 ret = gpiotools_get_values(lfd, &values); in monitor_device()
74 gpiotools_test_bit(values.bits, 0)); in monitor_device()
81 gpiotools_test_bit(values.bits, 0)); in monitor_device()
84 gpiotools_test_bit(values.bits, i)); in monitor_device()
86 gpiotools_test_bit(values.bits, i)); in monitor_device()
A Dgpio-utils.h32 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values);
33 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values);
38 unsigned int num_lines, unsigned int *values);
42 unsigned int num_lines, unsigned int *values);
/tools/testing/selftests/bpf/progs/
A Dtest_btf_map_in_map.c27 __array(values, struct {
41 .values = { (void *)&inner_map1, 0, (void *)&inner_map2 },
66 __array(values, struct {
74 .values = {
89 __array(values, struct inner_map);
91 .values = {
116 __array(values, struct sockarr_sz1);
118 .values = { (void *)&sockarr_sz1 },
A Dtailcall_bpf2bpf_hierarchy3.c12 __array(values, void (void));
14 .values = {
23 __array(values, void (void));
25 .values = {
A Dtest_ringbuf_multi.c27 __array(values, struct ringbuf_map);
29 .values = {
39 __array(values, struct ringbuf_map);
41 .values = {
A Daccess_map_in_map.c21 __array(values, struct inner_map_type);
23 .values = {
33 __array(values, struct inner_map_type);
35 .values = {
A Dtest_map_in_map.c38 __array(values, struct perf_event_array);
40 .values = {&inner_map0}};
46 __array(values, struct perf_event_array);
48 .values = {&inner_map0}};
A Dverifier_map_ptr_mixing.c34 __array(values, struct {
51 __array(values, void (void));
53 .values = {
64 __array(values, void (void));
66 .values = {
A Dfd_htab_lookup.c20 __array(values, struct inner_map_type);
22 .values = {
A Dtest_prog_array_init.c22 __array(values, int (void *));
24 .values = {
A Dupdate_map_in_htab.c18 __array(values, struct inner_map_type);
27 __array(values, struct inner_map_type);
/tools/testing/selftests/drivers/net/hw/
A Diou-zcrx.py18 values = re.findall(r'Combined:\s+(\d+)', output)
19 return int(values[1])
24 values = re.search(r'New RSS context is (\d+)', output).group(1)
25 ctx_id = int(values)
31 values = re.search(r'ID (\d+)', output).group(1)
32 return int(values)
37 values = re.search(r'ID (\d+)', output).group(1)
38 return int(values)
A Ddevlink_port_split.py84 values = list(json.loads(stdout)['port'].values())[0]
86 if 'lanes' in values:
87 lanes = values['lanes']
102 values = list(json.loads(stdout)['port'].values())[0]
104 return values['splittable']
232 if any(devlink_data.values()):
/tools/kvm/kvm_stat/
A Dkvm_stat944 self.values = {}
963 self.values = {}
968 self.values = {}
990 self.values = {}
1021 return self.values
1248 if values == (0, 0):
1306 cur = int(round(values.delta / sleeptime)) if values.delta else 0
1311 if values.delta:
1564 values.delta))
1619 def do_statline(opts, values):
[all …]
/tools/testing/selftests/bpf/
A Dtest_bpftool.py89 for helpers in res["helpers"].values():
114 for helpers in tc["helpers"].values():
133 for helpers in tc["helpers"].values():
147 for helpers in full_res["helpers"].values():
151 for helpers in not_full_res["helpers"].values():
/tools/testing/selftests/cgroup/
A Dtest_zswap.c466 struct no_kmem_bypass_child_args *values = arg; in no_kmem_bypass_child() local
469 allocation = malloc(values->target_alloc_bytes); in no_kmem_bypass_child()
471 values->child_allocated = true; in no_kmem_bypass_child()
474 for (long i = 0; i < values->target_alloc_bytes; i += 4095) in no_kmem_bypass_child()
476 values->child_allocated = true; in no_kmem_bypass_child()
497 struct no_kmem_bypass_child_args *values; in test_no_kmem_bypass() local
512 values = mmap(0, sizeof(struct no_kmem_bypass_child_args), PROT_READ | in test_no_kmem_bypass()
514 if (values == MAP_FAILED) in test_no_kmem_bypass()
534 values->child_allocated = false; in test_no_kmem_bypass()
535 child_pid = cg_run_nowait(test_group, no_kmem_bypass_child, values); in test_no_kmem_bypass()
[all …]

Completed in 30 milliseconds

1234567