Commit Graph

3 Commits

Author SHA1 Message Date
Vincent Donnefort 56df78dee9 ANDROID: KVM: arm64: Add ftrace to kselftest for hyp tracefs
Add a couple of test to the kselftest for the pKVM hypervisor tracing
infrastructure.

Bug: 357781595
Change-Id: I7e96a312fbaba3314bd1599d072a6042cc577ff2
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
2025-02-12 03:30:22 -08:00
Vincent Donnefort 7395cf8455 ANDROID: KVM: arm64: Fix reset for hyp tracefs
While resetting the hypervisor tracing, the head page pointer wasn't
updated as well at the stamp and lost events. This might leave the
buffer in a corrupted state.

While at it, strengthen the reset test to check for timestamp and lost
events.

Bug: 357781595
Fixes: a368d579d1 ("FROMLIST: KVM: arm64: Add trace interface for hyp tracefs")
Change-Id: Ia5dac9634bcb3a2afea9db72ac6b2eda1d9a9730
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
2025-02-11 09:53:26 -08:00
Vincent Donnefort 05b2da3990 FROMLIST: KVM: arm64: Add kselftest for tracefs hyp tracefs
Add a test to validate the newly introduced tracefs interface for the
pKVM hypervisor. This test covers the usage of extended timestamp and
coherence of the tracing clock.

Bug: 357781595
Link: https://lore.kernel.org/all/20240911093029.3279154-14-vdonnefort@google.com/
Change-Id: I07db075653410118a197b30f2e2ff9194c4726e8
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
2024-11-14 15:19:12 +00:00