Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1114833ybl; Wed, 14 Aug 2019 10:58:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFpiqKmHnsDVukctT6j+LJA1PmrrtIOYd/lHbMtg5fWBRIuElfDnqoDWL728Fk6/+n8kpq X-Received: by 2002:a63:3009:: with SMTP id w9mr371999pgw.260.1565805491246; Wed, 14 Aug 2019 10:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565805491; cv=none; d=google.com; s=arc-20160816; b=jUOdXFrMcqZrtM44ujOhYa1478qiPdwkmFYzGu7E/d+KV9wrfNxP3DGjB8Sg7QStdX qjXzjsLskJkJaSNQUn5EoCGwqdnKhNSgqtUJApo72J6jlR/61vwKzmaI39/lVuSB0SBe gGRQCvoX+gA8EOpZ28KHu9vH+TkHWMYdkWJGtR+6iwPD7QuuKJUZCseFUwkLCXgNUz0N sGXrJHpbeiztyLSoRgYylmkazhoErpqa0s1a1JoVc3PiSCtpPzgor9gl622Mtjen7Zu7 0vSfS3qmoTFr++uwUN5OuCjv9FSm95hIWcBNGlgAtCl2GeILxjYDoWOfmaDtPSBbgz4W XoXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=BKxqk+CBk51jtK7v8gTw8n53G62GPRXfoVRO6EcuU6c=; b=0j6cUVrxRPyvaGfA+ZNLqgjXwfYJlLugNZoGul/R9/UDA0FphdOTCZo8757+s2Ip1k CA7yKBpxNu6Ohld6W+qxJpkxsbTuZ1kSWo07As3cVkeEO+7GbNa50YHmI9jHNyTW8orT zVagIQxbU42jxTEq0ET3Jl/jDafWJq6Bb3yyvgVWq5tgFHTnPQFPqtGiXC+od2bUa7OO cqyYFnim6VLp8x+OduYNQ9doVuS3UMnj7hchC4/DmIpgOXqjwYjzlucGfU0l2ntwKTZa 38cApXPOSVVRmfgAjBBTh5SJGTm7kRr+6K5WsN4yMavPGo6/LaK6gwLxMQlwziXCF5VP D6Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=PneBln1q; 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 w9si288112plp.329.2019.08.14.10.57.48; Wed, 14 Aug 2019 10:58:11 -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-2019-08-05 header.b=PneBln1q; 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 S1728992AbfHNR4J (ORCPT + 99 others); Wed, 14 Aug 2019 13:56:09 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:50340 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbfHNR4J (ORCPT ); Wed, 14 Aug 2019 13:56:09 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7EHrs7p120496; Wed, 14 Aug 2019 17:55:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2019-08-05; bh=BKxqk+CBk51jtK7v8gTw8n53G62GPRXfoVRO6EcuU6c=; b=PneBln1qQwbiRopUdXPAnFRgh/ykeMQFzk+ajFK+2K7qfyCRqVv/90ZjC4FRGP0tDSVA vOsG1tFHTsmpzjni7FN0rizE+IDdzWNFNoU00TR8jRklXI34KTcqMxPOZUPII16P0KAR 57P9O41GCt3M968B3C4xxx1A5Tkq5OAf+yNsIg9xEbZH9G9YTGgXzwEXvxApj8RQgr9U kWXCZe7+ULeQG03hTeA04T5QaQqMvKblWwLwnLGtEpAsn6lSEvlmWSdBwwIY/OIYOjfo xF7FRjGC86IkERxOLTB8x/MMgobbIgGobojqq+SJ4QJq4gsV/tT+ImV7exw8x4f6/oeh GQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 2u9nvpef61-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2019 17:55:38 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7EHs2Sh027519; Wed, 14 Aug 2019 17:55:38 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2ucgf01g8y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2019 17:55:37 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x7EHtaEH025328; Wed, 14 Aug 2019 17:55:36 GMT Received: from ca-common-hq.us.oracle.com (/10.211.9.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 14 Aug 2019 10:55:36 -0700 From: Divya Indi To: Steven Rostedt , linux-kernel@vger.kernel.org Cc: Divya Indi , Joe Jin , Srinivas Eeda , Aruna Ramakrishna Subject: [PATCH 0/5 v4]Kernel Access to Ftrace instances. Date: Wed, 14 Aug 2019 10:55:22 -0700 Message-Id: <1565805327-579-1-git-send-email-divya.indi@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9349 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=825 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908140160 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9349 signatures=668684 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=874 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908140161 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In addition to patches introduced by commit f45d1225adb0 "tracing: Kernel access to Ftrace instances") we also need the following patches to reliably access ftrace instances from other kernel modules or components. This version addresses the review comments/suggestions received for v3. Please review the patches that follow. Divya Indi (5): tracing: Declare newly exported APIs in include/linux/trace.h tracing: Verify if trace array exists before destroying it. tracing: Adding NULL checks tracing: Handle the trace array ref counter in new functions tracing: New functions for kernel access to Ftrace instances include/linux/trace.h | 10 +++++ include/linux/trace_events.h | 3 +- kernel/trace/trace.c | 88 ++++++++++++++++++++++++++++++++++++++++++-- kernel/trace/trace.h | 4 +- kernel/trace/trace_events.c | 25 ++++++++++++- 5 files changed, 121 insertions(+), 9 deletions(-) -- 1.8.3.1