Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp315910imu; Mon, 5 Nov 2018 01:06:42 -0800 (PST) X-Google-Smtp-Source: AJdET5ezDpPEm/yszViexXnGZTPzsTpX+yWp0tu6k3iPfy/X+mpGN2LL/7sFB2ENa+17g8EPv0KA X-Received: by 2002:a17:902:8bca:: with SMTP id r10-v6mr1466808plo.199.1541408802647; Mon, 05 Nov 2018 01:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541408802; cv=none; d=google.com; s=arc-20160816; b=x/KcHvAIzMcbdIrsI9fiM5Qc70e7yYdDU0g6JSaj3YxwDO1J0UQMRxCAfCVorXNy7r TGyDV9STdIO1LrWn8KzjicoviAWW9d0qtkWHoSzqkR7kXgtUBZBATO8yfPQ4g5V1FkgN 88P/CmaHFwDWs9WmqE4SoBo+XPWUaQ5EEOn+V0aHDDFyvonrX1Dxb7ONCU5/N82Bluac mJrc0fGTgwhj3aeKpb9bMOLC7OA+1iG0N0c7SEOILc7KXFJzQ9J5pKpeKCapGWs2oya6 xzhQyhbVRl4+Xgw8njIuKe5hodzzrUz3jbDkUfHh8Zz8//bu8UsvoBA6jB8Z1Qa1utKb BQ6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MMC6wlcO1VM5PYvExNq7g+izrRPava8jrmeJwb0+nRk=; b=rsyJkZKLtOc6OIbZpPdPGzZxAah9jcJ8K61qSmD7Yb9iVfql26tPNfGbebWIjCScpX wzEB4/ulM+ENwE9c8mWGFBMhyfpGahmN6atzr+y//3u2gS8/7we8fSVu12Fd/9fR4mWR GejcApSgoLtURsBO/3NaouakIIKLM1SJGWosepFo7IjcGWXiHPJaNA2Zc2L1xxa05CXL ryt6H2wrCc8kMjIcZkS0olUgSrEds90yQlkp7lfyG8uQEEiDjYcV3jdcJxrpIIfqPRVO BIheGOVAJfXI0zfq54zmzX8A386hdxqG7UJcR8BdrQ/jtSDyCr0/0mPcB/TDGFP2itxE n7Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zQIiFrK5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si44297871pfg.70.2018.11.05.01.06.27; Mon, 05 Nov 2018 01:06:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zQIiFrK5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727275AbeKESXd (ORCPT + 99 others); Mon, 5 Nov 2018 13:23:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:51680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbeKESXd (ORCPT ); Mon, 5 Nov 2018 13:23:33 -0500 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 9136E2082A; Mon, 5 Nov 2018 09:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541408692; bh=Btueh1B269AJS1dsvHd0mnWJ1hTMy7pUZg/NG7ISutk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zQIiFrK56Y0FUJjpUuSwbI+KL4ZNRI4rRJEG408WNao3fHdD9R/xf+xsPGeR+Zf9D LlirRkqBKb2Rkpicdt5ZGOrklDjEjDPsu32gq5bXKvlgOvh4M4iEItPWj+Jzit06Km kRuZCxbF9r0vII/dlXJNU4uxtqaeDGWSwWAYlVRE= From: Masami Hiramatsu To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Tom Zanussi , Ravi Bangoria Subject: [PATCH v2 10/12] tracing: Remove orphaned trace_add/remove_event_call functions Date: Mon, 5 Nov 2018 18:04:29 +0900 Message-Id: <154140866955.17322.2081425494660638846.stgit@devbox> X-Mailer: git-send-email 2.13.6 In-Reply-To: <154140838606.17322.15294184388075458777.stgit@devbox> References: <154140838606.17322.15294184388075458777.stgit@devbox> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove trace_add_event_call() and trace_remove_event_call() functions since those are not used anymore. Signed-off-by: Masami Hiramatsu --- include/linux/trace_events.h | 2 -- kernel/trace/trace_events.c | 26 ++------------------------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 3aa05593a53f..7a3147ead6bf 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -531,8 +531,6 @@ extern int trace_define_field(struct trace_event_call *call, const char *type, int is_signed, int filter_type); extern int trace_add_event_call_nolock(struct trace_event_call *call); extern int trace_remove_event_call_nolock(struct trace_event_call *call); -extern int trace_add_event_call(struct trace_event_call *call); -extern int trace_remove_event_call(struct trace_event_call *call); extern int trace_event_get_offsets(struct trace_event_call *call); #define is_signed_type(type) (((type)(-1)) < (type)1) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index a3b157f689ee..16cff7c0fd40 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -2305,6 +2305,7 @@ __trace_early_add_new_event(struct trace_event_call *call, struct ftrace_module_file_ops; static void __add_event_to_tracers(struct trace_event_call *call); +/* Add an additional event_call dynamically */ int trace_add_event_call_nolock(struct trace_event_call *call) { int ret; @@ -2320,17 +2321,6 @@ int trace_add_event_call_nolock(struct trace_event_call *call) return ret; } -/* Add an additional event_call dynamically */ -int trace_add_event_call(struct trace_event_call *call) -{ - int ret; - - mutex_lock(&event_mutex); - ret = trace_add_event_call_nolock(call); - mutex_unlock(&event_mutex); - return ret; -} - /* * Must be called under locking of trace_types_lock, event_mutex and * trace_event_sem. @@ -2376,7 +2366,7 @@ static int probe_remove_event_call(struct trace_event_call *call) return 0; } -/* no event_mutex version */ +/* Remove an event_call */ int trace_remove_event_call_nolock(struct trace_event_call *call) { int ret; @@ -2392,18 +2382,6 @@ int trace_remove_event_call_nolock(struct trace_event_call *call) return ret; } -/* Remove an event_call */ -int trace_remove_event_call(struct trace_event_call *call) -{ - int ret; - - mutex_lock(&event_mutex); - ret = trace_remove_event_call_nolock(call); - mutex_unlock(&event_mutex); - - return ret; -} - #define for_each_event(event, start, end) \ for (event = start; \ (unsigned long)event < (unsigned long)end; \