Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 824) sorted by relevance

12345678910>>...33

/tools/testing/selftests/bpf/test_kmods/
A Dbpf_testmod.h30 s64 value; member
57 int (*tramp_1)(int value);
58 int (*tramp_2)(int value);
59 int (*tramp_3)(int value);
60 int (*tramp_4)(int value);
61 int (*tramp_5)(int value);
62 int (*tramp_6)(int value);
63 int (*tramp_7)(int value);
64 int (*tramp_8)(int value);
65 int (*tramp_9)(int value);
[all …]
/tools/perf/arch/powerpc/annotate/
A Dinstructions.c58 int value; member
82 { .name = "OP_31_XOP_LDX", .value = 21, },
83 { .name = "OP_31_XOP_LWZX", .value = 23, },
176 { .name = "mulli", .value = 7, },
177 { .name = "subfic", .value = 8, },
178 { .name = "addic", .value = 12, },
179 { .name = "addic.", .value = 13, },
180 { .name = "addi", .value = 14, },
181 { .name = "addis", .value = 15, },
189 return (val1->value - val2->value); in cmp_offset()
[all …]
/tools/testing/selftests/kvm/include/x86/
A Devmcs.h280 *value = current_evmcs->guest_rip; in evmcs_vmread()
283 *value = current_evmcs->guest_rsp; in evmcs_vmread()
295 *value = current_evmcs->host_cr0; in evmcs_vmread()
298 *value = current_evmcs->host_cr3; in evmcs_vmread()
301 *value = current_evmcs->host_cr4; in evmcs_vmread()
310 *value = current_evmcs->host_rip; in evmcs_vmread()
430 *value = current_evmcs->host_rsp; in evmcs_vmread()
699 current_evmcs->host_cr0 = value; in evmcs_vmwrite()
703 current_evmcs->host_cr3 = value; in evmcs_vmwrite()
707 current_evmcs->host_cr4 = value; in evmcs_vmwrite()
[all …]
/tools/power/x86/intel-speed-select/
A Disst-display.c228 snprintf(value, sizeof(value), "%d", in _isst_pbf_display_information()
238 printcpulist(sizeof(value), value, in _isst_pbf_display_information()
244 snprintf(value, sizeof(value), "%d", in _isst_pbf_display_information()
301 snprintf(value, sizeof(value), "%d", in _isst_fact_display_information()
313 snprintf(value, sizeof(value), "%d", in _isst_fact_display_information()
332 snprintf(value, sizeof(value), "%d", in _isst_fact_display_information()
397 printcpumask(sizeof(value), value, in isst_ctdp_display_information()
403 printcpulist(sizeof(value), value, in isst_ctdp_display_information()
417 snprintf(value, sizeof(value), "%d", in isst_ctdp_display_information()
423 snprintf(value, sizeof(value), "%d", in isst_ctdp_display_information()
[all …]
/tools/perf/util/
A Dunits.c18 unsigned long int value; in parse_tag_value() local
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()
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()
50 if (value > 1000.0) { in convert_unit_double()
51 value /= 1000.0; in convert_unit_double()
[all …]
A Dconfig.c165 char *value; in get_value() local
182 value = NULL; in get_value()
187 if (!value) in get_value()
336 if (value && *value) { in perf_parse_llong()
351 if (value && *value) { in perf_parse_long()
412 if (!value) in perf_config_bool_or_int()
414 if (!*value) in perf_config_bool_or_int()
416 if (!strcasecmp(value, "true") || !strcasecmp(value, "yes") || !strcasecmp(value, "on")) in perf_config_bool_or_int()
418 if (!strcasecmp(value, "false") || !strcasecmp(value, "no") || !strcasecmp(value, "off")) in perf_config_bool_or_int()
824 char *value = item->value; in perf_config_set() local
[all …]
A Dcolor_config.c12 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()
/tools/testing/selftests/bpf/progs/
A Dlsm.c125 if (value) in BPF_PROG()
126 *value = 0; in BPF_PROG()
128 if (value) in BPF_PROG()
129 *value = 0; in BPF_PROG()
131 if (value) in BPF_PROG()
132 *value = 0; in BPF_PROG()
134 if (value) in BPF_PROG()
137 if (value) in BPF_PROG()
140 if (value) in BPF_PROG()
145 if (value) in BPF_PROG()
[all …]
A Dbpf_iter_map_elem.c14 __u32 value = 0; in dump_bpf_map_values() local
16 if (ctx->value == (void *)0) in dump_bpf_map_values()
19 bpf_probe_read_kernel(&value, sizeof(value), ctx->value); in dump_bpf_map_values()
20 value_sum += value; in dump_bpf_map_values()
A Dfree_timer.c17 __type(value, struct map_value);
21 static int timer_cb(void *map, void *key, struct map_value *value) in timer_cb() argument
33 struct map_value *value; in start_cb() local
35 value = bpf_map_lookup_elem(&map, (void *)&key); in start_cb()
36 if (!value) in start_cb()
39 bpf_timer_init(&value->timer, &map, CLOCK_MONOTONIC); in start_cb()
40 bpf_timer_set_callback(&value->timer, timer_cb); in start_cb()
42 bpf_timer_start(&value->timer, 100000, BPF_F_TIMER_CPU_PIN); in start_cb()
A Dnormal_map_btf.c23 __type(value, struct map_value);
35 struct map_value *value; in add_to_list_in_array() local
42 value = bpf_map_lookup_elem(&array, &zero); in add_to_list_in_array()
43 if (!value) in add_to_list_in_array()
50 bpf_spin_lock(&value->lock); in add_to_list_in_array()
51 bpf_list_push_back(&value->head, &new->node); in add_to_list_in_array()
52 bpf_spin_unlock(&value->lock); in add_to_list_in_array()
/tools/testing/selftests/bpf/
A Dtest_lru_map.c43 void *value) in bpf_map_lookup_elem_with_ref_bit() argument
181 value[0] = 1234; in test_lru_sanity0()
279 value[0] = 1234; in test_lru_sanity1()
348 value[0] = 1234; in test_lru_sanity2()
379 value[0] = 4321; in test_lru_sanity2()
390 value[0] = 1234; in test_lru_sanity2()
452 value[0] = 1234; in test_lru_sanity3()
511 value[0] = 1234; in test_lru_sanity4()
553 value[0] = 1234; in do_test_lru_sanity5()
579 value[0] = 1234; in test_lru_sanity5()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dlookup_and_delete.c33 value[i] = START_VALUE; in fill_values_percpu()
79 __u64 value) in trigger_tp() argument
101 __u64 key, value; in test_lookup_and_delete_hash() local
116 &key, sizeof(key), &value, sizeof(value), 0); in test_lookup_and_delete_hash()
152 &key, sizeof(key), value, sizeof(value), 0); in test_lookup_and_delete_percpu_hash()
157 val = value[i]; in test_lookup_and_delete_percpu_hash()
177 __u64 key, value; in test_lookup_and_delete_lru_hash() local
197 &key, sizeof(key), &value, sizeof(value), 0); in test_lookup_and_delete_lru_hash()
243 value[i] = 0; in test_lookup_and_delete_lru_percpu_hash()
247 &key, sizeof(key), value, sizeof(value), 0); in test_lookup_and_delete_lru_percpu_hash()
[all …]
/tools/testing/selftests/filesystems/eventfd/
A Deventfd_test.c205 size = write(fd, &value, sizeof(value)); in TEST()
209 size = write(fd, &value, sizeof(value)); in TEST()
233 size = read(fd, &value, sizeof(value)); in TEST()
258 value = 1; in TEST()
260 size = write(fd, &value, sizeof(value)); in TEST()
264 size = read(fd, &value, sizeof(value)); in TEST()
268 size = read(fd, &value, sizeof(value)); in TEST()
292 value = 1; in TEST()
294 size = write(fd, &value, sizeof(value)); in TEST()
299 size = read(fd, &value, sizeof(value)); in TEST()
[all …]
/tools/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_basic_ops.c267 list = tlpm_add(list, value, value[keysize]); in test_lpm_map()
376 value = 1; in test_lpm_ipaddr()
381 value = 2; in test_lpm_ipaddr()
386 value = 3; in test_lpm_ipaddr()
391 value = 5; in test_lpm_ipaddr()
396 value = 4; in test_lpm_ipaddr()
469 value = 1; in test_lpm_delete()
474 value = 2; in test_lpm_delete()
479 value = 3; in test_lpm_delete()
484 value = 4; in test_lpm_delete()
[all …]
/tools/testing/selftests/net/
A Dhwtstamp_config.c24 int value; in lookup_value() local
26 for (value = 0; value < size; value++) in lookup_value()
27 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value()
28 return value; in lookup_value()
34 lookup_name(const char **names, int size, int value) in lookup_name() argument
36 return (value >= 0 && value < size) ? names[value] : NULL; in lookup_name()
41 int value; in list_names() local
43 for (value = 0; value < size; value++) in list_names()
44 if (names[value]) in list_names()
45 fprintf(f, " %s\n", names[value]); in list_names()
A Dsample_map_ret0.bpf.c8 __type(value, long);
15 __type(value, long);
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/
A Dbuiltin-config.c63 if (item->value) in set_config()
89 char *value = item->value; in show_spec_config() local
91 if (value) { in show_spec_config()
112 char *value = item->value; in show_config() local
114 if (value) in show_config()
139 *value = strchr(arg, '='); in parse_config_arg()
140 if (*value == NULL) in parse_config_arg()
146 *value = *value + 1; /* excluding a first character '=' */ in parse_config_arg()
251 char *var, *value; in cmd_config() local
264 if (value == NULL) { in cmd_config()
[all …]
/tools/testing/fault-injection/
A Dfailcmd.sh27 Default value is 1
29 -t value
30 --times=value
32 Default value is 1
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
49 --cache-filter=value
52 --ignore-gfp-highmem=value, --min-order=value
[all …]
/tools/lib/api/fs/
A Dfs.h45 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);
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DCore.py30 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:
56 if (value == idx):
69 def trace_flag_str(value): argument
74 if not value and not idx:
78 if idx and (value & idx) == idx:
[all …]
/tools/testing/selftests/drivers/net/
A Dxdp.py134 def format_hex_bytes(value): argument
148 def _set_xdp_map(map_name, key, value): argument
212 _set_xdp_map("map_xdp_setup", TestConfig.MODE.value, XDPAction.PASS.value)
219 ksft_eq(stats[XDPStats.RX.value], stats[XDPStats.PASS.value], "RX and PASS stats mismatch")
259 _set_xdp_map("map_xdp_setup", TestConfig.MODE.value, XDPAction.DROP.value)
266 ksft_eq(stats[XDPStats.RX.value], stats[XDPStats.DROP.value], "RX and DROP stats mismatch")
306 _set_xdp_map("map_xdp_setup", TestConfig.MODE.value, XDPAction.TX.value)
371 if stats[XDPStats.ABORT.value] != 0:
381 if stats[XDPStats.RX.value] != stats[XDPStats.PASS.value]:
411 _set_xdp_map("map_xdp_setup", TestConfig.MODE.value, XDPAction.TAIL_ADJST.value)
[all …]
/tools/testing/selftests/hid/tests/
A Dtest_apple_keyboard.py178 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0
202 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
210 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
211 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
234 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
249 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
274 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
299 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
300 assert evdev.value[libevdev.EV_KEY.KEY_F6] == 1
301 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
[all …]
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
A DCore.pm33 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;
118 my ($event_name, $field_name, $value) = @_;
122 if (!$value && !$idx) {
[all …]
/tools/testing/kunit/
A Dkunit_config.py19 value: str
22 if self.value == 'n':
46 for name, value in self._entries.items():
47 yield KconfigEntry(name, value)
50 self._entries[name] = value
53 for name, value in self._entries.items():
56 if value == 'n':
59 if value != b:
65 for name, value in self._entries.items():
67 if b and value != b:
[all …]

Completed in 49 milliseconds

12345678910>>...33