summaryrefslogtreecommitdiff
path: root/ioshark
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2022-08-19 17:22:04 -0700
committerJaegeuk Kim <jaegeuk@google.com>2022-09-20 15:38:26 -0700
commitfa1d990a913ed08ad1b15283954241fc9177f597 (patch)
tree036452b19b203f06e153b13275b76ac0fddb00b9 /ioshark
parent78b1b1b752ad9d49b04b9f74aaac97fea977f2f1 (diff)
downloadextras-fa1d990a913ed08ad1b15283954241fc9177f597.tar.gz
Replace android_fs tracepoints with f2fs tracepoints
Bug: 225959108 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I883a4c3860016e63e95268355eb7a8588d2f12f4
Diffstat (limited to 'ioshark')
-rw-r--r--ioshark/collect-straces-ftraces.sh8
-rw-r--r--ioshark/compile-only.sh4
2 files changed, 6 insertions, 6 deletions
diff --git a/ioshark/collect-straces-ftraces.sh b/ioshark/collect-straces-ftraces.sh
index 6e83a248..3590f80a 100644
--- a/ioshark/collect-straces-ftraces.sh
+++ b/ioshark/collect-straces-ftraces.sh
@@ -26,9 +26,9 @@ process_strace()
prep_fstrace()
{
# Remove leading junk
- fgrep android_fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo
+ fgrep f2fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo
# Sanitize the filenames, removing spaces within the filename etc
- sed 's/android_fs_dataread_start/read/' foo > bar1
+ sed 's/f2fs_dataread_start/read/' foo > bar1
mv bar1 bar
# First column is timestamp SECONDS SINCE BOOT
awk '{ print $2, "ftrace", $3, $5, $7, $9, $13 }' bar > foo
@@ -125,13 +125,13 @@ catch_sigint()
enable_tracepoints()
{
- adb shell "echo 1 > /sys/kernel/debug/tracing/events/android_fs/android_fs_dataread_start/enable"
+ adb shell "echo 1 > /sys/kernel/debug/tracing/events/f2fs/f2fs_dataread_start/enable"
adb shell "echo 1 > /sys/kernel/debug/tracing/tracing_on"
}
disable_tracepoints()
{
- adb shell "echo 0 > /sys/kernel/debug/tracing/events/android_fs/android_fs_dataread_start/enable"
+ adb shell "echo 0 > /sys/kernel/debug/tracing/events/f2fs/f2fs_dataread_start/enable"
adb shell "echo 0 > /sys/kernel/debug/tracing/tracing_on"
}
diff --git a/ioshark/compile-only.sh b/ioshark/compile-only.sh
index 7a6b3cd2..ac703440 100644
--- a/ioshark/compile-only.sh
+++ b/ioshark/compile-only.sh
@@ -26,8 +26,8 @@ process_strace()
prep_fstrace()
{
# Remove leading junk
- fgrep android_fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo
- sed 's/android_fs_dataread_start/read/' foo > bar1
+ fgrep f2fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo
+ sed 's/f2fs_dataread_start/read/' foo > bar1
mv bar1 bar
# First column is timestamp SECONDS SINCE BOOT
awk '{ print $2, "ftrace", $3, $5, $7, $9, $13 }' bar > foo