From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51B88C43331 for ; Fri, 27 Mar 2020 17:10:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2FA7F2073B for ; Fri, 27 Mar 2020 17:10:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727548AbgC0RKY (ORCPT ); Fri, 27 Mar 2020 13:10:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:45478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgC0RKX (ORCPT ); Fri, 27 Mar 2020 13:10:23 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 BC18C206F2; Fri, 27 Mar 2020 17:10:22 +0000 (UTC) Date: Fri, 27 Mar 2020 13:10:20 -0400 From: Steven Rostedt To: Eugeniy Paltsev Cc: linux-snps-arc@lists.infradead.org, Vineet Gupta , linux-kernel@vger.kernel.org, Alexey Brodkin , Ingo Molnar Subject: Re: [RFC] ARC: initial ftrace support Message-ID: <20200327131020.79e68313@gandalf.local.home> In-Reply-To: <20200327155355.18668-1-Eugeniy.Paltsev@synopsys.com> References: <20200327155355.18668-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 27 Mar 2020 18:53:55 +0300 Eugeniy Paltsev wrote: > + > +noinline void _mcount(unsigned long parent_ip) > +{ > + unsigned long ip = (unsigned long)__builtin_return_address(0); > + > + if (unlikely(ftrace_trace_function != ftrace_stub)) > + ftrace_trace_function(ip - MCOUNT_INSN_SIZE, parent_ip, > + NULL, NULL); > +} > +EXPORT_SYMBOL(_mcount); So, ARCv2 allows the _mcount code to be written in C? Nice! -- Steve