Received: by 10.223.185.116 with SMTP id b49csp187546wrg; Tue, 20 Feb 2018 18:50:26 -0800 (PST) X-Google-Smtp-Source: AH8x226DQa3eaiir0hJlHONPVyz1D7Cd4s3P4B0JskRbL6Qz8llSMQDTsgwTQTw7jN/0NkSYfJyl X-Received: by 10.98.112.70 with SMTP id l67mr1739275pfc.196.1519181426588; Tue, 20 Feb 2018 18:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519181426; cv=none; d=google.com; s=arc-20160816; b=l8Yu3vDkDR+L68rh6ypD/uU6j+KFtso49DRk17Pp0KhBEey6Lyy6locOlqNecLzcvJ 9i1R67JStlXjyYeCZ05xiFdi8XNLxSPdw+2F2B2gCIstIzvsp162jBXUfaH05whdvuJy AlYa/uh4owZwXppezO7oAeYS6MOZYUlpskNTk/U7x2x1EWb0yMVZBHK0xgbVTWBX3BFt FequaOSKf3JwM1WuvOsL3oN0FkfHbah+sXFR1azEFHp+HXs3TVOxfcECzIbzzhWvwfQH yKMuPTL30y2TANYQ3baUGR6FLmUuCoGaeJYjqcre4NNWeO0dbVf51Dgf3+8zwANC8tuB sDag== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date :arc-authentication-results; bh=UGZp1Sm1bGJ98vzeSYfnQYrEoloYUqe8wm99ORMP6sY=; b=wblo+AFkyh34B5i9tZ6vt4O0cO3GFIkAdFLDGlxqApGhWbc43tYERuouVGuuHpfqzO IDKDRXesxHyIUcUjsaNACQx+e4YMTH+Uq6Ijy0UPpzxTKg1Iw89YBO++MVyhO1A8EDVb 7yY8yOtAPDTkPZZUe+5fAUpKiTQwZS51yQJCpknO15GkqIry3ZbaX+SYy2Mlot/WFP5d 4WWMm+n0Lxa+ROxC0Nb3oCY7O6GI8+1EFRVGWyi8nAFyLGvD+Zot3HfPx7TOrJXk87B7 aTNlyK4urSIAUxUFLef+pV3CTlGuX9KJTgxbK5fYnkbaLAE5JB7k/5pBslDn3FpcNfdQ xpHg== 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 v85si500538pfk.237.2018.02.20.18.50.12; Tue, 20 Feb 2018 18:50:26 -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; 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 S1751509AbeBUCtO (ORCPT + 99 others); Tue, 20 Feb 2018 21:49:14 -0500 Received: from exmail.andestech.com ([59.124.169.137]:28923 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbeBUCtM (ORCPT ); Tue, 20 Feb 2018 21:49:12 -0500 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w1L2kqgT073710; Wed, 21 Feb 2018 10:46:52 +0800 (GMT-8) (envelope-from alankao@andestech.com) Received: from andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Wed, 21 Feb 2018 10:48:42 +0800 Date: Wed, 21 Feb 2018 10:45:39 +0800 From: Alan Kao To: Palmer Dabbelt , Albert Ou , "Steven Rostedt" , Ingo Molnar , "patches@groups.riscv.org" , "linux-kernel@vger.kernel.org" , "Greentime Ying-Han =?utf-8?B?SHUo6IOh6Iux5ryiKQ==?=" Subject: Re: [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms Message-ID: <20180221024539.GA3735@andestech.com> References: <1518498801-677-1-git-send-email-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1518498801-677-1-git-send-email-alankao@andestech.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w1L2kqgT073710 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 01:13:15PM +0800, Alan Quey-Liang Kao(高魁良) wrote: > This patch set includes the building blocks of dynamic ftrace features > for RISC-V machines. > > Changes in v4: > - Organize code structure according to changes in v3 > - Rebase onto the riscv-linux-4.15 branch at github's > riscv/riscv-linux repo. Note that this set is based on the previous > ftrace patch, which provided basic support. > > Changes in v3: > - Replace the nops at the tracer call sites into "call ftrace_stub" > instructions for better understanding (1/6, 2/6 and 5/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 | 56 ++++++++++ > arch/riscv/kernel/Makefile | 5 +- > arch/riscv/kernel/ftrace.c | 175 ++++++++++++++++++++++++++++- > arch/riscv/kernel/mcount-dyn.S | 239 ++++++++++++++++++++++++++++++++++++++++ > arch/riscv/kernel/mcount.S | 22 ++-- > arch/riscv/kernel/stacktrace.c | 6 + > scripts/recordmcount.pl | 5 + > 9 files changed, 501 insertions(+), 13 deletions(-) > create mode 100644 arch/riscv/kernel/mcount-dyn.S > > -- > 2.15.1 > Any comments?