ANDROID: KVM: arm64: use hyp_trace_raw_fops for trace_pipe_raw

The trace_pipe_raw interface is expected to return binary trace format,
while hyp_trace_pipe_fops returns the text trace format. This patch
change trace_pipe_raw fops hyp_trace_raw_fops which provides the binary
output.

Bug: 428904926
Test: presubmit
Change-Id: Id72d2c7df366934f00b17674078c94c2b2d288be
Signed-off-by: Nikita Ioffe <ioffe@google.com>
This commit is contained in:
Nikita Ioffe
2025-07-01 18:35:42 +00:00
parent 326b0bd632
commit 6d27de405a

View File

@@ -861,7 +861,7 @@ int hyp_trace_init_tracefs(void)
tracefs_create_file("trace_pipe", TRACEFS_MODE_READ, per_cpu_dir,
(void *)cpu, &hyp_trace_pipe_fops);
tracefs_create_file("trace_pipe_raw", TRACEFS_MODE_READ, per_cpu_dir,
(void *)cpu, &hyp_trace_pipe_fops);
(void *)cpu, &hyp_trace_raw_fops);
}
hyp_trace_init_event_tracefs(root);