Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp124189yba; Wed, 15 May 2019 20:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZdFerHVs4KA6bZBY2JKXAG8PvFpLrIy6NpOTco9SrXvDqbNKHIH1+fKj26ahx6X+3tNZf X-Received: by 2002:a63:90c7:: with SMTP id a190mr49150407pge.23.1557977617775; Wed, 15 May 2019 20:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557977617; cv=none; d=google.com; s=arc-20160816; b=NuFzrn41pJOc3jKq4muGFZmCYh8wcFeIvN33F05gJRTfb53O1rfBCfgRzZFThWcUIq oZLUM3gGULenhZ4LaBBOk6g5pTdwX6CGSv+j7eCOOXgScwoF+a9Q1q16S4+6givl+LbP TinHfpKggRLC1rIhDF8mfa0zy2fkyYFdT4EbyAHuvVzvBDpYc0/FBs7ggoY1M5cu8a/p ydEnUcQvZ4I7Le92orHhcSf2OARsNwYkCgOJqK/wRt9MMAAE7bt9FRMkpd4mr6dwc0BG OMw6bV6l+uEePFylVC6lOfA6wL3rElLUnhICHTd2BC8RsJgnqHxdC7D5OkzBcMnx+AN1 jGrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date; bh=/CHPp+61AF7r3sZfEnyueuUOWOm36tCgv6nCwk2Qi4U=; b=mtX5McGFxDr0LpQNUgS1GMw12q3tEbMZxMPtZxLK2nb6iBFqsdomhL3w2WPa84COnb r0ud+1uKGKkKBEPzj2JtCsYHWpzY4ADZtOZuhlsF5sLyxhkKOpHtW88tCdyTuO4edyuv ouUxW7z3eLWEOBw7l9ifDEfxEwvRGwG94AAnk5FsWEvYtMUAS2afhkx7gzc9yO0I5sBo eq2U3nZPaP8T7tmosBj4AZwzOYdpK4RI+NzO/+M6jWQ6KEGMaLvY69UebOIgaBfCiojE WxAP/zD8qapynLY0RqQpNu3nB9th4XzNiBe9jJgbhU6bya4SFLdWxJVWXzerrRQmY59R ZCyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si3574858pgi.276.2019.05.15.20.33.22; Wed, 15 May 2019 20:33:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbfEPDcD convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 May 2019 23:32:03 -0400 Received: from smtprelay0096.hostedemail.com ([216.40.44.96]:34336 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726218AbfEPDcD (ORCPT ); Wed, 15 May 2019 23:32:03 -0400 X-Greylist: delayed 436 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 May 2019 23:32:02 EDT Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave06.hostedemail.com (Postfix) with ESMTP id 1F1728124C98 for ; Thu, 16 May 2019 03:24:47 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 4500C182CED28; Thu, 16 May 2019 03:24:46 +0000 (UTC) X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:152:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1513:1515:1516:1518:1521:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:2693:2903:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3870:3871:3872:3873:3874:4362:5007:7652:7875:7903:9036:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12555:12895:13069:13311:13357:14096:14097:14181:14721:14777:21080:21627:21740:30026:30054:30070:30083:30090,0,RBL:50.233.106.81:@goodmis.org:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: bee45_c789c6f4c840 X-Filterd-Recvd-Size: 2640 Received: from [172.30.16.70] (unknown [50.233.106.81]) (Authenticated sender: rostedt@goodmis.org) by omf04.hostedemail.com (Postfix) with ESMTPA; Thu, 16 May 2019 03:24:45 +0000 (UTC) Date: Wed, 15 May 2019 20:24:43 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20190516120529.4c1f6e6ddd516185df149625@kernel.org> References: <1553106531-3281-1-git-send-email-divya.indi@oracle.com> <1553106531-3281-2-git-send-email-divya.indi@oracle.com> <20190516090942.75f3a957ceed20201edc91a6@kernel.org> <20190516120529.4c1f6e6ddd516185df149625@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] tracing: Kernel access to Ftrace instances To: Masami Hiramatsu , Divya Indi CC: linux-kernel@vger.kernel.org, Joe Jin From: Steven Rostedt Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 15, 2019 8:05:29 PM PDT, Masami Hiramatsu wrote: > >> >> diff --git a/kernel/trace/trace_events.c >b/kernel/trace/trace_events.c >> >> index 5b3b0c3..81c038e 100644 >> >> --- a/kernel/trace/trace_events.c >> >> +++ b/kernel/trace/trace_events.c >> >> @@ -832,6 +832,7 @@ static int ftrace_set_clr_event(struct >trace_array *tr, char *buf, int set) >> >> >> >> return ret; >> >> } >> >> +EXPORT_SYMBOL_GPL(ftrace_set_clr_event); >> > I found this exports a static function to module. Did it work? >> >> I had tested the changes with my module. This change to static was >added >> in the test patch, but somehow missed it in the final patch that was >> sent out. > >If you can send some example module patch under samples/, that is more >helpful for us to check it. And it is possible to use in kselftest too. > >> >> Will send a new patch along with a few additional ones to add some >NULL >> checks to ensure safe usage by modules and add the APIs to a header >file >> that can be used by the modules. > >It seems your's already in Steve's ftrace/core branch, so I think you >can make >additional patch to fix it. Steve, is that OK? > Yes. In fact I already sent a pull request to Linus. Please send a patch on top of my ftrace/core branch. Thanks, -- Steve >Thank you, > >> >> Thanks, >> >> Divya >> >> > >> > Thank you, >> > -- Sent from my Android device with K-9 Mail. Please excuse my brevity and top posting.