| /tools/testing/selftests/kvm/include/ |
| A D | memstress.h | 59 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 D | memstress.c | 125 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 D | futex_priv_hash.c | 32 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 D | test_multitouch.py | 158 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 D | test_sony.py | 150 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 D | test_wacom_generic.py | 914 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 D | pmu.c | 11 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 D | dirty_log_perf_test.c | 131 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 D | memslot_perf_test.c | 265 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 D | ptrace.c | 139 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 D | topdown.txt | 40 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 D | test.c | 231 if (slot->slots[i]) in verify_node() 232 if (verify_node(slot->slots[i], tag, in verify_node()
|
| /tools/perf/tests/shell/attr/ |
| A D | test-stat-default | 71 # PERF_TYPE_RAW / slots (0x400)
|
| A D | test-stat-detailed-1 | 73 # PERF_TYPE_RAW / slots (0x400)
|
| A D | test-stat-detailed-2 | 73 # PERF_TYPE_RAW / slots (0x400)
|
| A D | test-stat-detailed-3 | 73 # PERF_TYPE_RAW / slots (0x400)
|
| /tools/arch/x86/kcpuid/ |
| A D | cpuid.csv | 322 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
|