ANDROID: KVM: arm64: Move hyp events in a hyp/ folder

Align with the host tracing events by adding another layer in the event
path. As no group exists at the moment, move all of them in a common
hyp/ one.

Bug: 249050813
Change-Id: I4c77d1ec676f896bba77f147e0a4b30bc9c92606
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
Vincent Donnefort
2023-03-08 18:10:49 +00:00
parent e66ed68b27
commit edcdcb7a4f

View File

@@ -333,6 +333,12 @@ void kvm_hyp_init_events_tracefs(struct dentry *parent)
if (!d)
pr_err("Failed to create events/header_page\n");
parent = tracefs_create_dir("hyp", parent);
if (!parent) {
pr_err("Failed to create tracefs folder for hyp events\n");
return;
}
for (; (unsigned long)event < (unsigned long)__hyp_events_end; event++) {
event_dir = tracefs_create_dir(event->name, parent);
if (!event_dir) {