mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone
Blob Blame History Raw
From a5d102f5b31dc98373bc73f2a1ea261d14baac73 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 10 May 2016 12:16:36 +0100
Subject: [PATCH] boot-analysis: Make ftrace optional in the timeline.

This allows me to test minimal kernels with ftrace disabled at
compile time.

(cherry picked from commit e4edede3641f3c8d3ac729c1a6c871f532b2b996)
---
 utils/boot-analysis/boot-analysis-timeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/boot-analysis/boot-analysis-timeline.c b/utils/boot-analysis/boot-analysis-timeline.c
index 09a78ef..905d1e3 100644
--- a/utils/boot-analysis/boot-analysis-timeline.c
+++ b/utils/boot-analysis/boot-analysis-timeline.c
@@ -306,7 +306,7 @@ construct_timeline (void)
 #endif
 
     /* ftrace patching instructions. */
-    FIND ("kernel:ftrace", 0,
+    FIND_OPTIONAL ("kernel:ftrace", 0,
           data->events[j].source == GUESTFS_EVENT_APPLIANCE &&
           strstr (data->events[j].message, "ftrace: allocating"),
           1);
-- 
1.8.3.1