From patchwork Thu Dec 6 15:26:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Abdurachmanov X-Patchwork-Id: 10716163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6082E17DB for ; Thu, 6 Dec 2018 15:27:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F1E72BBDC for ; Thu, 6 Dec 2018 15:27:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 433542D33A; Thu, 6 Dec 2018 15:27:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 04A672BBDC for ; Thu, 6 Dec 2018 15:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sXfAztwrQ+hcEhRciM8To3Q8uj0kYOrh1tVkn4cWuTw=; b=i5iIzj7PLutlpv UIqTQ9i/zKaZ2OXVR/4yzd13bzVQAkuzQuZknS0uLvCz7xQxhhj7l2xmM0IALAbTeQ6geGazchNZq vlMnoLYJ88UpLe0C3b/7pTyqjM/P+YxvHrSTkeBe2Upg5r0G+dH1BdzdN5f6U1KJyqdYTBnyspZ4L XwMcJe9A360b8lIcPhtiAgdeDn35DCrh817Ixz5Igmrfs0nRZD/k1rPojOsksuUJn+UBuHDObaTD5 hmbjK8Gdp04VNMnd9+yxm2coMue8W+q5YwqDyYf4lLgdCXrJW7g9EJifmAVmCQct5U7LgzvMu5lOZ 9Pfxm7dU43Rk+Yv4l+8A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUvYg-00047d-Ov; Thu, 06 Dec 2018 15:27:22 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUvYI-0003Mk-48 for linux-riscv@lists.infradead.org; Thu, 06 Dec 2018 15:27:06 +0000 Received: by mail-wm1-x342.google.com with SMTP id m22so1478107wml.3 for ; Thu, 06 Dec 2018 07:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UMyQ0l8+47IG6BmvT/+HBiVzvTDCovW0W1P3gCfHncc=; b=hVg1RZDurGz7XeOvzS137o1lccXwXH7Q8+VSheaXlUkJT1DFHTAq9KOI+HM5yZ5V21 EJfX0EN3j7Hf+Q7vOBbOmBZCWd9/oL4jl5tGPbuymSFUK2OTchG0umHOC8/jPgXzk0t6 BmP5RQiIfFf8qxxr8hJmE/x3KfWnEw4m9f7CPb40UTeFRzGsjLQK5DEw+uMnla1P5jut 5SGXqVIEl9JajuNKqoIkdB9K7kF1GPIgokIrrDbkcFkB2AZ92COLNAgFr9JyDuJtu7Zy IALaiQKedPwuG89HuJUn5zULHxn3vlFW4nfZrxaNi+fyp+at7P1S3BSM7TRvretBsEFW bDrA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=UMyQ0l8+47IG6BmvT/+HBiVzvTDCovW0W1P3gCfHncc=; b=R3anIZPhjFDFqCigDtHvIWp7Ynt0GHtMLqmURQ1UTnfCP1B98sfTFb/p0u5JomW2kD PDYTk43ZEy5eZtgiKT/gsxu416HYUqxkoNMKVk5iRDTiTqzXnhyNnMMbRK88hyP4yg+3 0ZX54wAu4wz6l+/sCk6MIX8Sw66BJ0i9tcmAV41jIoKUh1clV10ugwwW1SOAIRDgQb2M c+gab0C5ezerLkQiWS43SzqTNETMkYHhcbHKjXBSLzkacay6Iq7vMFwMCvn+Xiyf0a6x 5o2fgrtqoa+aMwTXxVPbcHhkJejkzSEy8egpjkyfOubb8dayizb3ZjBzjuMUWdzH86P+ t6EQ== X-Gm-Message-State: AA+aEWaark44iJQobTwe/FDdltSwf7glLIVPwpqRUV+kJo0fDonFmf9a pl0tzTii2GPtaTAeYm7r4bDv9MPWdXI= X-Google-Smtp-Source: AFSGD/W9W6wYjJuqQqRRih6JBEIdEae18Xjv/h0/qgKCz1CNQwzm2KLnHJYOhjElTRzGJFQTEtp0IA== X-Received: by 2002:a1c:3a8d:: with SMTP id h135-v6mr19942350wma.92.1544110006437; Thu, 06 Dec 2018 07:26:46 -0800 (PST) Received: from localhost.localdomain (ip-76.net-89-3-178.rev.numericable.fr. [89.3.178.76]) by smtp.gmail.com with ESMTPSA id w6sm529728wme.46.2018.12.06.07.26.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 07:26:45 -0800 (PST) From: David Abdurachmanov To: palmer@sifive.com, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 1/2] riscv: fix trace_sys_exit hook Date: Thu, 6 Dec 2018 16:26:34 +0100 Message-Id: <20181206152635.1869-2-david.abdurachmanov@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206152635.1869-1-david.abdurachmanov@gmail.com> References: <20181206152635.1869-1-david.abdurachmanov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181206_072659_516115_6A434F61 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Abdurachmanov Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix compilation error. 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 c1b51539c3e2..2fd9ec48106b 100644 --- a/arch/riscv/kernel/ptrace.c +++ b/arch/riscv/kernel/ptrace.c @@ -177,6 +177,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 } From patchwork Thu Dec 6 15:26:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Abdurachmanov X-Patchwork-Id: 10716165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3DA8C13AF for ; Thu, 6 Dec 2018 15:27:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B38D2BBDC for ; Thu, 6 Dec 2018 15:27:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F8DE2D33A; Thu, 6 Dec 2018 15:27:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C26F42BBDC for ; Thu, 6 Dec 2018 15:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vqNSnVWhuGTdIAi1gzLkfV86PRd4drZtvh7CAy6T1wE=; b=Fjso/Em+/Rqfa3 ejg7/AbdWV9p4pGVWDcyUICR/BgV4yyEMFY1++MPUo3LOLBC9iNnQcUcXvTKqeNhF0JCuFJN+Hsz0 tIlcO0J1s+9cdoH6O+D834shi85ZJ76YreQE/3UkGXSYf2nupZQ40aEh/2mgepWDvpvXlF29MXa1O K1EPDYv1YXcRKJDwUQp/almD3yp9+vlA6NTbeVVT01b5PhAHJ4xyDgy/TlIKeXU73/0lSzJU+n74F s9JarLTzDkjFdHR+ae838sQq/vUsMYUwdjwI6SmfYwv/U2Dyn1kMnt1JIyRZYrC7LWo9KQr32TMEo tPxXYNgWzGTbL1xT9n4g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUvYi-00048v-2k; Thu, 06 Dec 2018 15:27:24 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUvYL-0003Qy-Ef for linux-riscv@lists.infradead.org; Thu, 06 Dec 2018 15:27:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id l9so840212wrt.13 for ; Thu, 06 Dec 2018 07:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DtX6dNPPTmO8fgeltf7XOI+iRx6USDoJtU287CCOJhI=; b=oNrNrhHxGhfH9PPwGeGPFhvnXEPcGTvsNLabCdnZMQY7RIez+Fux02hwuIKFAHu/8F grEj9k2U45sU78PPWbEgXkYh5Fn4/2oVnZJ6WAA4lStjJenzIdXb1IxdgwUMYEOI2G4S tU8xMR1NP6oV3uHANQUNN47qhzY5MXHdcJx4L8NOhRsp35NJaVGHAaXv2/Yd7KHE/2WM mSwPNyHw9ZHUbpCyDDCH+30Ihr8wfUL0JQbd2L+xFWTd8JpoNpthkp6sEXLnqFPQPBT1 n9P/qVnO776PGUeiBjnM+avH2OuhAS+74LxgIyI8T2FEWHZxrM0xBg0WTNmGhcBfjvf0 tejA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DtX6dNPPTmO8fgeltf7XOI+iRx6USDoJtU287CCOJhI=; b=rXuJVIGvGFUAw3WsXAU1/xkWZp+dxJ1AGgUaf+yw4iadhZ+fUPMoew5Ms3ndpoNFBi ydlkumgoHpzp7veLhOAyyjPYtniG3IfCW0Z5ShkWP91cVb9koigmDBdeMvHoWk2Ii+9c TY3XLA3dEtEZ8wT1LE6jFPgLpjizNDv7CNS1uZwi/4s3O/5YY/Rl331BVVo2xLwDzOzq geSwkf3Mu1eYzza5/RJx/31FOteDDnI9lGkeq6U9ylV6sZ/EPkcZC035bUYOpP1HfHbg K11xr/1GJq/RbvCBUspKjtsOFkzypdvMF81KN9raUaIonn7lqPd45LYhT9L2VrVSxqv1 wL/A== X-Gm-Message-State: AA+aEWZeMSqdokogVFzBsot1Pp1ecP0AZrsTydeTaTk0EQ2Sz8q8OCaT J7AtS6bYDCPH3A6n7Dcjdy4= X-Google-Smtp-Source: AFSGD/VGIjpNPa1GOgXmds0Fyod3SWV+qytPU4wWzW2BLRRbEbsBLdCeZNNHq4k6/XrgeVAOSlKhYw== X-Received: by 2002:adf:c505:: with SMTP id q5mr25237434wrf.84.1544110009804; Thu, 06 Dec 2018 07:26:49 -0800 (PST) Received: from localhost.localdomain (ip-76.net-89-3-178.rev.numericable.fr. [89.3.178.76]) by smtp.gmail.com with ESMTPSA id w6sm529728wme.46.2018.12.06.07.26.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 07:26:49 -0800 (PST) From: David Abdurachmanov To: palmer@sifive.com, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig Date: Thu, 6 Dec 2018 16:26:35 +0100 Message-Id: <20181206152635.1869-3-david.abdurachmanov@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206152635.1869-1-david.abdurachmanov@gmail.com> References: <20181206152635.1869-1-david.abdurachmanov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181206_072703_360401_42874A8A X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Abdurachmanov Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP I looked into Documentation/trace/ftrace-design.rst and, I think, we check all the boxes needed for HAVE_SYSCALL_TRACEPOINTS. Signed-off-by: David Abdurachmanov --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a4f48f757204..6749c22ee656 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -34,6 +34,7 @@ config RISCV select HAVE_FUTEX_CMPXCHG if FUTEX select HAVE_GENERIC_DMA_COHERENT select HAVE_PERF_EVENTS + select HAVE_SYSCALL_TRACEPOINTS select IRQ_DOMAIN select RISCV_ISA_A if SMP select SPARSE_IRQ