Home
last modified time | relevance | path

Searched refs:vals (Results 1 – 11 of 11) sorted by relevance

/tools/perf/tests/
Dparse-metric.c102 struct value *vals) in load_runtime_stat() argument
108 count = find_value(evsel->name, vals); in load_runtime_stat()
133 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument
174 load_runtime_stat(&st, evlist, vals); in __compute_metric()
192 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
194 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
197 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument
201 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group()
207 struct value vals[] = { in test_ipc() local
214 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c13 __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/perf/arch/x86/tests/
Dinsn-x86.c40 } vals[] = { in get_op() local
58 for (val = vals; val->name; val++) { in get_op()
73 } vals[] = { in get_branch() local
85 for (val = vals; val->name; val++) { in get_branch()
/tools/testing/selftests/arm64/pauth/
Dpac.c72 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/objtool/
Dcfi.h30 struct cfi_reg vals[CFI_NUM_REGS]; member
Dcheck.c255 cfi->vals[i].base = CFI_UNDEFINED; in init_cfi_state()
2388 cfi->vals[op->dest.reg].base = CFI_CFA; in update_cfi_state()
2389 cfi->vals[op->dest.reg].offset = -cfi->stack_size; in update_cfi_state()
2407 cfi->vals[op->src.reg].base == CFI_CFA) { in update_cfi_state()
2417 cfa->offset = -cfi->vals[op->src.reg].offset; in update_cfi_state()
2460 cfi->vals[op->dest.reg].base = CFI_CFA; in update_cfi_state()
2461 cfi->vals[op->dest.reg].offset = \ in update_cfi_state()
/tools/testing/selftests/bpf/
Dtest_maps.c529 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap() local
534 vals[i] = rand(); in test_queuemap()
555 assert(bpf_map_update_elem(fd, NULL, &vals[i], 0) == 0); in test_queuemap()
562 assert(bpf_map_lookup_elem(fd, NULL, &val) == 0 && val == vals[0]); in test_queuemap()
566 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_queuemap()
571 val == vals[i]); in test_queuemap()
587 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap() local
592 vals[i] = rand(); in test_stackmap()
613 assert(bpf_map_update_elem(fd, NULL, &vals[i], 0) == 0); in test_stackmap()
620 assert(bpf_map_lookup_elem(fd, NULL, &val) == 0 && val == vals[i - 1]); in test_stackmap()
[all …]
/tools/perf/util/
Dstat.c283 struct perf_counts_values *vals, int cpu, bool *skip) in check_per_pkg() argument
313 if (!(vals->run && vals->ena)) in check_per_pkg()
Dstat-display.c219 char buf[64], *vals, *ends; in print_metric_csv() local
226 ends = vals = skip_spaces(buf); in print_metric_csv()
230 fprintf(out, "%s%s%s%s", config->csv_sep, vals, config->csv_sep, skip_spaces(unit)); in print_metric_csv()
285 char buf[64], *vals, *ends; in print_metric_only_csv() local
292 ends = vals = skip_spaces(buf); in print_metric_only_csv()
296 fprintf(out, "%s%s", vals, config->csv_sep); in print_metric_only_csv()
/tools/perf/
Dbuiltin-diff.c1486 static int all_zero(unsigned long *vals, int len) in all_zero() argument
1491 if (vals[i] != 0) in all_zero()
/tools/power/pm-graph/
Dsleepgraph.py1110 vals = [dev]
1113 vals.append(prop.split('=')[-1])
1114 return ':'.join(vals)