diff mbox series

[3/4] kernel-shark: Remove plugin_get_rec_wakeup_pid()

Message ID 20190211012154.123854384@goodmis.org (mailing list archive)
State Accepted
Commit 4272d6165bb9f7257babfd450d5b9eea59e6e706
Headers show
Series kernel-shark: Add sched_waking event for sched plugin processing | expand

Commit Message

Steven Rostedt Feb. 11, 2019, 1:18 a.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The function plugin_get_rec_wakeup_pid() is not used by anything. Remove
it.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 kernel-shark/src/plugins/sched_events.c | 18 ------------------
 1 file changed, 18 deletions(-)
diff mbox series

Patch

diff --git a/kernel-shark/src/plugins/sched_events.c b/kernel-shark/src/plugins/sched_events.c
index 0f5c08e3508d..0cfe5b5367e2 100644
--- a/kernel-shark/src/plugins/sched_events.c
+++ b/kernel-shark/src/plugins/sched_events.c
@@ -111,24 +111,6 @@  int plugin_get_next_pid(struct tep_record *record)
 	return ret ? : val;
 }
 
-/**
- * @brief Get the Process Id of the task being woke up.
- *
- * @param record: Input location for a sched_wakeup record.
- */
-int plugin_get_rec_wakeup_pid(struct tep_record *record)
-{
-	struct plugin_sched_context *plugin_ctx =
-		plugin_sched_context_handler;
-	unsigned long long val;
-	int ret;
-
-	ret = tep_read_number_field(plugin_ctx->sched_wakeup_pid_field,
-				    record->data, &val);
-
-	return ret ? : val;
-}
-
 static void plugin_register_command(struct kshark_context *kshark_ctx,
 				    struct tep_record *record,
 				    int pid)