Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3308963imd; Mon, 29 Oct 2018 05:16:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5e7qXV6OBp4rNdTdIE1Yop2KvDO93iYSASUD7Yn9duJKB34uq/k9xwD61ECo9EaayDwACOs X-Received: by 2002:a62:5287:: with SMTP id g129-v6mr8395170pfb.17.1540815399794; Mon, 29 Oct 2018 05:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540815399; cv=none; d=google.com; s=arc-20160816; b=Frhhb78W3U4UfFhI23R4ATDzVVnWSKbYw/Xq+1BbJh4J1dr63j/1/rstFjLvtxBEXv dsbKqz6YRfgs4NxdIVMXQSNJ7Sj1SlKawLJ2g6LjY/iV/c+K5NQzJvg/TM59y/Z2fWru odx6vJkhxrmzjg0Vm/QLH//juiYvNtE830UBdBBuZ7OizaiMVCg2zFeGaylXPWDWcGdd dXOAYStpGx2RZ2jMGvgBIwK+EO8iSzAmSS3dgWou+6Xc+4AsuyXSWifLjhpwt0XZwWEX +yeuHYLQAWCaoP+X0LlhL1XvB6qyEyktDvoIkiaUK/Oj8MYRp5IXRFNnLsQTJfWR+GYr aMhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=sLEKKbyvwHhkDcroeY9+oVKNgUdmgNgsvBDBfj2Nh14=; b=ElbGo9wMFth7AExct43cryVfoRVl/kwjGw+yEqxzTJZfgsjZ9kup/5Ex0X1T9wHyXc ehWb84/OfCCJ8+ZKfAyDwB9V7CB+ngMMze9qp70/UdhK0V0rEKXlXLQgMAPYty5PDAlB 6uW1ZeaM91Kzy12RB4uOf4rxVbzF+DFyZyn/tA3dXeG8Mnirl3IoAqYdGJ+THFw6QS3M j+UR01L1ICYAQlNa4LbRg3CtLDA+xtPoUl7abgGLkn3RJ1JRPwtbJUQK8r+Kk3vNoQ6Z c3FjEIMqFT8LWufJ/bLxuqOGCF8nNsH6xlJZrVx+bfWcHLOt1Ez50VPvZ+kD71GGyylq VhtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="N0o/8jgY"; 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 s86-v6si20362186pfa.71.2018.10.29.05.16.11; Mon, 29 Oct 2018 05:16:39 -0700 (PDT) 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="N0o/8jgY"; 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 S1729244AbeJ2VDv (ORCPT + 99 others); Mon, 29 Oct 2018 17:03:51 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38621 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728523AbeJ2VDv (ORCPT ); Mon, 29 Oct 2018 17:03:51 -0400 Received: by mail-wr1-f68.google.com with SMTP id d10-v6so8427208wrs.5 for ; Mon, 29 Oct 2018 05:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=sLEKKbyvwHhkDcroeY9+oVKNgUdmgNgsvBDBfj2Nh14=; b=N0o/8jgYOWI/iOHZmz7TUZxMjmYsP2PMVUeH0JWPjiLen7CmTprSCGJeJy+K8bRjnX xQTWF9yBSJnU0xikP/Zqx7uYTtmmOSKLdpl66UysxoHgEOM0ScsHHk4gIdnPNTLTja0R HQBpdGWvLyif7mIvEPbvJW/fLwKh/JddxX156Qf07ITBPoJ5DtREWCN5g+q6bPg+Hb7z eJmFTCnxHdrOzpxeVlUkYhl39XozrSZGJmptTl0PMl0pOd8Q6mKoG9NocBVbIQ3Wm3At xg8ELmR68jf5+RDnYVU+wHRcciJdUhPQWPyZD58B2vTDOsB+V0W2EspacblA6FPdJQd2 pn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sLEKKbyvwHhkDcroeY9+oVKNgUdmgNgsvBDBfj2Nh14=; b=FrOXPh+vAS6vhRZHc22Jyfnd+4AAid1DHRsrtozbCIyH10NRIEIjvqpfsbPv1NU2w7 yGAEChMGezOoTuVQ2DsSTo9CB4ykY26Hqm2pmSKBByZ5oCANX/hX5n+A+Q/CJr/qUb6v FR+5QtKooGLddSmIQJsWOEa9mPbnk0NUSsBL5fDMcBR0hgahkt53xo2dFAeqASLcEbQs YGQ2BNXzoffCniA/OhIKFCOIICy1d0fYe2cc/vYfKctv27uLuSGwPuL1/hjsvE+BtPge UBPLUqlRw6V070ugNIL/SBDz282bjiTAWJkJqo/1Sn720+9rURc/vZZdOKEZ3pgGpxft +Jgw== X-Gm-Message-State: AGRZ1gLAUaYu8r875coOAddIN/4frOniMOv5JLVbyPPR1qJTeiSmGwwI oPd7l7VJ7IYm2KX3Z2t0EM8= X-Received: by 2002:adf:b716:: with SMTP id l22-v6mr15551671wre.157.1540815324342; Mon, 29 Oct 2018 05:15:24 -0700 (PDT) Received: from localhost.localdomain (ip-76.net-89-3-178.rev.numericable.fr. [89.3.178.76]) by smtp.gmail.com with ESMTPSA id y19-v6sm27359575wra.60.2018.10.29.05.15.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 05:15:23 -0700 (PDT) From: David Abdurachmanov To: palmer@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: David Abdurachmanov Subject: [PATCH] riscv: fix trace_sys_exit hook Date: Mon, 29 Oct 2018 13:15:16 +0100 Message-Id: <20181029121516.29574-1-david.abdurachmanov@gmail.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 } -- 2.17.2