Received: by 10.223.185.116 with SMTP id b49csp1349741wrg; Fri, 23 Feb 2018 17:03:34 -0800 (PST) X-Google-Smtp-Source: AH8x22530Iy3x8Fw90IMnccGW3z8b0c3RBc90kfzXmXA+wKGcqEWD+UnzgDzHTEVg2laW3ViBnKH X-Received: by 10.101.64.10 with SMTP id f10mr2711424pgp.171.1519434214199; Fri, 23 Feb 2018 17:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519434214; cv=none; d=google.com; s=arc-20160816; b=x+XurhAMO66dDICBIcy/aFy02trnQEveevBQ9SCnTq74JON1OJxFCQgQwcJqsKAJAv 6HdX7wbKpMUoql5LdrPh3IiaE1/sglYTx63ppiJ562NPhNr9y7uvqlyxvxpIUolaagr8 gF84QEh95DouJhqjzr4lKakJpoB4BHBi5vqbcYFyfos8JddCloiHqakR6JFzcQ2R57HN 34qcghKwuJT1DynQxlsVdTr1e6xwPzOxKk+FgUSpnUVM/VCa6iJ1fN9dyEV9ek7SPcxB 8TVfTskir0YpI3TPfY5pdujtx1qERADjgyFNaVMvbNriay+sE9pn/dT2qxZfTHynEERB bVuA== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=lUq85an1I0HneiZ9zzdV45D01rk1fvhOTMhG3/4EGPs=; b=T/ytSRyQfPXS10bPfX1oE44oFPizpjeUpnTNseecARfbRU/YPRHq6x3lhDPhD7PIOK QBBRLC2MYUDDz/tvs3gY7I/F3Ljmh/TSnyrHZMrm+sOZ2YzTbGxgJFSmFKbsp5H8bGJo aQLPl4lHP/zc75sVTiGPPJMglucIAD4XRXJPBZupMw5uYp0KdX9SvrtzxXK40s5WvEXa PIG2uaBmpjBMn/gJgpiaHshfxqgQ5+yuF6yFV+tOcTr1on2SCwCOvfFjk0Pf/lW4+AZX NVHF+GvLyHSfCsX9VtnfE+dx3JMGYuRWiY6tE60nFkm8NcAcWhB0aSPKTi1VjIuLe7Gr cKHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=k5ck/xBu; 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 o88si2637497pfk.380.2018.02.23.17.03.19; Fri, 23 Feb 2018 17:03:34 -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=@sifive.com header.s=google header.b=k5ck/xBu; 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 S1752148AbeBXBCo (ORCPT + 99 others); Fri, 23 Feb 2018 20:02:44 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45833 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbeBXBCm (ORCPT ); Fri, 23 Feb 2018 20:02:42 -0500 Received: by mail-pf0-f194.google.com with SMTP id j24so4198998pff.12 for ; Fri, 23 Feb 2018 17:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=lUq85an1I0HneiZ9zzdV45D01rk1fvhOTMhG3/4EGPs=; b=k5ck/xBuB6jRLGHk4pnCiMjwamxFKGhfMZYqPYNxnQCZN70mnwHirX61I7TfexN5Kq B0uTlIA3YtgA3JZwHWoH4EcuNeIHIUZvIFE66ZaEPPRPjBtyvaRKFLDi7kqA0x5kzuJh 8awtD3u3L4TBj8tKxiEk3kOUIk//9YTlWPp/5+LXtG1vSA2SpiPOljgY5NfZDbVfQwBd mpED/1ShqixuCgFF+VyNefsltfWvgWkHL3bZqI3DXccQSiYSvwHd62dpsw6+kqfwBZzk 2PuWiQBe/NavVkNihMpxNsvhZVmqE5+OLBQet/XeyfO+kygZbj1H3UKJLAFotlE3Xils Y7HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=lUq85an1I0HneiZ9zzdV45D01rk1fvhOTMhG3/4EGPs=; b=fAI60OiA/F1Lc7b4BEqQQ/cyX83D81jyZuJN0qs85TT8JmQZMkJMzOkICRDgPWXMsU pNTyMtJGydpRMfrJlQvRcolPvmGWrhCGstgaCbi5XFfWsMoVNrs9yVUhmuxWq0gdrUi8 fwrg70g/h6sSIlYgkoBh9G+oS5P0FJWXhMeGQ8X2tbjCcykRoSdRt0FbF4+5+ty7HYAg YDkwd0SN/zmeJL3mdVDBhCcYEOpqNSMo53pZB0jltkCiOhOPH1rk+tLw/G69Kya51KDm bDgidV3kg9i2gEeUmT5eURMlJ7C2mw+opJh10n1rFxz8O1MQyDO+ncGiCtn4g+UtmwSX uQlw== X-Gm-Message-State: APf1xPA2m/0qCdPLrMzlO4liw2uVoddHFaaMNXczZkT3QNeMrnli61wv PADizujJZ4ArfwzymBQODdstBw== X-Received: by 10.99.167.2 with SMTP id d2mr2769841pgf.408.1519434162207; Fri, 23 Feb 2018 17:02:42 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id x5sm7687730pfm.49.2018.02.23.17.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 17:02:41 -0800 (PST) Date: Fri, 23 Feb 2018 17:02:41 -0800 (PST) X-Google-Original-Date: Fri, 23 Feb 2018 16:57:50 PST (-0800) Subject: Re: [patches] Re: [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms In-Reply-To: <20180221024539.GA3735@andestech.com> CC: albert@sifive.com, rostedt@goodmis.org, mingo@redhat.com, patches@groups.riscv.org, linux-kernel@vger.kernel.org, greentime@andestech.com From: Palmer Dabbelt To: alankao@andestech.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Feb 2018 18:45:39 PST (-0800), alankao@andestech.com wrote: > 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? Sorry, my email latency is a bit long now as I'm still backed up from FOSDEM. This looks good, it should already be in our for-next branch.