Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2454176ybi; Thu, 4 Jul 2019 11:26:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoeNXrBAiRghEzFKBTo0/riaojcXBcWR9HOCwteC5K5BDFuQ7WWJuJNG9xebv+1j6SjF8W X-Received: by 2002:a65:4489:: with SMTP id l9mr27797321pgq.207.1562264765508; Thu, 04 Jul 2019 11:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562264765; cv=none; d=google.com; s=arc-20160816; b=OvepTeqTjrswMpFIuyomOvYjCliU1D5xP6oON3+qt/FDE8Zy50hDMzOY/a3/MIK4lI AS9jMXdcT3iQAjNZ+vUGRgyarRdeC9cjD2azGrCjG8CEKibDsrvmZ/SLHpkdcktvmIG0 bGgjDXRElb7HIQDYV0DuCubbi6CoBQLeoYks5j5J87oqZ80Qm+xJelbIDyOzrjpXnTBE m8w96WnsiOtTcG1+e+cOilSpoQ0tAKwNHlqoSV7QxDQsqMMYRnOCWAmg40ufghNmYBJF 8N4FerDcJB3Ix3r2h7Gi22u5/PI7qMxnG/eafYs97AtFAREBWkJWXcohMEQWZEFTk/V/ gzmg== 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 :message-id:date:subject:cc:to:from; bh=I3vzLyxDbkeyBgYQjFOstI8zIrcnQFzyTjp53BtSBHs=; b=Ppnd+8tjTwwR0rc4oHqvql2aseTiAuvn8HmfOdP8wiq3j9wKAgZw/DJL24Xkmfg/hO iEMVTTJyZwKaQjYeIhy4L74eKDISJEcBJY3gmkFyOw21VtTYZ57mJiHdF3CJFqeezKks zjUf/0w+AokdgVq2IbMfHiTsAscnmWo0QZHXqEiVuQyxLvgMi8ewT8781INmFH94rwMj 9EhBBUk1MHZOCeUxIwH6zJg7K6+GNTfre6Ti+oj7CuktrJGVm8vSvMkIcwADS+JRupzo MINhQko06CEYl1Wn51uJHC89Fz4W7EZcQ0XhHRAjx9Zv4RvKWyuNCbifaRQCeZvjs/dq O1vA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si5911366pfz.66.2019.07.04.11.25.50; Thu, 04 Jul 2019 11:26:05 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbfGDRVc (ORCPT + 99 others); Thu, 4 Jul 2019 13:21:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45807 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbfGDRVc (ORCPT ); Thu, 4 Jul 2019 13:21:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id f9so7339761wre.12 for ; Thu, 04 Jul 2019 10:21:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=I3vzLyxDbkeyBgYQjFOstI8zIrcnQFzyTjp53BtSBHs=; b=o6/dLY+IcqpsVbphLQLqGWlJTHFaw2Xs+m+wZcsWOD+WYTilTQAq6X8iB7PuCPHEVk XW5V8+m9soF535WAxX/blV2fteYtyVQlGmb8Q8OIbiAzYQ5Lg04JO99qvPKXRoLYYhTS 0kt/Vw9Pp2vpyI66430TnJ3bAdlWVrZN7UhCrzZBeHJaBQM/vd06HCS2t/GILg673UmJ 7wS83TMvl9BT8FG70tV6oIP/nD43PDCFatRqvcWeOELYy4lfB0m8yVgcOKAkkOYVQQ8A 8Gr99mQB3Pl8KNGRGxdefRLrMtI4LyZxIVdgHbpjPYNEfXmH0P/RZ3+DVWWF1zBJtO5F LWaw== X-Gm-Message-State: APjAAAXosfEK+CQ/b7win446iPTNSnJgbZfpOhi7+z+4p3kcLqyMZTwM /BBVDQXQY2Yfq3u+ViSEmz8= X-Received: by 2002:a5d:5752:: with SMTP id q18mr29539095wrw.337.1562260890178; Thu, 04 Jul 2019 10:21:30 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id w23sm6343835wmi.45.2019.07.04.10.21.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 10:21:29 -0700 (PDT) From: Denis Efremov To: Divya Indi Cc: Denis Efremov , Steven Rostedt , Joe Jin , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH] tracing: make exported ftrace_set_clr_event non-static Date: Thu, 4 Jul 2019 20:21:10 +0300 Message-Id: <20190704172110.27041-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function ftrace_set_clr_event is declared static and marked EXPORT_SYMBOL_GPL(), which is at best an odd combination. Because the function was decided to be a part of API, this commit removes the static attribute and adds the declaration to the header. Fixes: f45d1225adb04 ("tracing: Kernel access to Ftrace instances") Signed-off-by: Denis Efremov --- include/linux/trace_events.h | 1 + kernel/trace/trace_events.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 8a62731673f7..84bc84f00e8f 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -539,6 +539,7 @@ extern int trace_event_get_offsets(struct trace_event_call *call); #define is_signed_type(type) (((type)(-1)) < (type)1) +int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set); int trace_set_clr_event(const char *system, const char *event, int set); /* diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 0ce3db67f556..b6b46184f6bf 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -795,7 +795,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match, return ret; } -static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) +int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) { char *event = NULL, *sub = NULL, *match; int ret; -- 2.21.0