Received: by 10.223.176.5 with SMTP id f5csp1292735wra; Wed, 7 Feb 2018 16:39:25 -0800 (PST) X-Google-Smtp-Source: AH8x225ptrtvVcYT+HCtFwvqyTLNiPb0F4Faq3OLKE83N9gNqgkRHAty5AMHLd0oUR59DLcQdnOB X-Received: by 10.98.103.83 with SMTP id b80mr7671983pfc.12.1518050365631; Wed, 07 Feb 2018 16:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518050365; cv=none; d=google.com; s=arc-20160816; b=vROdro5YbDCE5PcvoW3eKbv7qw4BDO7mt3RAGzmVjIvWgPvYKM2bcnfXsdLR302u/7 9KVkqKw8TDJ4q8KcFhSK8xgbxGhrbw/XXnwFni8VId1GTzcIwVYPZ0T+bfwFIEEHKvBD iZkb5i5ji7TSk/eTh1nxdidFP3pf2h2+VSi8NO5j+Jdx4+OpKJW+dfVajC0YONq3KYq+ 10UY/h4TFM8o0QUzgSlUQ+ULgDlmYQRlFgtMmo7gN8OGuCe2tHrKfIDtn59btiZeFH64 amiMdakvwwgqZaJE2vo1ahdrxE0XSsFK8N1JCyK4P1jjs6mGPPijdwn/o61e9vCrzP3w qtMQ== 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=/kdZPwIJrobSGncgY8bOn4NzSTUA9xMbjPLMhUx54t0=; b=O24pyscE2kMApoHxUV3SLwhX05daxy3Kagtpip91vAp83YRmK+SZQtFmo6V9dauCQp LlMVhxbZLfmQbBvWOCxCbB46g03pmIT19SqbjAa8g6kcyG0MbbJId3HeMGfJ32JZxryb mVbawInvOi+Qwn/aolObIzWVx+pUTj8GnFd9lvGNp9AkIx2GvXD+z4ko3EXE+6V1dtT5 J0bPWe2RS8R6dm2adNgfNJ/52pYLXpN6a1tqEo7Ye3bSagkPP0pCVDM+ewQUZ47bhQL2 IysAaRP08zeeFtcmkUTyNhGWV2vYsNc2yyihPaVh2XXJ2zosBCOt1C4tLARBrk0zcDY0 5zuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=esN8zYMx; 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 y3si1634330pgb.145.2018.02.07.16.39.10; Wed, 07 Feb 2018 16:39:25 -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=esN8zYMx; 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 S1752046AbeBHAhN (ORCPT + 99 others); Wed, 7 Feb 2018 19:37:13 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35269 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbeBHAhM (ORCPT ); Wed, 7 Feb 2018 19:37:12 -0500 Received: by mail-pl0-f66.google.com with SMTP id j19-v6so1139802pll.2 for ; Wed, 07 Feb 2018 16:37:12 -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=/kdZPwIJrobSGncgY8bOn4NzSTUA9xMbjPLMhUx54t0=; b=esN8zYMxLWwIKA+PtBB0aX4ts3Zrw7J6He9miVzU0xofjqGEfGzzJqHL3QdbVJrnZz BGp0aJOspZ+vnXyxWYEw8Y6oWLenyp71Ox3w6Y26s1RXN6XDUfVypUaMUDwBWsOQDQUf Ol3aojhp5e5p6jAYouSoNP8pEt6x+nigvVlvQNMFv9dJO0rJBNXzmSBUZt3zsWbOAfe9 A5Pscdl6/V3Vb5TqjKjR0RTQhmADXM9we5o5yVOXDZKQDoe85rySP+xA+OZgZ2Vy7EG3 jfiqSHV/s2qSur4r615pCP1EOTHDzs3efM7Gcf/05Ap/OzadGEyfic9vFJuWSe7IvyYW Nm+A== 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=/kdZPwIJrobSGncgY8bOn4NzSTUA9xMbjPLMhUx54t0=; b=tw+mYqM3Cy02S7vtc3frvwCMZ7Uhtq5O0Qa8+7oX1HcHkrgdKPQX5ep7BuIY6P1b29 i0ErlcsKvTW68MsLzeyMwULqNjAxqV8TXIXn8r0z1kN8MexlawXVbPRKaI684zB+qdvT zYgjNThHuu0JmXBz6bpL5+Lye9EU/a5skIOYJEKW/XE3rwgvfC7J++M3FhqYh3mmCkQQ L5fQSIwyM9OU89bTKwvQIh85dgg5e8/LsWFLzxCnga4nL66bcLP8gUuk/5ZZfB4GJMmx sgaqolsmikqER4Q/SKupo3P3NBf8b8DrTYzqNxeCtpzMDuvT5Tq6U1CxwqcsxXp8iK3u utJA== X-Gm-Message-State: APf1xPBQMBhoArUqzhPb5woxKBfcrA1TR6rBlt2+tY0sKhPqPYi1vexM RRxrz8zMuQCWJu9o07BJcT07VQ== X-Received: by 2002:a17:902:e2:: with SMTP id a89-v6mr7708025pla.98.1518050231701; Wed, 07 Feb 2018 16:37:11 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id b81sm8617578pfm.89.2018.02.07.16.37.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 16:37:10 -0800 (PST) Date: Wed, 07 Feb 2018 16:37:10 -0800 (PST) X-Google-Original-Date: Wed, 07 Feb 2018 16:37:08 PST (-0800) Subject: Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms In-Reply-To: <20180118154545.17987-1-alankao@andestech.com> 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 From: Palmer Dabbelt To: nonerkao@gmail.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 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.