Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp56062yba; Wed, 15 May 2019 18:51:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdzkSHCivMgUoeeV6QE2oUVKaTK/0n2cCMjaTFBg9s0PMdKRoc65QAe8XoxR6MW/Ppz6v9 X-Received: by 2002:aa7:8c48:: with SMTP id e8mr51092482pfd.80.1557971487233; Wed, 15 May 2019 18:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557971487; cv=none; d=google.com; s=arc-20160816; b=dpduV9v6Bf3+l9aPih60TRGQVqzjZGyvZxZHRqTbnyVtLegnIci/rbLC3oiYD5Zsm5 4Df1wLsZgGHeC/LxkpmFFY9KdwGIxPNhKZcvDDxn8kOixdz8Sp1tWF2FoCUvsGlBWRkE yXpy14j2z26PMd48shD2EYE0SPBx5nxVE73/8tb4o18/iikOYrxdCxbxGIKbobQ0jzVy 45+WxRkMorA4fZeM7PE/Xu/gj/jdHe/St2fswaB3IcUm2m5QqlVon7bgFNpvfLT9JQ+x BJFftpbbBexg4RWAAnu6R6biHMb0CTen+Xsy7eXBIICZjoLiiwrwJhi2P1xRXHIm2vdu s0kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NJU4OpKq6fBiTQNPWSRoJ4mFq8grYANM8iTMYy14P+U=; b=lzZAweWDesArXzq28TCT2eUvC00+WpNvDcseU3j9q74WpByvrKGZjziX7SSDo3sTWo kGDx1GzqpcAEptm1eUAZgEcLaUXvqJaxe30kYpLeyIRhpUl9mvPsCX4SUumMA0k6UAgS TJJmNqg11hbbICySu3tasWkUY3nxyC03HB3bQ3jaQYdkhGP/+iHFizHBHGvjvJSWOPuJ OFKbFdLD8T/hEKEg2gh+YsopnFrWXWKReFd3Od1NCHW6W9u/e4KKvbfo2r9jeQ+reKt6 8/3Mjojx/iLUUb+1gIJpUgR+QD4NazA9O4dDR92Bex53q9AVKcUY+eRpeTgpI91xb24N Xb0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MprtKYYA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si3414843pgg.235.2019.05.15.18.51.12; Wed, 15 May 2019 18:51:27 -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=@kernel.org header.s=default header.b=MprtKYYA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbfEPBq2 (ORCPT + 99 others); Wed, 15 May 2019 21:46:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:57362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbfEPAJq (ORCPT ); Wed, 15 May 2019 20:09:46 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4303920818; Thu, 16 May 2019 00:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557965386; bh=/mA5r5W/A7V4rUyFc2FCpKil99JwrJtw0RfOspQouPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MprtKYYAB+Uh/i8PK10BaZbdvTTLwfT3fMgG/M5sHmCJujx6HclXH64rizpJAHRci OwUKXyrY8is01ZL57SZFCyRpukPjx3RnJHbAPZm1iHuLjrIvt41FmhwGhkHtMfn0zl 2MA0guPR4P49aw9hwgtNqALjb+1BCJ4hFR8fmOPA= Date: Thu, 16 May 2019 09:09:42 +0900 From: Masami Hiramatsu To: Divya Indi Cc: linux-kernel@vger.kernel.org, Steven Rostedt , Joe Jin Subject: Re: [PATCH] tracing: Kernel access to Ftrace instances Message-Id: <20190516090942.75f3a957ceed20201edc91a6@kernel.org> In-Reply-To: <1553106531-3281-2-git-send-email-divya.indi@oracle.com> References: <1553106531-3281-1-git-send-email-divya.indi@oracle.com> <1553106531-3281-2-git-send-email-divya.indi@oracle.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Divya, On Wed, 20 Mar 2019 11:28:51 -0700 Divya Indi wrote: > Ftrace provides the feature “instances” that provides the capability to > create multiple Ftrace ring buffers. However, currently these buffers > are created/accessed via userspace only. The kernel APIs providing these > features are not exported, hence cannot be used by other kernel > components. > > This patch aims to extend this infrastructure to provide the > flexibility to create/log/remove/ enable-disable existing trace events > to these buffers from within the kernel. > > Signed-off-by: Divya Indi > Reviewed-by: Joe Jin Would you tested these APIs with your module? Since, [...] > 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? Thank you, -- Masami Hiramatsu