summaryrefslogtreecommitdiff
path: root/include/trace/events
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-17 16:29:49 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-09-23 18:20:32 -0700
commit34b80c3d1203abd5fd64242ef25898c7d64166ca (patch)
tree3ad06d8c27bed25a08bd3c20eb896d029d18e5b2 /include/trace/events
parent7411eba7d39f53f012f51d6c6304b3901bdcf0fd (diff)
ext4: implement FALLOC_FL_ZEROINIT_RANGEzero-initialize-pmem-5.16_2021-09-23
Implement this new fallocate mode so that persistent memory users can, upon receipt of a pmem poison notification, cause the pmem to be reinitialized to a known value (zero) and clear any hardware poison state that might be lurking. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/ext4.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index 0ea36b2b0662..282f1208067f 100644
--- a/include/trace/events/ext4.h
+++ b/include/trace/events/ext4.h
@@ -1407,6 +1407,13 @@ DEFINE_EVENT(ext4__fallocate_mode, ext4_zero_range,
TP_ARGS(inode, offset, len, mode)
);
+DEFINE_EVENT(ext4__fallocate_mode, ext4_zeroinit_range,
+
+ TP_PROTO(struct inode *inode, loff_t offset, loff_t len, int mode),
+
+ TP_ARGS(inode, offset, len, mode)
+);
+
TRACE_EVENT(ext4_fallocate_exit,
TP_PROTO(struct inode *inode, loff_t offset,
unsigned int max_blocks, int ret),