/tools/testing/selftests/kvm/include/x86_64/ |
D | evmcs.h | 251 static inline int evmcs_vmptrst(uint64_t *value) in evmcs_vmptrst() argument 253 *value = current_vp_assist->current_nested_vmcs & in evmcs_vmptrst() 259 static inline int evmcs_vmread(uint64_t encoding, uint64_t *value) in evmcs_vmread() argument 263 *value = current_evmcs->guest_rip; in evmcs_vmread() 266 *value = current_evmcs->guest_rsp; in evmcs_vmread() 269 *value = current_evmcs->guest_rflags; in evmcs_vmread() 272 *value = current_evmcs->host_ia32_pat; in evmcs_vmread() 275 *value = current_evmcs->host_ia32_efer; in evmcs_vmread() 278 *value = current_evmcs->host_cr0; in evmcs_vmread() 281 *value = current_evmcs->host_cr3; in evmcs_vmread() [all …]
|
/tools/power/x86/intel-speed-select/ |
D | isst-display.c | 85 char *value) in format_and_print_txt() argument 102 if (header && value) { in format_and_print_txt() 104 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt() 112 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument 119 format_and_print_txt(outf, level, header, value); in format_and_print() 139 if (value) { in format_and_print() 144 fprintf(outf, "\"%s\"", value); in format_and_print() 196 char value[512]; in _isst_pbf_display_information() local 202 snprintf(value, sizeof(value), "%d", in _isst_pbf_display_information() 204 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information() [all …]
|
/tools/perf/util/ |
D | units.c | 18 unsigned long int value; in parse_tag_value() local 21 value = strtoul(str, &endptr, 10); in parse_tag_value() 25 if (value > ULONG_MAX / i->mult) in parse_tag_value() 27 value *= i->mult; in parse_tag_value() 28 return value; in parse_tag_value() 36 double convert_unit_double(double value, char *unit) in convert_unit_double() argument 40 if (value > 1000.0) { in convert_unit_double() 41 value /= 1000.0; in convert_unit_double() 45 if (value > 1000.0) { in convert_unit_double() 46 value /= 1000.0; in convert_unit_double() [all …]
|
D | config.c | 76 static char value[1024]; in parse_value() local 83 if (len >= sizeof(value) - 1) in parse_value() 88 value[len] = 0; in parse_value() 89 return value; in parse_value() 105 value[len++] = ' '; in parse_value() 129 value[len++] = c; in parse_value() 136 value[len++] = c; in parse_value() 148 char *value; in get_value() local 165 value = NULL; in get_value() 169 value = parse_value(); in get_value() [all …]
|
D | color_config.c | 12 int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty) in perf_config_colorbool() argument 14 if (value) { in perf_config_colorbool() 15 if (!strcasecmp(value, "never")) in perf_config_colorbool() 17 if (!strcasecmp(value, "always")) in perf_config_colorbool() 19 if (!strcasecmp(value, "auto")) in perf_config_colorbool() 24 if (!perf_config_bool(var, value)) in perf_config_colorbool() 39 int perf_color_default_config(const char *var, const char *value, in perf_color_default_config() argument 43 perf_use_color_default = perf_config_colorbool(var, value, -1); in perf_color_default_config()
|
D | values.c | 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() 43 zfree(&values->value); in perf_read_values_init() 55 zfree(&values->value[i]); in perf_read_values_destroy() 56 zfree(&values->value); in perf_read_values_destroy() 70 *nvalue = realloc(values->value, nthreads_max * sizeof(*values->value)); in perf_read_values__enlarge_threads() 78 values->value = nvalue; in perf_read_values__enlarge_threads() 105 values->value[i] = zalloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread() 106 if (!values->value[i]) { in perf_read_values__findnew_thread() 135 u64 *value = realloc(values->value[i], counters_max * sizeof(**values->value)); in perf_read_values__enlarge_counters() local [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | lsm.c | 16 __type(value, __u64); 23 __type(value, __u64); 30 __type(value, __u64); 37 __type(value, __u64); 44 __type(value, __u64); 51 __type(value, __u64); 58 __type(value, __u64); 114 __u64 *value; in BPF_PROG() local 122 value = bpf_map_lookup_elem(&array, &key); in BPF_PROG() 123 if (value) in BPF_PROG() [all …]
|
D | test_sk_storage_trace_itself.c | 12 __type(value, int); 18 int *value; in BPF_PROG() local 20 value = bpf_sk_storage_get(&sk_stg_map, sk, 0, in BPF_PROG() 23 if (value) in BPF_PROG() 24 *value = 1; in BPF_PROG()
|
/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 43 void *value) in bpf_map_lookup_elem_with_ref_bit() argument 96 assert(!bpf_map_lookup_elem(mfd, &zero, value)); in bpf_map_lookup_elem_with_ref_bit() 161 unsigned long long key, value[nr_cpus]; in test_lru_sanity0() local 179 value[0] = 1234; in test_lru_sanity0() 184 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 185 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 189 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 in test_lru_sanity0() 193 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -1 && in test_lru_sanity0() 200 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -1 && in test_lru_sanity0() 204 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity0() [all …]
|
D | test_cgroup_storage.c | 42 unsigned long long value; in main() local 54 sizeof(value), 0, 0); in main() 61 sizeof(key), sizeof(value), 0, 0); in main() 90 if (bpf_map_lookup_elem(map_fd, &key, &value)) { in main() 109 if (bpf_map_lookup_elem(map_fd, &key, &value)) { in main() 114 if (value != 3) { in main() 115 printf("Unexpected data in the cgroup storage: %llu\n", value); in main() 120 value++; in main() 121 if (bpf_map_update_elem(map_fd, &key, &value, 0)) { in main() 132 if (bpf_map_lookup_elem(map_fd, &key, &value)) { in main() [all …]
|
D | test_lpm_map.c | 214 uint8_t *data, *value; in test_lpm_map() local 230 value = alloca(keysize + 1); in test_lpm_map() 231 memset(value, 0, keysize + 1); in test_lpm_map() 245 value[j] = rand() & 0xff; in test_lpm_map() 246 value[keysize] = rand() % (8 * keysize + 1); in test_lpm_map() 248 list = tlpm_add(list, value, value[keysize]); in test_lpm_map() 250 key->prefixlen = value[keysize]; in test_lpm_map() 251 memcpy(key->data, value, keysize); in test_lpm_map() 252 r = bpf_map_update_elem(map, key, value, 0); in test_lpm_map() 264 r = bpf_map_lookup_elem(map, key, value); in test_lpm_map() [all …]
|
/tools/testing/selftests/filesystems/fuse/ |
D | fd_bpf.c | 31 uint32_t value = *pvalue; in trace_daemon() local 33 bpf_printk("pid %u uid %u value %u", pid, uid, value); in trace_daemon() 34 value++; in trace_daemon() 35 bpf_map_update_elem(&test_map, &key, &value, BPF_ANY); in trace_daemon() 45 const struct fuse_getattr_in *fgi = fa->in_args[0].value; in trace_daemon() 52 const struct fuse_setattr_in *fsi = fa->in_args[0].value; in trace_daemon() 64 const struct fuse_read_in *fri = fa->in_args[0].value; in trace_daemon() 71 const char *name = fa->in_args[0].value; in trace_daemon() 81 const struct fuse_mknod_in *fmi = fa->in_args[0].value; in trace_daemon() 82 const char *name = fa->in_args[1].value; in trace_daemon() [all …]
|
D | test_bpf.c | 12 const struct fuse_read_in *fri = fa->in_args[0].value; in readdir_test() 19 const struct fuse_read_in *fri = fa->in_args[0].value; in readdir_test() 38 const char *name = fa->in_args[0].value; in partial_test() 59 const char *name = fa->in_args[0].value; in partial_test() 60 struct fuse_entry_out *feo = fa->out_args[0].value; in partial_test() 81 const struct fuse_mknod_in *fmi = fa->in_args[0].value; in partial_test() 82 const char *name = fa->in_args[1].value; in partial_test() 89 const struct fuse_mkdir_in *fmi = fa->in_args[0].value; in partial_test() 90 const char *name = fa->in_args[1].value; in partial_test() 97 const char *name = fa->in_args[0].value; in partial_test() [all …]
|
/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 22 int value; in lookup_value() local 24 for (value = 0; value < size; value++) in lookup_value() 25 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value() 26 return value; in lookup_value() 32 lookup_name(const char **names, int size, int value) in lookup_name() argument 34 return (value >= 0 && value < size) ? names[value] : NULL; in lookup_name() 39 int value; in list_names() local 41 for (value = 0; value < size; value++) in list_names() 42 if (names[value]) in list_names() 43 fprintf(f, " %s\n", names[value]); in list_names()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | lookup_and_delete.c | 15 __u64 key, value = START_VALUE; in fill_values() local 19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values() 29 __u64 key, value[nr_cpus]; in fill_values_percpu() local 33 value[i] = START_VALUE; in fill_values_percpu() 36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu() 79 __u64 value) in trigger_tp() argument 85 skel->bss->set_value = value; in trigger_tp() 101 __u64 key, value; in test_lookup_and_delete_hash() local 115 err = bpf_map_lookup_and_delete_elem(map_fd, &key, &value); in test_lookup_and_delete_hash() 120 if (CHECK(value != START_VALUE, "bpf_map_lookup_and_delete_elem", in test_lookup_and_delete_hash() [all …]
|
D | map_init.c | 22 pcpu_map_value_t value[nr_cpus]; in map_populate() local 27 bpf_percpu(value, i) = FILL_VALUE; in map_populate() 30 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in map_populate() 79 map_value_t value) in prog_run_insert_elem() argument 86 bss->inValue = value; in prog_run_insert_elem() 100 static int check_values_one_cpu(pcpu_map_value_t *value, map_value_t expected) in check_values_one_cpu() argument 106 val = bpf_percpu(value, i); in check_values_one_cpu() 131 pcpu_map_value_t value[nr_cpus]; in test_pcpu_map_init() local 153 err = bpf_map_lookup_elem(map_fd, &key, value); in test_pcpu_map_init() 158 check_values_one_cpu(value, TEST_VALUE); in test_pcpu_map_init() [all …]
|
/tools/perf/ |
D | builtin-config.c | 62 if (item->value) in set_config() 64 item->name, item->value); in set_config() 88 char *value = item->value; in show_spec_config() local 90 if (value) { in show_spec_config() 91 printf("%s=%s\n", var, value); in show_spec_config() 111 char *value = item->value; in show_config() local 113 if (value) in show_config() 115 item->name, value); in show_config() 121 static int parse_config_arg(char *arg, char **var, char **value) in parse_config_arg() argument 138 *value = strchr(arg, '='); in parse_config_arg() [all …]
|
/tools/lib/api/fs/ |
D | fs.h | 45 int filename__read_int(const char *filename, int *value); 46 int filename__read_ull(const char *filename, unsigned long long *value); 47 int filename__read_xll(const char *filename, unsigned long long *value); 50 int filename__write_int(const char *filename, int value); 54 int sysctl__read_int(const char *sysctl, int *value); 55 int sysfs__read_int(const char *entry, int *value); 56 int sysfs__read_ull(const char *entry, unsigned long long *value); 57 int sysfs__read_xll(const char *entry, unsigned long long *value); 59 int sysfs__read_bool(const char *entry, bool *value); 61 int sysfs__write_int(const char *entry, int value);
|
D | fs.c | 320 int filename__read_int(const char *filename, int *value) in filename__read_int() argument 329 *value = atoi(line); in filename__read_int() 338 unsigned long long *value, int base) in filename__read_ull_base() argument 347 *value = strtoull(line, NULL, base); in filename__read_ull_base() 348 if (*value != ULLONG_MAX) in filename__read_ull_base() 360 int filename__read_xll(const char *filename, unsigned long long *value) in filename__read_xll() argument 362 return filename__read_ull_base(filename, value, 16); in filename__read_xll() 370 int filename__read_ull(const char *filename, unsigned long long *value) in filename__read_ull() argument 372 return filename__read_ull_base(filename, value, 0); in filename__read_ull() 425 int filename__write_int(const char *filename, int value) in filename__write_int() argument [all …]
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Core.py | 20 def define_flag_value(event_name, field_name, value, field_str): argument 21 flag_fields[event_name][field_name]['values'][value] = field_str 27 def define_symbolic_value(event_name, field_name, value, field_str): argument 28 symbolic_fields[event_name][field_name]['values'][value] = field_str 30 def flag_str(event_name, field_name, value): argument 36 if not value and not idx: 39 if idx and (value & idx) == idx: 44 value &= ~idx 48 def symbol_str(event_name, field_name, value): argument 53 if not value and not idx: [all …]
|
D | Util.py | 36 def add_stats(dict, key, value): argument 38 dict[key] = (value, value, value, 1) 41 if value < min: 42 min = value 43 if value > max: 44 max = value 45 avg = (avg + value) / 2
|
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Core.pm | 33 my ($value) = @_; 40 if (!$value && !$idx) { 45 if ($idx && ($value & $idx) == $idx) { 51 $value &= ~$idx; 63 my ($event_name, $field_name, $value) = @_; 70 if (!$value && !$idx) { 74 if ($idx && ($value & $idx) == $idx) { 80 $value &= ~$idx; 97 my ($event_name, $field_name, $value, $field_str) = @_; 99 $flag_fields{$event_name}{$field_name}{"values"}{$value} = $field_str; [all …]
|
/tools/testing/fault-injection/ |
D | failcmd.sh | 27 Default value is 1 29 -t value 30 --times=value 32 Default value is 1 34 --oom-kill-allocating-task=value 35 set /proc/sys/vm/oom_kill_allocating_task to specified value 37 Default value is 1 42 --interval=value, --space=value, --verbose=value, --task-filter=value, 43 --stacktrace-depth=value, --require-start=value, --require-end=value, 44 --reject-start=value, --reject-end=value, --ignore-gfp-wait=value [all …]
|
/tools/power/cpupower/utils/helpers/ |
D | cpuid.c | 49 char value[64]; in get_cpu_info() local 67 if (!fgets(value, 64, fp)) in get_cpu_info() 69 value[63 - 1] = '\0'; in get_cpu_info() 71 if (!strncmp(value, "processor\t: ", 12)) in get_cpu_info() 72 sscanf(value, "processor\t: %u", &proc); in get_cpu_info() 78 if (!strncmp(value, "vendor_id", 9)) { in get_cpu_info() 80 if (strstr(value, cpu_vendor_table[x])) in get_cpu_info() 84 } else if (!strncmp(value, "cpu family\t: ", 13)) { in get_cpu_info() 85 sscanf(value, "cpu family\t: %u", in get_cpu_info() 87 } else if (!strncmp(value, "model\t\t: ", 9)) { in get_cpu_info() [all …]
|
/tools/crypto/ |
D | gen_fips140_testvecs.py | 41 def is_string_value(value): argument 42 return (value.isascii() and 43 all(c == '\x00' or c.isprintable() for c in str(value, 'ascii'))) 45 def format_value(value, is_string): argument 47 return value 49 for byte in value: 53 def print_value(name, value): argument 54 is_string = is_string_value(value) 58 value = str(value, 'ascii').rstrip('\x00') 64 if len(hdr) + (chars_per_byte * len(value)) + 4 <= 80: [all …]
|