Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4165956ybi; Mon, 29 Jul 2019 20:42:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4W5hsulYPgt1hzd+i6SitrenjFlcpus1SqTdk3tJyvmjiMTU/skNeFVpSHseqeXGTX0Sy X-Received: by 2002:a65:62cd:: with SMTP id m13mr41522593pgv.437.1564458134262; Mon, 29 Jul 2019 20:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564458134; cv=none; d=google.com; s=arc-20160816; b=S0H/xelEvxPLDXhVj0t/J9c33QxJnhIpgebjItqLO2KwRkQZ6ufJN3jBRq94tARt+D TRJDxh+OAoWriUod4GF0VvJX+RkyAjyksxR66zuSY57eudW7qN0i5AioMPSM0bzHOlK3 6qXBgeFmZz3whWq5tQeHQF5wx/iPaSE3Ef341BUaO9Cc2CEB+EicM+MA5MiXeoYLHyKy 5kRKlUEVGT7XY1BdtoCxj0pi1VPB13cumsKKqzXl0sOOvY9aaZ8hkqFWwz9yXjMlDYiB BJJgFZOTtW4RBgzfqQAswcEi7iI2JlolLTB3Rcix0Eu5deoQoViRVXP5bGq7VisXZu4P 8m+g== 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=MFPK0VKdAnqdVd7edEXECtqh0kam7Svpl/9gcOtuoUs=; b=gkd0vxaG2w5HggN/rkQaNDFA9uOYS7LNfbP1y4TYITy8mGEvgnBI/wn46GRF0S86NS GUphisyyLEBTyUREKQyUKVBCTJ5Jdaj31jDfVRd5agneMY++kC6QgaPNn9tNLixf5bse NNhlgQSAebabNJmPPOL6rvV7X0U6jD683qiESFDdvt3z7Gi2gZnjnzEQZgr8fZyyNqKK NF5w1lG1riekbSslvhIBownLsZw7Eng8bFLQVXrL/3oh7gL2kCzDQNnx5dTZGkLAqalX Ki1Igo0PpbxdKCHPRubgrZ0egZFLOVS9pbJWjXA8FOSccbkQgXLe5LIeSCc23JB6ktEP Bfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=MeeUzHKj; 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 x13si33217755pgf.275.2019.07.29.20.41.58; Mon, 29 Jul 2019 20:42:14 -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=MeeUzHKj; 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 S1730044AbfG3ADO (ORCPT + 99 others); Mon, 29 Jul 2019 20:03:14 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36728 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbfG3ADO (ORCPT ); Mon, 29 Jul 2019 20:03:14 -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 x6TNwmWX162427; Tue, 30 Jul 2019 00:02:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=MFPK0VKdAnqdVd7edEXECtqh0kam7Svpl/9gcOtuoUs=; b=MeeUzHKjiijBQbiNEuPd6ZWaGO4So2GG6KNiHDM9MRpZZwo+6wTygvxlhO6m3jsZFvde ixnszMgXDHM/0WQSAp1+zY9+Rr7ESytHoPqyBjzwoMMYoPZOpADMCiD3V7lYNSdhVGh2 32bUeHBZfyUnS3iaqUGCoAktnfm80ECNJvd2233yF3G8X9RbFMr3tKmxkyl4Eim8Y2zI q2Zetv/J9Pd3VLECsLGTilSXK6jSnrv5y75mZ3EpqZTvVrU6nWe6KAjgVDBPermI8oWp QslBuHWT+p+5Gi9DdirRKoFo5AIq+QUOeyk16J2Ryk0aGC6Ga/Gqog/q5ljwOAUeQrGC VA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 2u0f8qtpgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:44 +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 x6TNvbBx043252; Tue, 30 Jul 2019 00:02:44 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2u0dxqk1ba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jul 2019 00:02:44 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6U02hTA003725; Tue, 30 Jul 2019 00:02:43 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:43 -0700 From: Divya Indi To: linux-kernel@vger.kernel.org, Steven Rostedt Cc: Divya Indi , Joe Jin , Aruna Ramakrishna , Srinivas Eeda Subject: [PATCH 0/7[v3]] Kernel access to Ftrace instances. Date: Mon, 29 Jul 2019 17:02:27 -0700 Message-Id: <1564444954-28685-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=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=847 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=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=895 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 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. Please review the patches that follow. Divya Indi (7): tracing: Required changes to use ftrace_set_clr_event. 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 tracing: Un-export ftrace_set_clr_event include/linux/trace.h | 10 +++++ include/linux/trace_events.h | 2 + kernel/trace/trace.c | 90 ++++++++++++++++++++++++++++++++++++++++++-- kernel/trace/trace.h | 4 +- kernel/trace/trace_events.c | 25 +++++++++++- 5 files changed, 123 insertions(+), 8 deletions(-) -- 1.8.3.1