Received: by 10.223.176.5 with SMTP id f5csp1393773wra; Wed, 7 Feb 2018 18:59:39 -0800 (PST) X-Google-Smtp-Source: AH8x224TO0PTucEd2/SQC8htsMNDq8/0QTH2Z2TplR9bJC+R7dXJMnco+4XmeR6LuDzxZGavm1QI X-Received: by 2002:a17:902:68c5:: with SMTP id x5-v6mr8142228plm.80.1518058779094; Wed, 07 Feb 2018 18:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518058779; cv=none; d=google.com; s=arc-20160816; b=J57t2kZWA9gJlC8Kf4FYr28Iic8rjVLDzC3OEqvRSZDb6XOC9wl4iAI3A4wNsYkDor giBcxAiGMK+yZysflFxBA+sXicRY7OQVgU59cjPeh1iRHLfs1osonABXnCFbqLYhorGh KQCrZOsFeoX8vQ3fCAj7TcBwH/7NDu3CKX77tvBTdq9FvgZ9Ixe4+EC6hHyuwlamukmV /MO/D046xg/mUjHK9Qi747NEGhKErHTim4gcVJFcX2Xto2PrqQe9DVlEjN8hGK6NQtRq viMavceWhbRSqB48Rr/sK+AP87/lMOrU58LKBugCTkpNIRS3Sga8ibhex+UwnEKU5Iw5 hHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=KCgL6oC0SOBVjBMncmXlbSylyHH3+KmFya0AU1M0Uk4=; b=YqjxDxRlpmloIa6fvbxxzBU0SY29ibLaO89nDyb5EY4ALrvwyVilN0ciFD5N8eGI4m FrU1C5DgSwBySTOo/tEM0OcCcd+Kk6MlI+Fnw4OpD1A50JFE41LmrHt8ZAyWzrg4q44B XmeSyYdCsKmJ8d6y46fGgAQglsBHx5A6UH8Aq7roRN9S80a7Vbh4m0EfsBIOHw+GtGNB gOONtkzDHEZhZJrj4BiLm6vRJU0ElvhTIF5HVdwl8P1HEVEYMTefrVCpUf8cJofJiVY0 b0TAIUfoEfPPQRdmWkramD8TKC99njy1QzxcGWwBq9546zgFyRugUfjUrTTmHw/JOdej j7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nc0VBg1+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12-v6si2051978plz.165.2018.02.07.18.59.25; Wed, 07 Feb 2018 18:59:39 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=nc0VBg1+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbeBHC6A (ORCPT + 99 others); Wed, 7 Feb 2018 21:58:00 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39757 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeBHC56 (ORCPT ); Wed, 7 Feb 2018 21:57:58 -0500 Received: by mail-pl0-f66.google.com with SMTP id o13-v6so1360609pli.6 for ; Wed, 07 Feb 2018 18:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KCgL6oC0SOBVjBMncmXlbSylyHH3+KmFya0AU1M0Uk4=; b=nc0VBg1+rt6pjhwflLvKXgOfcqM6oeF1BVs11LJgYQsNbHemlCg3ILBp04YVQe9VAW 50MfWgcn4+xK0ujnMDlZJNkCP/tn8YrNGJQlYdW3qHtHYKi6GnMexzZtL0S/wFA34AAX PorjUdRtosuXj9doiO9kdwNPQfQU9Tiq5yfPqbHo/SYw35nd3gicd0zOlu09wR4zQs7m PjInISqwCbp8iCABZMlRnaldPYnSAJ/EiV5stm+5RYAlUavJ7MNJExG2bMSo29tCUMa4 olITvRvphgeBfZx91ONY0cpPlc/0IcXZuxi2H6lVLawfqiPkTH5GL60/mZgUMrrRgaM4 smug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KCgL6oC0SOBVjBMncmXlbSylyHH3+KmFya0AU1M0Uk4=; b=Z+a1Orb+rGT86Y2ha+ZcE3iUelblvZIDJoCxeG8WpGnMms/6Qd8xbnhoBIQETllXqL d3OitFFLWnpPq3nwn9OGIeakDZdojSsY1S/6UUfef6UHN1i4ce77BD6HqITf538gTD60 gVG7zOHJOVdKtiwKS2uuc/2b3LeZtyItQWVlc/5+e03ERuk3LOnVE3xJqa2nUVsmMrAV OXM3Ll8ZTJteSPzHzJkJtM5pt3+8Nj3Im10jxITdj2SFtpGCD5JiyO3ZnOwKGB7xUgQv cjPYJk1pfIwnKSdxxPCsHcJwZFu86A3DQnijijTly2RvFLS7WTmm72a8v4XdF6tlKR/4 Nd4A== X-Gm-Message-State: APf1xPDZ8YpAOTBljIBPhsdR8gM5RcZ/PlNbNUgzZk0+o5T37j4fnsGe N9yaDoxqmYtBYFK7qyavGvQ= X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr8321777plb.3.1518058678033; Wed, 07 Feb 2018 18:57:58 -0800 (PST) Received: from 75c3b24ef355 (36-226-155-58.dynamic-ip.hinet.net. [36.226.155.58]) by smtp.gmail.com with ESMTPSA id i4sm5781761pgr.73.2018.02.07.18.57.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 18:57:57 -0800 (PST) Date: Thu, 8 Feb 2018 10:57:52 +0800 From: Alan Kao To: Palmer Dabbelt Cc: albert@sifive.com, rostedt@goodmis.org, mingo@redhat.com, yamada.masahiro@socionext.com, n54@gmx.com, akpm@linux-foundation.org, patches@groups.riscv.org, linux-kernel@vger.kernel.org, sorear2@gmail.com, alankao@andestech.com, greentime@andestech.com Subject: Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms Message-ID: <20180208025750.GA3903@75c3b24ef355> References: <20180118154545.17987-1-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 07, 2018 at 04:37:10PM -0800, Palmer Dabbelt wrote: > On Thu, 18 Jan 2018 07:45:39 PST (-0800), nonerkao@gmail.com wrote: > > This patch set includes the building blocks of dynamic ftrace features > > for RISC-V machines. > > > > Changes in v3: > > - Replace the nops at the tracer call sites into a "call ftrace_stub" > > instruction for better understanding (1/6 and 2/6) > > > > Changes in v2: > > - Fix the return value as writing to kernel text goes wrong (2/6) > > - Replace manual comparisons by calling memcmp (2/6) > > - Simplify the conditional assignment in the Makefile (1/6) > > > > Alan Kao (6): > > riscv/ftrace: Add RECORD_MCOUNT support > > riscv/ftrace: Add dynamic function tracer support > > riscv/ftrace: Add dynamic function graph tracer support > > riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support > > riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support > > riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support > > > > arch/riscv/Kconfig | 3 + > > arch/riscv/Makefile | 3 + > > arch/riscv/include/asm/ftrace.h | 47 ++++++++ > > arch/riscv/kernel/Makefile | 5 +- > > arch/riscv/kernel/ftrace.c | 142 ++++++++++++++++++++++- > > arch/riscv/kernel/mcount-dyn.S | 241 ++++++++++++++++++++++++++++++++++++++++ > > arch/riscv/kernel/mcount.S | 22 ++-- > > arch/riscv/kernel/stacktrace.c | 6 + > > scripts/recordmcount.pl | 5 + > > 9 files changed, 461 insertions(+), 13 deletions(-) > > create mode 100644 arch/riscv/kernel/mcount-dyn.S > > Sorry it took me a while to get around to these. Do you mind submitting a > v4 that's based on linux-4.15? I'm getting all sorts of merge errors trying > to "git am" these. Sorry for the misunderstanding in the previous email. I will rebase the set on linux-4.15. Thanks.