/tools/perf/tests/ |
D | parse-metric.c | 107 struct value *vals) in load_runtime_stat() argument 113 count = find_value(evsel->name, vals); in load_runtime_stat() 140 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument 181 load_runtime_stat(&st, evlist, vals); in __compute_metric() 199 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 201 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 204 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument 208 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group() 214 struct value vals[] = { in test_ipc() local 221 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | queue_stack_map.c | 13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local 21 vals[i] = rand(); in test_queue_stack_map_by_type() 44 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type() 54 val = vals[i]; in test_queue_stack_map_by_type() 55 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type() 57 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 84 if (err || val != vals[i] * 5) in test_queue_stack_map_by_type() 88 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup-cdev.c | 48 struct gpio_v2_line_values vals; in get_value_v2() local 51 memset(&vals, 0, sizeof(vals)); in get_value_v2() 52 vals.mask = 1; in get_value_v2() 53 ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals); in get_value_v2() 56 return vals.bits & 0x1; in get_value_v2() 81 struct gpiohandle_data vals; in get_value_v1() local 84 memset(&vals, 0, sizeof(vals)); in get_value_v1() 85 ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals); in get_value_v1() 88 return vals.values[0]; in get_value_v1()
|
/tools/testing/selftests/arm64/pauth/ |
D | pac.c | 72 size_t vals[nkeys]; in n_same_single_set() local 75 vals[0] = sign->keyia & PAC_MASK; in n_same_single_set() 76 vals[1] = sign->keyib & PAC_MASK; in n_same_single_set() 77 vals[2] = sign->keyda & PAC_MASK; in n_same_single_set() 78 vals[3] = sign->keydb & PAC_MASK; in n_same_single_set() 81 vals[4] = sign->keyg & PAC_MASK; in n_same_single_set() 85 if (vals[i] == vals[j]) in n_same_single_set()
|
/tools/perf/arch/x86/tests/ |
D | insn-x86.c | 40 } vals[] = { in get_op() local 59 for (val = vals; val->name; val++) { in get_op() 74 } vals[] = { in get_branch() local 86 for (val = vals; val->name; val++) { in get_branch()
|
/tools/objtool/include/objtool/ |
D | cfi.h | 30 struct cfi_reg vals[CFI_NUM_REGS]; member
|
/tools/testing/selftests/bpf/ |
D | test_maps.c | 546 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap() local 551 vals[i] = rand(); in test_queuemap() 572 assert(bpf_map_update_elem(fd, NULL, &vals[i], 0) == 0); in test_queuemap() 579 assert(bpf_map_lookup_elem(fd, NULL, &val) == 0 && val == vals[0]); in test_queuemap() 583 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_queuemap() 588 val == vals[i]); in test_queuemap() 604 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap() local 609 vals[i] = rand(); in test_stackmap() 630 assert(bpf_map_update_elem(fd, NULL, &vals[i], 0) == 0); in test_stackmap() 637 assert(bpf_map_lookup_elem(fd, NULL, &val) == 0 && val == vals[i - 1]); in test_stackmap() [all …]
|
/tools/perf/util/ |
D | stat.c | 297 struct perf_counts_values *vals, int cpu, bool *skip) in check_per_pkg() argument 328 if (!(vals->run && vals->ena)) in check_per_pkg()
|
D | stat-display.c | 223 char buf[64], *vals, *ends; in print_metric_csv() local 230 ends = vals = skip_spaces(buf); in print_metric_csv() 234 fprintf(out, "%s%s%s%s", config->csv_sep, vals, config->csv_sep, skip_spaces(unit)); in print_metric_csv() 289 char buf[64], *vals, *ends; in print_metric_only_csv() local 296 ends = vals = skip_spaces(buf); in print_metric_only_csv() 300 fprintf(out, "%s%s", vals, config->csv_sep); in print_metric_only_csv()
|
/tools/objtool/ |
D | check.c | 256 cfi->vals[i].base = CFI_UNDEFINED; in init_cfi_state() 2406 cfi->vals[op->dest.reg].base = CFI_CFA; in update_cfi_state() 2407 cfi->vals[op->dest.reg].offset = -cfi->stack_size; in update_cfi_state() 2425 cfi->vals[op->src.reg].base == CFI_CFA) { in update_cfi_state() 2435 cfa->offset = -cfi->vals[op->src.reg].offset; in update_cfi_state() 2439 cfi->vals[op->src.reg].base == CFI_SP_INDIRECT && in update_cfi_state() 2440 cfi->vals[op->src.reg].offset == cfa->offset) { in update_cfi_state() 2477 cfi->vals[op->src.reg].base == CFI_SP_INDIRECT && in update_cfi_state() 2478 cfi->vals[op->src.reg].offset == cfa->offset) { in update_cfi_state() 2524 cfi->vals[op->dest.reg].base = CFI_CFA; in update_cfi_state() [all …]
|
/tools/perf/ |
D | builtin-diff.c | 1487 static int all_zero(unsigned long *vals, int len) in all_zero() argument 1492 if (vals[i] != 0) in all_zero()
|
/tools/power/pm-graph/ |
D | sleepgraph.py | 1136 vals = [dev] 1139 vals.append(prop.split('=')[-1]) 1140 return ':'.join(vals)
|