|
|
e76f14 |
From 6143e307900ba1484c5768da05d98b88a83a8a1a Mon Sep 17 00:00:00 2001
|
|
|
e76f14 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
e76f14 |
Date: Thu, 28 Apr 2016 13:33:51 +0100
|
|
|
e76f14 |
Subject: [PATCH] tests/qemu: boot-analysis: Add analysis of initcalls before
|
|
|
e76f14 |
entering userspace.
|
|
|
e76f14 |
|
|
|
e76f14 |
(cherry picked from commit 606f1586064ed5b45b9d25dc9bf2e518dd910ba7)
|
|
|
e76f14 |
---
|
|
|
e76f14 |
tests/qemu/boot-analysis-timeline.c | 7 +++++++
|
|
|
e76f14 |
1 file changed, 7 insertions(+)
|
|
|
e76f14 |
|
|
|
e76f14 |
diff --git a/tests/qemu/boot-analysis-timeline.c b/tests/qemu/boot-analysis-timeline.c
|
|
|
e76f14 |
index d35fb49..1c57d05 100644
|
|
|
e76f14 |
--- a/tests/qemu/boot-analysis-timeline.c
|
|
|
e76f14 |
+++ b/tests/qemu/boot-analysis-timeline.c
|
|
|
e76f14 |
@@ -296,6 +296,13 @@ construct_timeline (void)
|
|
|
e76f14 |
strstr (data->events[j].message, "ftrace: allocating"),
|
|
|
e76f14 |
1);
|
|
|
e76f14 |
|
|
|
e76f14 |
+ /* All initcall functions, before we enter userspace. */
|
|
|
e76f14 |
+ FIND ("kernel:initcalls-before-userspace", 0,
|
|
|
e76f14 |
+ data->events[j].source == GUESTFS_EVENT_APPLIANCE &&
|
|
|
e76f14 |
+ strstr (data->events[j].message, "calling "),
|
|
|
e76f14 |
+ data->events[k].source == GUESTFS_EVENT_APPLIANCE &&
|
|
|
e76f14 |
+ strstr (data->events[k].message, "Freeing unused kernel memory"));
|
|
|
e76f14 |
+
|
|
|
e76f14 |
/* Find where we run supermin mini-initrd. */
|
|
|
e76f14 |
FIND ("supermin:mini-initrd", 0,
|
|
|
e76f14 |
data->events[j].source == GUESTFS_EVENT_APPLIANCE &&
|
|
|
e76f14 |
--
|
|
|
7af31e |
1.8.3.1
|
|
|
e76f14 |
|