Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4166757ybi; Mon, 29 Jul 2019 20:43:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwt2oiB2YfEnH+C97SozR92ykIpHqP1Ti4fuhG8PjDxmvs+LueX5EHZy8Ff1U0fXASFAE3P X-Received: by 2002:a17:902:e282:: with SMTP id cf2mr114633315plb.301.1564458205424; Mon, 29 Jul 2019 20:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564458205; cv=none; d=google.com; s=arc-20160816; b=EyaxTxoK0kfcLxCXhzRoZ0g+OmGVusWj0oFF+MLT5EEjKwCQ9Y4aEP0ubJ5ITwQmT3 9nyeqxCCjW2oalvqqBQrr6WXwA7jiMeLpHEzkHcsyB3qGUI7DltTHveq/5k7n0w/isSK VLx0yAtLNojM4ialEjpWX9PLek8QYuO4gN5AkP2rb1S3WUovkJQ5ZfDm1ynSivr7oB8Z mHgzCHwpw4DXsYDmCsCSH9JF112paJ0o1K+itDTvTE1s/5hxaFNXGEnukTPupzXm7ocQ gDm55HJrp2VPeAjIIr8deixNEvD9JVY7e1AVpVn6gAQ8uEf3pQh7+8qNR4NKVnjXZHwo RmHA== 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=GTTsI3hpmzv6xCZNf1ZA/IXD4/gevv4MHq+lAe5XQeo=; b=E56zGXnatmq2HQCkkTVtupzIwaD/c5Ha5TrkZ9FhuKuNfY6EbcxqiG2k209OB1driC JkrH1r214JZR3KX8D1AUBj7043JKfoA7FdDOcCA9Lcir+C32QJOVfSyaweDPARkE7NKN XETTtDHJVRDdYCpUmpfK8EGR1a3zs2d0QIvtusw1sV87skc4fudeE9O7B2IYtIRI94XF CvxmSq2M4ZEfhnYM39eTaXKEq/td/fUKoOnxtoG+NLHOgCjq2t8FDU/nJJxcKgJ+YcEv +8jnNvO4LxVSSga4ZREsNx0c2qpmogvRRiuSaFNALgsksxbn5VLS/k+af68nbH+Ytkr0 7IBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Jt5OWAIt; 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 97si28055875ple.161.2019.07.29.20.43.10; Mon, 29 Jul 2019 20:43:25 -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=Jt5OWAIt; 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 S1730252AbfG3ADk (ORCPT + 99 others); Mon, 29 Jul 2019 20:03:40 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36772 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730074AbfG3ADR (ORCPT ); Mon, 29 Jul 2019 20:03:17 -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 x6TNwrOS162454; Tue, 30 Jul 2019 00:02:48 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=GTTsI3hpmzv6xCZNf1ZA/IXD4/gevv4MHq+lAe5XQeo=; b=Jt5OWAItE5LzxetmSmKAJTDlVmN9fEN5FdBs+b4L1OLWRYJteXe4G74U+f+2z9nF+B/Z 1gLkDOQ78QH5gsAk7uD3IOt42IHwi4D5WJre0JtDR4Tr1JXl2dqgA3WwaY1qQS6mOOkf dR0A2g3vcPoTWijhv7BfA1fvIR/YXguq3Qr8/1iPFddDE3B6P7wbTsJ1qiPViGPX1qOr guPvZWAlVmPcPS4dLhTRLDGFC5zOuLPQ5bE30ijX65VUHwaRRii4HPM79Yj+xGRbp6VN DUa0G0LFpeeS6Q2lTTc7ZvNAXQADswF0IISIbhtY+pPYuDWImP63wNxe4pG8UVvB4J1I 7w== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2u0f8qtpgs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:48 +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 x6TNvbef019532; Tue, 30 Jul 2019 00:02:47 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2u0ee4kv30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:47 +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 x6U02kqG012418; Tue, 30 Jul 2019 00:02:46 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:46 -0700 From: Divya Indi To: linux-kernel@vger.kernel.org, Steven Rostedt Cc: Divya Indi , Joe Jin , Aruna Ramakrishna , Srinivas Eeda Subject: [PATCH 2/7] tracing: Declare newly exported APIs in include/linux/trace.h Date: Mon, 29 Jul 2019 17:02:29 -0700 Message-Id: <1564444954-28685-3-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 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 --- 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