From patchwork Mon Feb 11 01:18:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 10805009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8705D17E6 for ; Mon, 11 Feb 2019 01:21:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76803297FC for ; Mon, 11 Feb 2019 01:21:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 587AC29811; Mon, 11 Feb 2019 01:21:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0C22297FD for ; Mon, 11 Feb 2019 01:21:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726032AbfBKBVz (ORCPT ); Sun, 10 Feb 2019 20:21:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:49448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfBKBVz (ORCPT ); Sun, 10 Feb 2019 20:21:55 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14B592173C; Mon, 11 Feb 2019 01:21:55 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.92-RC5) (envelope-from ) id 1gt0IE-0003x2-7c; Sun, 10 Feb 2019 20:21:54 -0500 Message-Id: <20190211012154.123854384@goodmis.org> User-Agent: quilt/0.65 Date: Sun, 10 Feb 2019 20:18:10 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Yordan Karadzhov Subject: [PATCH 3/4] kernel-shark: Remove plugin_get_rec_wakeup_pid() References: <20190211011807.714634783@goodmis.org> MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Steven Rostedt (VMware)" The function plugin_get_rec_wakeup_pid() is not used by anything. Remove it. Signed-off-by: Steven Rostedt (VMware) --- kernel-shark/src/plugins/sched_events.c | 18 ------------------ 1 file changed, 18 deletions(-) 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)