/tools/testing/selftests/kvm/include/ |
D | evmcs.h | 249 static inline int evmcs_vmptrst(uint64_t *value) in evmcs_vmptrst() argument 251 *value = current_vp_assist->current_nested_vmcs & in evmcs_vmptrst() 257 static inline int evmcs_vmread(uint64_t encoding, uint64_t *value) in evmcs_vmread() argument 261 *value = current_evmcs->guest_rip; in evmcs_vmread() 264 *value = current_evmcs->guest_rsp; in evmcs_vmread() 267 *value = current_evmcs->guest_rflags; in evmcs_vmread() 270 *value = current_evmcs->host_ia32_pat; in evmcs_vmread() 273 *value = current_evmcs->host_ia32_efer; in evmcs_vmread() 276 *value = current_evmcs->host_cr0; in evmcs_vmread() 279 *value = current_evmcs->host_cr3; in evmcs_vmread() [all …]
|
/tools/power/x86/intel-speed-select/ |
D | isst-display.c | 79 char *value) in format_and_print_txt() argument 96 if (header && value) { in format_and_print_txt() 98 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt() 106 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument 113 format_and_print_txt(outf, level, header, value); in format_and_print() 133 if (value) { in format_and_print() 138 fprintf(outf, "\"%s\"", value); in format_and_print() 181 char value[256]; in _isst_pbf_display_information() local 187 snprintf(value, sizeof(value), "%d", in _isst_pbf_display_information() 189 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 unsigned long convert_unit(unsigned long value, char *unit) in convert_unit() argument 40 if (value > 1000) { in convert_unit() 41 value /= 1000; in convert_unit() 45 if (value > 1000) { in convert_unit() 46 value /= 1000; in convert_unit() [all …]
|
D | config.c | 75 static char value[1024]; in parse_value() local 82 if (len >= sizeof(value) - 1) in parse_value() 87 value[len] = 0; in parse_value() 88 return value; in parse_value() 104 value[len++] = ' '; in parse_value() 128 value[len++] = c; in parse_value() 135 value[len++] = c; in parse_value() 147 char *value; in get_value() local 164 value = NULL; in get_value() 168 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/ |
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() 105 if (bpf_map_lookup_elem(map_fd, &key, &value)) { in main() 124 if (bpf_map_lookup_elem(map_fd, &key, &value)) { in main() 129 if (value != 3) { in main() 130 printf("Unexpected data in the cgroup storage: %llu\n", value); in main() 135 value++; in main() 136 if (bpf_map_update_elem(map_fd, &key, &value, 0)) { in main() 147 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 …]
|
D | test_maps.c | 39 long long key, next_key, first_key, value; in test_hashmap() local 42 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap() 50 value = 1234; in test_hashmap() 52 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 54 value = 0; in test_hashmap() 56 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap() 61 assert(bpf_map_update_elem(fd, &key, &value, -1) == -1 && in test_hashmap() 65 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 69 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap() 72 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && in test_hashmap() [all …]
|
/tools/testing/selftests/networking/timestamping/ |
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/lib/api/fs/ |
D | fs.h | 31 int filename__read_int(const char *filename, int *value); 32 int filename__read_ull(const char *filename, unsigned long long *value); 33 int filename__read_xll(const char *filename, unsigned long long *value); 36 int filename__write_int(const char *filename, int value); 40 int sysctl__read_int(const char *sysctl, int *value); 41 int sysfs__read_int(const char *entry, int *value); 42 int sysfs__read_ull(const char *entry, unsigned long long *value); 43 int sysfs__read_xll(const char *entry, unsigned long long *value); 45 int sysfs__read_bool(const char *entry, bool *value); 47 int sysfs__write_int(const char *entry, int value);
|
D | fs.c | 301 int filename__read_int(const char *filename, int *value) in filename__read_int() argument 310 *value = atoi(line); in filename__read_int() 319 unsigned long long *value, int base) in filename__read_ull_base() argument 328 *value = strtoull(line, NULL, base); in filename__read_ull_base() 329 if (*value != ULLONG_MAX) in filename__read_ull_base() 341 int filename__read_xll(const char *filename, unsigned long long *value) in filename__read_xll() argument 343 return filename__read_ull_base(filename, value, 16); in filename__read_xll() 351 int filename__read_ull(const char *filename, unsigned long long *value) in filename__read_ull() argument 353 return filename__read_ull_base(filename, value, 0); in filename__read_ull() 406 int filename__write_int(const char *filename, int value) in filename__write_int() argument [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/testing/selftests/bpf/progs/ |
D | test_attach_probe.c | 12 __type(value, int); 18 const int key = 0, value = 1; in handle_sys_nanosleep_entry() local 20 bpf_map_update_elem(&results_map, &key, &value, 0); in handle_sys_nanosleep_entry() 27 const int key = 1, value = 2; in handle_sys_getpid_return() local 29 bpf_map_update_elem(&results_map, &key, &value, 0); in handle_sys_getpid_return() 36 const int key = 2, value = 3; in handle_uprobe_entry() local 38 bpf_map_update_elem(&results_map, &key, &value, 0); in handle_uprobe_entry() 45 const int key = 3, value = 4; in handle_uprobe_return() local 47 bpf_map_update_elem(&results_map, &key, &value, 0); in handle_uprobe_return()
|
D | sample_map_ret0.c | 24 long *value; in func() local 26 value = bpf_map_lookup_elem(&htab, &key); in func() 27 if (!value) in func() 29 value = bpf_map_lookup_elem(&array, &key64); in func() 30 if (!value) in func()
|
/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/wmi/ |
D | dell-smbios-example.c | 53 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument 73 *value = (__u16) strtol(buf, NULL, 16); in find_token() 112 __u16 value; in query_token() local 115 ret = find_token(token, &location, &value); in query_token() 120 return token_is_active(&location, &value, buffer); in query_token() 127 __u16 value; in activate_token() local 130 ret = find_token(token, &location, &value); in activate_token() 159 __u64 value = 0; in main() local 161 ret = query_buffer_size(&value); in main() 162 if (ret == EXIT_FAILURE || !value) { in main() [all …]
|
/tools/lib/subcmd/ |
D | parse-options.h | 105 void *value; member 124 …v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 125 …v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, b… 126 …h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, b… 129 .value = check_vtype(v, bool *), .help = (h), \ 131 …v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 132 …, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l), .value = check_vtype(v, u… 133 …v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), .value = (v), .help = (h)… 134 …v, h) { .type = OPTION_INTEGER, .short_name = (s), .long_name = (l), .value = check_vtype(v, i… 135 …v, h) { .type = OPTION_UINTEGER, .short_name = (s), .long_name = (l), .value = check_vtype(v, u… [all …]
|
/tools/arch/x86/lib/ |
D | insn.c | 126 insn->rex_prefix.value = b; in insn_get_prefixes() 264 modrm->value = mod; in insn_get_modrm() 303 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative() 322 modrm = (insn_byte_t)insn->modrm.value; in insn_get_sib() 325 insn->sib.value = get_next(insn_byte_t, insn); in insn_get_sib() 370 mod = X86_MODRM_MOD(insn->modrm.value); in insn_get_displacement() 371 rm = X86_MODRM_RM(insn->modrm.value); in insn_get_displacement() 372 base = X86_SIB_BASE(insn->sib.value); in insn_get_displacement() 376 insn->displacement.value = get_next(signed char, insn); in insn_get_displacement() 380 insn->displacement.value = in insn_get_displacement() [all …]
|
/tools/lib/bpf/ |
D | hashmap.h | 31 void *value; member 95 int hashmap__insert(struct hashmap *map, const void *key, void *value, 100 const void *key, void *value) in hashmap__add() argument 102 return hashmap__insert(map, key, value, HASHMAP_ADD, NULL, NULL); in hashmap__add() 106 const void *key, void *value, in hashmap__set() argument 109 return hashmap__insert(map, key, value, HASHMAP_SET, in hashmap__set() 114 const void *key, void *value, in hashmap__update() argument 117 return hashmap__insert(map, key, value, HASHMAP_UPDATE, in hashmap__update() 122 const void *key, void *value) in hashmap__append() argument 124 return hashmap__insert(map, key, value, HASHMAP_APPEND, NULL, NULL); in hashmap__append() [all …]
|