Android13模拟器使用perfetto遇到:Hard resetting ftrace state. Failed to infer ftrace field type for "f2fs_truncate_partial_nodes.nid" ...
参考
现象
I/perfetto( 3707): probes.cc:65 Hard resetting ftrace state.
I/perfetto( 3710): probes.cc:104 Starting /system/bin/traced_probes service
I/perfetto( 3710): _activity_trigger.cc:71 mm_events ftrace instance not found. Triggering of traces on memory pressure will not be available on this device.
I/perfetto( 3710): probes_producer.cc:311 Connected to the service
E/perfetto( 3710): ranslation_table.cc:133 Failed to infer ftrace field type for "f2fs_truncate_partial_nodes.nid" (type:"nid_t nid[3]" size:12 signed:0) (errno: 2, No such file or directory)
参考
回退下面的修改:
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 31d994e6b4ca..8d053838d6cf 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -512,7 +512,7 @@ TRACE_EVENT(f2fs_truncate_partial_nodes,
TP_STRUCT__entry(
__field(dev_t, dev)
__field(ino_t, ino)
- __field(nid_t, nid[3])
+ __array(nid_t, nid, 3)
__field(int, depth)
__field(int, err)
),
本文来自博客园,作者:摩斯电码,未经同意,禁止转载