| /tools/perf/util/ |
| D | values.c | 12 int perf_read_values_init(struct perf_read_values *values) in perf_read_values_init() argument 14 values->threads_max = 16; in perf_read_values_init() 15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init() 16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init() 17 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init() 18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init() 22 values->threads = 0; in perf_read_values_init() 24 values->counters_max = 16; in perf_read_values_init() 25 values->counterrawid = malloc(values->counters_max in perf_read_values_init() 26 * sizeof(*values->counterrawid)); in perf_read_values_init() [all …]
|
| D | counts.c | 15 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()
|
| D | values.h | 19 int perf_read_values_init(struct perf_read_values *values); 20 void perf_read_values_destroy(struct perf_read_values *values); 22 int perf_read_values_add_value(struct perf_read_values *values, 26 void perf_read_values_display(FILE *fp, struct perf_read_values *values,
|
| D | bpf_counter_cgroup.c | 237 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()
|
| D | bpf_counter.c | 234 struct bpf_perf_event_value values[num_cpu_bpf]; in bpf_program_profiler__read() local 256 err = bpf_map_lookup_elem(reading_map_fd, &key, values); in bpf_program_profiler__read() 268 counts->val += values[bpf_cpu].counter; in bpf_program_profiler__read() 269 counts->ena += values[bpf_cpu].enabled; in bpf_program_profiler__read() 270 counts->run += values[bpf_cpu].running; in bpf_program_profiler__read() 617 struct bpf_perf_event_value values[num_cpu_bpf]; in bperf__read() local 630 err = bpf_map_lookup_elem(reading_map_fd, &i, values); in bperf__read() 639 counts->val = values[entry.cpu].counter; in bperf__read() 640 counts->ena = values[entry.cpu].enabled; in bperf__read() 641 counts->run = values[entry.cpu].running; in bperf__read() [all …]
|
| /tools/testing/selftests/bpf/map_tests/ |
| D | htab_map_batch_ops.c | 15 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() 37 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 42 int *keys, void *values, bool is_pcpu) in map_batch_verify() argument 49 v = (value *)values; in map_batch_verify() 62 CHECK(keys[i] + 1 != ((int *)values)[i], 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() [all …]
|
| D | array_map_batch_ops.c | 16 __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() 36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); 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() 58 CHECK(keys[i] + 1 != values[i], "key/value checking", 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() [all …]
|
| D | lpm_trie_map_batch_ops.c | 23 struct test_lpm_key *keys, int *values) in map_batch_update() argument 37 values[i] = i + 1; in map_batch_update() 40 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); 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() 57 "error: i %d key %s value %d\n", i, buff, values[i]); 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() 89 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in test_lpm_trie_map_batch_ops() 94 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops() [all …]
|
| /tools/gpio/ |
| D | gpio-hammer.c | 28 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()
|
| D | gpio-utils.c | 111 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()
|
| D | gpio-event-mon.c | 34 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()
|
| D | gpio-utils.h | 32 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/ |
| D | test_btf_map_in_map.c | 27 __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 },
|
| D | tailcall_bpf2bpf_hierarchy3.c | 12 __array(values, void (void)); 14 .values = { 23 __array(values, void (void)); 25 .values = {
|
| D | test_ringbuf_multi.c | 27 __array(values, struct ringbuf_map); 29 .values = { 39 __array(values, struct ringbuf_map); 41 .values = {
|
| D | access_map_in_map.c | 21 __array(values, struct inner_map_type); 23 .values = { 33 __array(values, struct inner_map_type); 35 .values = {
|
| D | test_map_in_map.c | 38 __array(values, struct perf_event_array); 40 .values = {&inner_map0}}; 46 __array(values, struct perf_event_array); 48 .values = {&inner_map0}};
|
| D | verifier_map_ptr_mixing.c | 34 __array(values, struct { 51 __array(values, void (void)); 53 .values = { 64 __array(values, void (void)); 66 .values = {
|
| D | test_prog_array_init.c | 22 __array(values, int (void *)); 24 .values = {
|
| D | inner_array_lookup.c | 17 __array(values, struct inner_map); 19 .values = {
|
| D | epilogue_tailcall.c | 30 __array(values, void (void)); 32 .values = {
|
| /tools/testing/selftests/drivers/net/hw/ |
| D | devlink_port_split.py | 84 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/ |
| D | kvm_stat | 944 self.values = {} 963 self.values = {} 968 self.values = {} 990 self.values = {} 1017 oldval = self.values.get(key, EventStat(0, 0)).value 1020 self.values[key] = EventStat(newval, newdelta) 1021 return self.values 1038 if key in self.values.keys(): 1039 del self.values[key] 1041 oldvals = self.values.copy() [all …]
|
| /tools/testing/selftests/bpf/ |
| D | test_bpftool.py | 89 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/ |
| D | test_zswap.c | 466 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() 520 values->target_alloc_bytes = (sys_info.totalram - min_free_kb_high * 1000) + in test_no_kmem_bypass() 534 values->child_allocated = false; in test_no_kmem_bypass() [all …]
|