Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4800286imu; Mon, 12 Nov 2018 17:53:04 -0800 (PST) X-Google-Smtp-Source: AJdET5fn3TUPDHy9m4UmMz67EIvN7X3m9flpq1+unBKS4s8uC9kBqJd+gUtNkhI4ynbhbf/WNP2V X-Received: by 2002:a62:4bc2:: with SMTP id d63-v6mr3361564pfj.170.1542073984721; Mon, 12 Nov 2018 17:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542073984; cv=none; d=google.com; s=arc-20160816; b=mTuSslPpairto60fZT/a7Sx2d+/+DmY4nXh5zRvq8nrBZJgq1kaNVtL9V3cubOEuq9 Parama1xkxLgB0ObNe2hCRc1M6rTv8L/YLwSm6VR4iXEiSEOnKqYBNvtRIRslcvhYe+n cmMRK8eKUXHI8Yi9Iv8xsR5rzkZXufls3JynIJvmwKa+zIJahfrDWbFl921IG3TtM/xD RHkv4Kuu+Fy1mGRHpmzAxoFBbpJk6bmmbXoWPt98N1LUAlwzJZXyZPhztXz753VfN6jj qAxwe+KIAVxB6NyjnlUqUUGRKQ3cWwqj79TBgxlo/xsc3hsq12AvkhWCvU4C1yt7XAJM CNFg== 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; bh=lPIYX214JFzy507QtU7I3//hmmsVsRBy3z9ehCqlawc=; b=WaVnyoV+FOs1asa4dy4tm6+p2JOV2cwYSLfi9k1kKWBaKP65U5tdhXkmCY/w0jMAfQ qRASj0kTnWUfY207IYOtHELz0iigFJRvtDPNMmAusjDVcq+LhA4fs7UC1T98BpNbgSfi Q88tMIg65PvT1QWPX/KtnjWGtwxpFtLcv687lmL571tRgXrkUnwhc6Ue/u3k2T5AzE3u Pv5SPZJ9sEc5tTm0PfyZ+lgpAt4VSbINM+v49wH+cRgvh+Gh1WdqYtDfqQSuP/1G+drL YrgbNE5+BOpX7mewK5w2Ho74yI3FZ98vkctqnlLzCrvLhMc3Hx6fGK4wkG8szzrgMSw7 HNaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="UTH0u/Ao"; 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 b3-v6si19660136plc.103.2018.11.12.17.52.48; Mon, 12 Nov 2018 17:53:04 -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="UTH0u/Ao"; 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 S1730467AbeKMLsN (ORCPT + 99 others); Tue, 13 Nov 2018 06:48:13 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44934 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeKMLsN (ORCPT ); Tue, 13 Nov 2018 06:48:13 -0500 Received: by mail-pl1-f196.google.com with SMTP id s5-v6so5173232plq.11 for ; Mon, 12 Nov 2018 17:52:24 -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=lPIYX214JFzy507QtU7I3//hmmsVsRBy3z9ehCqlawc=; b=UTH0u/AoyFVkKhK3tExRMZBbrM48ERyEBlo2wy/wbcrWINZUC0GyxQ8nyutpfrVeVG Sqi997WbAJ2M4AXVu3hjh1OFMwd3Q5liFCOUAqTpYzghCEL8GvG9/xHTQzx/P5V8rNaX 6cRMMRcrlDTdFNGNGQEnY3jcQ1/m4rcEGvRhQRLUYKCy9iBKTTw4/JKKPbj3P1NzrtKY BRoA5/LxlmDX3IWCDXqf6AGApaUYRO5vJXnzzlIoZztNc2PkAR2s/K5t2XfDnwMYaa4F 7Bbbws1gx+kGhZwVx6vKHE45V+YoUrt0k7LarY4SLt54c6oMKnvbr0SNFPw8ZkTNRhBQ ETlw== 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=lPIYX214JFzy507QtU7I3//hmmsVsRBy3z9ehCqlawc=; b=UmrMPv2tH0s74mYH8SQ+Jln2qHRubf4IWmhzGwHg7hxJaFsANtHc/63SjpzlrSfO5D HWCdvCQafNbBwQtbcZ4g3CetOiu5Jir91fwS7XUFlIV1af3sYEr3lDIkP8Ac7DJAslpA uB0nssapsjUXh4QPz+QtzaVqUivphUvVPEt8YSFrSreE9dQqEsDVMswiIRijbkRHyVcV BTVNMXsFbUG+MW9san23sl7iKX5DIx/XuUmbBC1nE/4RVhAEa8n+w2AGVii1oH4qt8xd 3tf+MQnFLwqkKePZtgKicXIbKGzRNnTNQMNMqgXUMQvD9pVeSVCcqek9djwIE/xI9g1Y pTWA== X-Gm-Message-State: AGRZ1gLbe02VVWdCOFm/82JPPmGm3/9wMa3PsYp1/85CkJfqOFFi3B08 N5LyPMVPsh4tx9Lihbe7iUYalw== X-Received: by 2002:a17:902:e00a:: with SMTP id ca10-v6mr3100060plb.166.1542073943795; Mon, 12 Nov 2018 17:52:23 -0800 (PST) Received: from localhost ([216.9.110.5]) by smtp.gmail.com with ESMTPSA id v74-v6sm27958211pfk.12.2018.11.12.17.52.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 17:52:23 -0800 (PST) Date: Mon, 12 Nov 2018 17:52:23 -0800 (PST) X-Google-Original-Date: Mon, 12 Nov 2018 17:38:59 PST (-0800) Subject: Re: [PATCH] riscv: fix trace_sys_exit hook In-Reply-To: <20181029121516.29574-1-david.abdurachmanov@gmail.com> CC: aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, david.abdurachmanov@gmail.com From: Palmer Dabbelt To: david.abdurachmanov@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 Mon, 29 Oct 2018 05:15:16 PDT (-0700), david.abdurachmanov@gmail.com wrote: > Depends on: > http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html > > Why we don't have HAVE_SYSCALL_TRACEPOINTS in arch/riscv/Kconfig? > > Signed-off-by: David Abdurachmanov > --- > arch/riscv/kernel/ptrace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c > index 9f82a7e34c64..9db7d0076375 100644 > --- a/arch/riscv/kernel/ptrace.c > +++ b/arch/riscv/kernel/ptrace.c > @@ -120,6 +120,6 @@ void do_syscall_trace_exit(struct pt_regs *regs) > > #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS > if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) > - trace_sys_exit(regs, regs->regs[0]); > + trace_sys_exit(regs, regs_return_value(regs)); > #endif > } I'm dropping this onto next-audit on top of the other two. Thanks!