Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2365729ybc; Wed, 13 Nov 2019 13:18:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxzisfBecZ2wkhiw9rdSehhOVHkgERHvLU8jmszYRrdStWln/Wh8lgggYMADKeYqjJa5Sa1 X-Received: by 2002:a17:906:c2d6:: with SMTP id ch22mr5048171ejb.262.1573679915328; Wed, 13 Nov 2019 13:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573679915; cv=none; d=google.com; s=arc-20160816; b=I7Uv7Vxw6NAA/OxiviZC0FyCYZR3GH8O6hwYOP4rzl0OxSAr0Y0PDljftulurqB69G vwb/ziAEJf7Og4MdERRuXbCKTUapq4WYVGbDViob1hc8w4zv75XjD0IbKnQw/ESUIkDW S2fKbSmCjyHS9MpFezMr6BLiYenuupxsPvTbpsTG2BVjj+JhpVvTr+rF6/MEWcehGGJc iHszc4ViDMzHOOwHXnIr6kw4VwikzrZNaez2v/2g+uzEtp+Ez7rME0wllpxEuW8gMOcY Qn87P98+x1Vk1BVUt5sLzXUkD33nABRdvjd9tLoDOq8NfS3WQ5BAHZqs8VCqdb62Zjep 1Lqg== 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=n9TGMlGhguTPxZjGnicJ1nMOKR2qSj3bvJciCNeuYu4=; b=ROYEAxP7cjNeUVBFkYDYYF7Nm54nDPdlljmsomogVSBwPlWmFX9fQBZ4Q0FT+fjR0D xIdm+4Irdq9RzR4bTmgj+VRvXkD+B/6niuEsR3FS4mYDOgjisq+70TUCe6PyuEdJilOJ ZguDzq9erk4+oFGY5ZiSFoADayH0nJ+C0NbXjkvV45ZGjj91CCsE6pR4y49cKcVPAkBB 7oPA2KQloZ6D44ziBw/lhtreCRY410TAQufd3VZltJ+FDr4RbUdMKjuoy0LldZgBLQTp hljx7RM/6vvi7pA8zm4Coio4AFijC5jqvgmKDMayVVlbMYLPYRGW1njdlzbZwMpVm8Q6 nwyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=ouP52RyV; 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 c7si2018745ejz.392.2019.11.13.13.18.10; Wed, 13 Nov 2019 13:18:35 -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=@oracle.com header.s=corp-2019-08-05 header.b=ouP52RyV; 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 S1726988AbfKMVRb (ORCPT + 99 others); Wed, 13 Nov 2019 16:17:31 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:37538 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbfKMVR1 (ORCPT ); Wed, 13 Nov 2019 16:17:27 -0500 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 xADL3u1Q034373; Wed, 13 Nov 2019 21:16:59 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-2019-08-05; bh=n9TGMlGhguTPxZjGnicJ1nMOKR2qSj3bvJciCNeuYu4=; b=ouP52RyV7nnAnd7mPvEkR9/c2aFeVjR0L3ygbzEPVUwsc78/6uClFDuCzHyThXcYsVzr JBoTQ77S+2aItfYD7B5/dyY6I+ZTEA/DZauaTLDppp2f7BrddiZUeGqL8w9fBocjGuob xgVP+J//JpQApXHnmsaOYyzf7bLSfq5G5jXhcLrCBggKXn4VZQAhMBgSWnQyz8x82P2K sbAnxIT5aovcBhMNwrwjMN840AcBLp56WL2QA9MkD9bzIWnRT3bD/aXwhX0JhH4eeZe8 KLC62DCWHSQA+W56246spXUqYz6LkOJHmqAa0XJJig6no5SLituZBPKvDXMRw6da4BpW 2g== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2w5p3qy6b1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Nov 2019 21:16:59 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xADL3o6F060057; Wed, 13 Nov 2019 21:16:58 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2w8ng4n4w7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Nov 2019 21:16:58 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id xADLGv6A017761; Wed, 13 Nov 2019 21:16:57 GMT Received: from ca-common-hq.us.oracle.com (/10.211.9.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 13 Nov 2019 13:16:57 -0800 From: Divya Indi To: Steven Rostedt , linux-kernel@vger.kernel.org Cc: Divya Indi , Aruna Ramakrishna , Srinivas Eeda , Joe Jin , Manjunath Patil Subject: [PATCH 1/5] tracing: Declare newly exported APIs in include/linux/trace.h Date: Wed, 13 Nov 2019 13:15:58 -0800 Message-Id: <1573679762-7774-2-git-send-email-divya.indi@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1573679762-7774-1-git-send-email-divya.indi@oracle.com> References: <1573679762-7774-1-git-send-email-divya.indi@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9440 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-1910280000 definitions=main-1911130175 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9440 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-1910280000 definitions=main-1911130175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declare the newly introduced and exported APIs in the header file - include/linux/trace.h. Moving previous declarations from kernel/trace/trace.h to include/linux/trace.h. Signed-off-by: Divya Indi Reviewed-by: Aruna Ramakrishna Reviewed-by: Manjunath Patil --- include/linux/trace.h | 7 +++++++ kernel/trace/trace.h | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/include/linux/trace.h b/include/linux/trace.h index b95ffb2..24fcf07 100644 --- a/include/linux/trace.h +++ b/include/linux/trace.h @@ -24,6 +24,13 @@ struct trace_export { int register_ftrace_export(struct trace_export *export); int unregister_ftrace_export(struct trace_export *export); +struct trace_array; + +void trace_printk_init_buffers(void); +int trace_array_printk(struct trace_array *tr, unsigned long ip, + const char *fmt, ...); +struct trace_array *trace_array_create(const char *name); +int trace_array_destroy(struct trace_array *tr); #endif /* CONFIG_TRACING */ #endif /* _LINUX_TRACE_H */ diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 005f086..66ff63e 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -852,8 +853,6 @@ extern int trace_selftest_startup_branch(struct tracer *trace, extern int trace_array_vprintk(struct trace_array *tr, unsigned long ip, const char *fmt, va_list args); -int trace_array_printk(struct trace_array *tr, - unsigned long ip, const char *fmt, ...); int trace_array_printk_buf(struct ring_buffer *buffer, unsigned long ip, const char *fmt, ...); void trace_printk_seq(struct trace_seq *s); @@ -1869,7 +1868,6 @@ extern int trace_event_enable_disable(struct trace_event_file *file, extern const char *__stop___tracepoint_str[]; void trace_printk_control(bool enabled); -void trace_printk_init_buffers(void); void trace_printk_start_comm(void); int trace_keep_overwrite(struct tracer *tracer, u32 mask, int set); int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled); -- 1.8.3.1