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>
(cherry picked from commit 6d27de405aaf6127f4b7184a8377813eb2a030a5)
This commit is contained in:
Nikita Ioffe
2025-07-01 18:35:42 +00:00
parent c98acaeb71
commit d403a09405
+1 -1
View File
@@ -1039,7 +1039,7 @@ int hyp_trace_init_tracefs(void)
(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);
tracefs_create_file("trace", TRACEFS_MODE_READ, per_cpu_dir,
(void *)cpu, &hyp_trace_fops);