From 9159ae42188595a5ea0fe12ec39b1ab9e4307293 Mon Sep 17 00:00:00 2001
From: Carsten Emde <C.Emde@osadl.org>
Date: Tue, 5 Jan 2016 10:21:59 +0100
Subject: [PATCH 070/332] trace/latency-hist: Consider new argument when
 probing the sched_switch tracer

The sched_switch tracer has got a new argument. Fix the latency tracer
accordingly.

Recently: c73464b1c843 ("sched/core: Fix trace_sched_switch()") since
v4.4-rc1.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 kernel/trace/latency_hist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-4.14.15-rt12/kernel/trace/latency_hist.c
===================================================================
--- linux-4.14.15-rt12.orig/kernel/trace/latency_hist.c
+++ linux-4.14.15-rt12/kernel/trace/latency_hist.c
@@ -117,7 +117,7 @@ static char *wakeup_latency_hist_dir_sha
 static notrace void probe_wakeup_latency_hist_start(void *v,
        struct task_struct *p);
 static notrace void probe_wakeup_latency_hist_stop(void *v,
-       struct task_struct *prev, struct task_struct *next);
+       bool preempt, struct task_struct *prev, struct task_struct *next);
 static notrace void probe_sched_migrate_task(void *,
        struct task_struct *task, int cpu);
 static struct enable_data wakeup_latency_enabled_data = {
@@ -907,7 +907,7 @@ out:
 }
 
 static notrace void probe_wakeup_latency_hist_stop(void *v,
-       struct task_struct *prev, struct task_struct *next)
+       bool preempt, struct task_struct *prev, struct task_struct *next)
 {
        unsigned long flags;
        int cpu = task_cpu(next);