Home
last modified time | relevance | path

Searched refs:snapshot_data (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c138 struct riscv_pmu_snapshot_data *snapshot_data = snapshot_gva; in guest_irq_handler() local
150 overflown_mask = READ_ONCE(snapshot_data->ctr_overflow_mask); in guest_irq_handler()
155 counter_val = READ_ONCE(snapshot_data->ctr_values[0]); in guest_irq_handler()
310 struct riscv_pmu_snapshot_data *snapshot_data = snapshot_gva; in test_pmu_event_snapshot() local
321 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
331 WRITE_ONCE(snapshot_data->ctr_values[0], ULONG_MAX/2); in test_pmu_event_snapshot()
334 counter_value_pre = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
336 WRITE_ONCE(snapshot_data->ctr_values[0], counter_init_value); in test_pmu_event_snapshot()
339 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
345 WRITE_ONCE(snapshot_data->ctr_values[0], counter_init_value); in test_pmu_event_snapshot()
[all …]
/linux/kernel/power/
H A Duser.c31 static struct snapshot_data { struct
49 struct snapshot_data *data; in snapshot_open() argument
109 struct snapshot_data *data; in snapshot_release()
138 struct snapshot_data *data; in snapshot_read()
172 struct snapshot_data *data; in snapshot_write()
213 static int snapshot_set_swap_area(struct snapshot_data *data, in snapshot_set_swap_area()
253 struct snapshot_data *data; in snapshot_ioctl()