Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4166250ybi; Mon, 29 Jul 2019 20:42:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy9ZLqzXjaJVxdFkWFPXmWoN0oRiwziZabOVgl1SNLuUxpymNNP725wNpA5hWAc+OtONbz X-Received: by 2002:a17:902:102c:: with SMTP id b41mr111164041pla.204.1564458160388; Mon, 29 Jul 2019 20:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564458160; cv=none; d=google.com; s=arc-20160816; b=Nci7ep4DtTbqzhOwk2yne5lw1266Y1wQKb+M9I8I9GMLy0DL56F/JDWNAFG3jlVM1T S66pSSJ3E+Xrs2x5NiSaxaUwdltxxMQtPooqH4L0X8/DFbP+Tz40J328IWuwyUHNRgv4 2Wtu5XTxHaANWXuEi1g+4vwjgGIYsjlHjue8JRFqS1tzEFb8lxb+2UfMf4BNph8i2v10 YHGVkOHeinE0vdw3yvthNgXRX7BaTbcovD9wtXNq+cAg7jjhhl0fI7x4dPccraKLmL9I MWUuTaOTCew1wNoL0EYQW7HRrpS5krOWAuaAKQiXSxbpyi+OlZj+lIQgh9bqUFkrlmob NaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QV3mkbvDqVOuRyxrBxvxIwvW8RbxilJ7TWeQkboRwPw=; b=rQajpI9ewop3o8gswaPdx4+VQxzCx0Q4wbNBl3KDSwbtgd6ET6/twrZqehOaXYdsaP RV09kNfe+ib/S8rZV7RQoi5ymR8Ex2gGhy3dR4pg5Wa1tX5blQpYhNKVa8hFb/2c+MBU +uAA3d9Jo9NWK17nBFPHPzLZmoh/ma1uJd4Olnypal3iVwxHix8aITXzwYG8cGaJY/Is nqVUD6wF470CMR5kiYAuKcjYFLgd5GEV0bJQKcSm1KCd+MEat6PLkyFQsq2YbpmJDScG WbDG+vwYrPEZh6ao2dwq6E3yD5X0hcSg23U7I7QmtbtFlbOyS90OFKloBDAAhR6FTQht 8l+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=YV5Dtbg3; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si27916226pju.24.2019.07.29.20.42.25; Mon, 29 Jul 2019 20:42:40 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=YV5Dtbg3; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730178AbfG3AD0 (ORCPT + 99 others); Mon, 29 Jul 2019 20:03:26 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36928 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730154AbfG3ADX (ORCPT ); Mon, 29 Jul 2019 20:03:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6TNx0bD162470; Tue, 30 Jul 2019 00:02:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=QV3mkbvDqVOuRyxrBxvxIwvW8RbxilJ7TWeQkboRwPw=; b=YV5Dtbg3JaqFI8k7yfiuTDuc4CdZGDjWE8t2gVtHRk7CgTbqPZUP5TkCrMDI4tDpRQCW Tv1pMiiNKojHrMh9e5/dHWk10PlrCOyBEg6jRZ/Pb/D2OlnazqEw0Hj8tPBJldqwWMIT xryKNvfU4DhuAgjQvWl+0JZCPxwyPYsd+0ZzLjxWXGjdLO1vRD+LjhR6DdaNOasI2mvt aF8fQAsAF8Kgd6eFxX5sQq6Oz6gf9Zz5N+RZ5gPWbErAb6Skztr7YYa17Cik1nvt9sNA QNuJ8kbNaciQvMH8hRMSsY/dmbIvAzBgrbwpTPI8NY0Bu18vihcYJ11wUHblgmTLb5sG MA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2u0f8qtph3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:54 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6TNvhx8039139; Tue, 30 Jul 2019 00:02:53 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2u0xv7tha8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:53 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6U02ql4012440; Tue, 30 Jul 2019 00:02:52 GMT Received: from ca-common-hq.us.oracle.com (/10.211.9.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 29 Jul 2019 17:02:52 -0700 From: Divya Indi To: linux-kernel@vger.kernel.org, Steven Rostedt Cc: Divya Indi , Joe Jin , Aruna Ramakrishna , Srinivas Eeda Subject: [PATCH 7/7] tracing: Un-export ftrace_set_clr_event Date: Mon, 29 Jul 2019 17:02:34 -0700 Message-Id: <1564444954-28685-8-git-send-email-divya.indi@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1564444954-28685-1-git-send-email-divya.indi@oracle.com> References: <1564444954-28685-1-git-send-email-divya.indi@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9333 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907290261 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9333 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907290261 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use "trace_array_set_clr_event" to enable/disable events to a trace array from other kernel modules/components. Hence, we no longer need to have ftrace_set_clr_event as an exported API. Signed-off-by: Divya Indi Reviewed-By: Aruna Ramakrishna --- include/linux/trace_events.h | 1 - kernel/trace/trace_events.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 6da3600..025ae2b 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -542,7 +542,6 @@ extern int trace_define_field(struct trace_event_call *call, const char *type, int trace_set_clr_event(const char *system, const char *event, int set); int trace_array_set_clr_event(struct trace_array *tr, const char *system, const char *event, int set); -int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set); /* * The double __builtin_constant_p is because gcc will give us an error diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 9ee6b52..96dd997 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; } -int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) +static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) { char *event = NULL, *sub = NULL, *match; int ret; @@ -834,7 +834,6 @@ int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set) return ret; } -EXPORT_SYMBOL_GPL(ftrace_set_clr_event); /** * trace_set_clr_event - enable or disable an event -- 1.8.3.1