Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp389299ybm; Fri, 29 May 2020 02:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS9NtUJ2GJaX1XJKLh+vcnLYL+NBs3v98R2cedr99kD22gSquVxsMz1MTWLLBc7bk3EIGY X-Received: by 2002:a17:906:6d5a:: with SMTP id a26mr7148877ejt.410.1590745441256; Fri, 29 May 2020 02:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590745441; cv=none; d=google.com; s=arc-20160816; b=OcxulH0U+xiutzLu60TkLZHcaMr7qMNKLROY6fiUp7mKhFWiRbmWqeX5Gj9YmNiSvr RPe358XRdJA141fj7XIpZNHO3lzSCFDNM56T02it8+2DdvBgx9E9nKh34TbuV8S/2r2I zZajVK+CQ78vfGqJQtGGYCk7DKV8dtuY8OGu+7ZipCcZ9TRA3HxtHsvL7TTWpbKoMqix ghHMGd6+oY04bg8HJyNhYejq7duE4x+0dtn2bdVyvZn/q6xhOur5Xei70u3KXuXJ3x7L 0fzRyYVFJ4Kfo/ORvWqLOZo4noYfpy3iDtDq4mYpDJ2SmXj9oI/OTeNnSY2ahCLtv7kd j3+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Uum+TSGpq71GwfsJtBNedCeyEc6Z9fkcVUCA8E9ObGY=; b=hhfBkruKgdkp3VXP+ku7BHF9/kB/vcAZq0ulPdHhyRFbSgfWaUBC3gVnxX0FmGSpy4 s1nq5MhuYcIrmPlXonDy7giUR4vWrZ6wf6O9wz0mcy9WDnLY35ObWsR3vKBps9ZVVkY4 LLur1owM8RRWX+gY61KGRdXlRp8Rrg6SjesM4bMkz9qMliPZmd/r5lZYwZPtLTAxeEhN lssBmBY1VY3mq8TjTQUt4HbdUi40sBdJ184PSPD+JsIG1wTkzyYFN6G7N73lMDQIwXh/ 4yalIpF6wNWRMBwRscB7ufuDNUke7NVnpb5PuYNKOGT9g5Afx2Q7s0WJWGtjHS08W5ls v0YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@xen0n.name header.s=mail header.b=VddNvCRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si5227097ejx.345.2020.05.29.02.43.38; Fri, 29 May 2020 02:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@xen0n.name header.s=mail header.b=VddNvCRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbgE2Jlh (ORCPT + 99 others); Fri, 29 May 2020 05:41:37 -0400 Received: from [115.28.160.31] ([115.28.160.31]:50498 "EHLO mailbox.box.xen0n.name" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgE2Jlh (ORCPT ); Fri, 29 May 2020 05:41:37 -0400 Received: from hanazono.local (unknown [116.236.177.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 583C6600B5; Fri, 29 May 2020 17:41:31 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=xen0n.name; s=mail; t=1590745291; bh=VcWN+q8Jj7hAxPSqzkCtFA6pRPi8htA6nJOu2KYPqKc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VddNvCRk64cGmTSVBcQ8Zu21cRdRfOXESVZ1stCH7BUAzPtOW3hJShj3mwVC0lrXR EN8Zadz8UT1QUbjqM3eqPcVIIbynrTBmNafxIqfFjDq00g00F2yN4zGsKA4lVbaF+D dBWcIL/ZhFoanvzvPAAKq8yERypx7pHboQH1iDTY= Subject: Re: [PATCH] function:stacktrace/mips: Fix function:stacktrace for mips To: yuanjunqing , tsbogend@alpha.franken.de Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, liulichao@loongson.cn References: <20200528123640.4285-1-yuanjunqing66@163.com> <11c90f15-0a25-e628-c8db-53343c351085@163.com> From: WANG Xuerui Message-ID: <43f35844-f78a-74a2-0e3d-184c3567d74f@xen0n.name> Date: Fri, 29 May 2020 17:41:31 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.0a1 MIME-Version: 1.0 In-Reply-To: <11c90f15-0a25-e628-c8db-53343c351085@163.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/29 17:29, yuanjunqing wrote: > May I ask if you have received this email. At least I have received the complete thread in my inbox, so others may well have no problem. It's not polite to ping maintainers just one day after sending your patch BTW; keep the patch submitting guide[1] under your pillow. Lastly, don't top-post even though your message body is short. [1]: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#don-t-get-discouraged-or-impatient And a bit of review while we're at it... > > ?? 2020/5/28 ????8:36, YuanJunQing ะด??: >> ftrace_call as global symbol in ftrace_caller(), this >> will cause function:stacktrace can not work well. Chinglish. I can't understand this despite being a Chinese myself... >> i.e. echo do_IRQ:stacktrace > set_ftrace_filte The commit message is truncated? I can't seem to make sense of this line. >> >> Signed-off-by: YuanJunQing >> --- >> arch/mips/kernel/mcount.S | 13 +++++++++++-- >> 1 file changed, 11 insertions(+), 2 deletions(-) >> >> diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S >> index cff52b283e03..cd5545764e5f 100644 >> --- a/arch/mips/kernel/mcount.S >> +++ b/arch/mips/kernel/mcount.S >> @@ -87,8 +87,15 @@ EXPORT_SYMBOL(_mcount) >> PTR_LA t1, _etext >> sltu t3, t1, a0 /* t3 = (a0 > _etext) */ >> or t1, t2, t3 >> + PTR_LA t2, stlab-4 /* t2: "function:stacktrace" return address */ >> + move a1, AT /* arg2: parent's return address */ >> beqz t1, ftrace_call >> - nop >> + nop /* "function:stacktrace" return address */ >> +stlab: >> + PTR_LA t2, stlab-4 >> + /* ftrace_call_end: ftrace_call return address */ >> + beq t2,ra, ftrace_call_end >> + nop >> #if defined(KBUILD_MCOUNT_RA_ADDRESS) && defined(CONFIG_32BIT) >> PTR_SUBU a0, a0, 16 /* arg1: adjust to module's recorded callsite */ >> #else >> @@ -98,7 +105,9 @@ EXPORT_SYMBOL(_mcount) >> .globl ftrace_call >> ftrace_call: >> nop /* a placeholder for the call to a real tracing function */ >> - move a1, AT /* arg2: parent's return address */ >> + move ra, t2 /* t2: "function:stacktrace" return address */ >> + >> +ftrace_call_end: >> >> #ifdef CONFIG_FUNCTION_GRAPH_TRACER >> .globl ftrace_graph_call