Print elapsed time consumed in validation of page descriptor
table. This is not intended to be merged, only for the purpose of
discussion.
---
diskdump.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/diskdump.c b/diskdump.c
index db96fdb..eddf038 100644
--- a/diskdump.c
+++ b/diskdump.c
@@ -3162,6 +3162,9 @@ static void check_kdump_headers(void)
off_t seek_offset;
page_desc_t pd;
int valid, ret;
+ struct timespec t1, t2;
+
+ clock_gettime(CLOCK_REALTIME, &t1);
if (CRASHDEBUG(1))
error(INFO, "pfn offset size flags page_flags\n");
@@ -3190,4 +3193,12 @@ static void check_kdump_headers(void)
pd.page_flags);
}
}
+
+ clock_gettime(CLOCK_REALTIME, &t2);
+
+ if (CRASHDEBUG(1)) {
+ error(INFO,
+ "XXXXX %lu seconds consumed for verification of headers\n",
+ t2.tv_sec - t1.tv_sec);
+ }
}
--
2.43.1