Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 17 of 17) sorted by relevance

/tools/testing/selftests/kvm/include/
A Dmemstress.h59 uint64_t vcpu_memory_bytes, int slots,
74 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots);
75 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots);
76 void memstress_get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots);
78 int slots, uint64_t pages_per_slot);
79 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot);
80 void memstress_free_bitmaps(unsigned long *bitmaps[], int slots);
/tools/testing/selftests/kvm/lib/
A Dmemstress.c125 uint64_t vcpu_memory_bytes, int slots, in memstress_create_vm() argument
154 TEST_ASSERT(guest_num_pages % slots == 0, in memstress_create_vm()
156 slots); in memstress_create_vm()
208 for (i = 0; i < slots; i++) { in memstress_create_vm()
326 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
336 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging()
341 toggle_dirty_logging(vm, slots, false); in memstress_disable_dirty_logging()
348 for (i = 0; i < slots; i++) { in memstress_get_dirty_log()
360 for (i = 0; i < slots; i++) { in memstress_clear_dirty_log()
375 for (i = 0; i < slots; i++) { in memstress_alloc_bitmaps()
[all …]
/tools/testing/selftests/futex/functional/
A Dfutex_priv_hash.c32 static int futex_hash_slots_set(unsigned int slots) in futex_hash_slots_set() argument
34 return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, slots, 0); in futex_hash_slots_set()
42 static void futex_hash_slots_set_verify(int slots) in futex_hash_slots_set_verify() argument
46 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_verify()
48 ksft_test_result_fail("Failed to set slots to %d: %m\n", slots); in futex_hash_slots_set_verify()
52 if (ret != slots) { in futex_hash_slots_set_verify()
54 slots, ret); in futex_hash_slots_set_verify()
57 ksft_test_result_pass("SET and GET slots %d passed\n", slots); in futex_hash_slots_set_verify()
60 static void futex_hash_slots_set_must_fail(int slots) in futex_hash_slots_set_must_fail() argument
64 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_must_fail()
[all …]
/tools/testing/selftests/hid/tests/
A Dtest_multitouch.py158 slots = slots[: self.max_contacts]
163 global_data.contactcount = len(slots)
168 while len(slots):
261 slots=None, argument
282 if slots is None:
283 slots = [Data()]
845 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_X] == 50
847 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_Y] == 100
875 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] > 0
886 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] == 0
[all …]
A Dtest_sony.py150 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
151 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
152 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
159 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
179 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
180 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
181 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
195 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
196 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
198 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
[all …]
A Dtest_wacom_generic.py914 assert evdev.slots[slot_num][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == tracking_id
916 assert evdev.slots[slot_num][libevdev.EV_ABS.ABS_MT_POSITION_X] == x
917 assert evdev.slots[slot_num][libevdev.EV_ABS.ABS_MT_POSITION_Y] == y
946 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
947 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
948 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
957 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
/tools/perf/arch/arm64/util/
A Dpmu.c11 unsigned long long slots = 0; in tool_pmu__cpu_slots_per_cycle() local
22 filename__read_ull(path, &slots); in tool_pmu__cpu_slots_per_cycle()
25 return slots; in tool_pmu__cpu_slots_per_cycle()
/tools/testing/selftests/kvm/
A Ddirty_log_perf_test.c131 int slots; member
153 p->slots, p->backing_src, in run_test()
161 pages_per_slot = host_num_pages / p->slots; in run_test()
163 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); in run_test()
204 memstress_enable_dirty_logging(vm, p->slots); in run_test()
233 memstress_get_dirty_log(vm, bitmaps, p->slots); in run_test()
242 memstress_clear_dirty_log(vm, bitmaps, p->slots, in run_test()
262 memstress_disable_dirty_logging(vm, p->slots); in run_test()
287 memstress_free_bitmaps(bitmaps, p->slots); in run_test()
343 .slots = 1, in main()
[all …]
A Dmemslot_perf_test.c265 uint64_t slots; in get_max_slots() local
268 slots = data->nslots; in get_max_slots()
269 while (--slots > 1) { in get_max_slots()
270 pages_per_slot = mempages / slots; in get_max_slots()
277 return slots + 1; /* slot 0 is reserved */ in get_max_slots()
/tools/testing/selftests/arm64/abi/
A Dptrace.c139 int slots, arch, ret; in test_hw_debug() local
150 slots = state.dbg_info & 0xff; in test_hw_debug()
154 arch, slots); in test_hw_debug()
/tools/perf/Documentation/
A Dtopdown.txt40 metric register that reports slots ratios for the different bottleneck
76 /* Open slots counter file descriptor for current task. */
77 struct perf_event_attr slots = {
84 int slots_fd = perf_event_open(&slots, 0, -1, -1, 0);
95 * Set slots event as the leader of the group.
118 to read slots and the topdown metrics at different points of the program:
147 _rdpmc calls should not be mixed with reading the metrics and slots counters
183 This can be done by scaling the metrics with the slots counter
186 Then it's possible to take deltas of these slots counts
308 For example, perf record -e '{slots, $sampling_event, topdown-retiring}:S'
/tools/testing/radix-tree/
A Dtest.c231 if (slot->slots[i]) in verify_node()
232 if (verify_node(slot->slots[i], tag, in verify_node()
/tools/perf/tests/shell/attr/
A Dtest-stat-default71 # PERF_TYPE_RAW / slots (0x400)
A Dtest-stat-detailed-173 # PERF_TYPE_RAW / slots (0x400)
A Dtest-stat-detailed-273 # PERF_TYPE_RAW / slots (0x400)
A Dtest-stat-detailed-373 # PERF_TYPE_RAW / slots (0x400)
/tools/arch/x86/kcpuid/
A Dcpuid.csv322 0xa, 0, ebx, 7, no_td_slots_evt , Topdown slots event not available
612 0x23, 3, eax, 7, td_slots_evt , Topdown slots event supported

Completed in 29 milliseconds