[Crash-utility] [RFC PATCH 9/9] diskdump, debug: Print elapsed time consumed in validation of page descriptor table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux