Skip to contentSkip to conversation

ext4: translate flag bits to strings in tracepoints

PATCH New Theodore Ts'o 1 participant 1 message Jun 23, 2013

Subsystems (2)
lore
Share & tools
lore

Theodore Ts'o

author maintainer
#0 lore raw

PATCH 1/1 ext4: translate flag bits to strings in tracepoints

Translate the bitfields used in various flags argument to strings to make the tracepoint output more human-readable.

---
 fs/ext4/extents.c           |   2 +-
 fs/ext4/indirect.c          |   2 +-
 include/trace/events/ext4.h | 135 +++++++++++++++++++++++++++++++-------------
 3 files changed, 98 insertions(+), 41 deletions(-)
fs/ext4/extents.c +1 -1
index 937593e..575faa0 100644
@@ -4380,7 +4380,7 @@ out2:
 	}
 
 out3:
-	trace_ext4_ext_map_blocks_exit(inode, map, err ? err : allocated);
+	trace_ext4_ext_map_blocks_exit(inode, flags, map, err ? err : allocated);
 
 	return err ? err : allocated;
 }
fs/ext4/indirect.c +1 -1
index 963d23d..87b30cd 100644
@@ -624,7 +624,7 @@ cleanup:
 		partial--;
 	}
 out:
-	trace_ext4_ind_map_blocks_exit(inode, map, err);
+	trace_ext4_ind_map_blocks_exit(inode, flags, map, err);
 	return err;
 }
 
include/trace/events/ext4.h +96 -39

301 lines not on this page · raw message

Signature · 1 line
1.7.12.rc0.22.gcdd159b