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