Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp687263ybx; Thu, 7 Nov 2019 01:01:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzITlSv9tQLnlLZ+SYvh1eHkoIJAYxg6672zraPELCXyHO6ALz1fuhLK3P8pEE4sUBJxh3h X-Received: by 2002:a05:6402:2042:: with SMTP id bc2mr2247923edb.167.1573117279279; Thu, 07 Nov 2019 01:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573117279; cv=none; d=google.com; s=arc-20160816; b=pQWPT5uMShQz+Qiil9QrZYsAFWWTaUwW9IwI/3+L0IcRFkxopCIXjxVs8f6rR88dZP BAugEKIfLi9akUF/OLcNVmYXkJw9y/yGPgIYAHTuyirjACvpOBpKytp77iKS/7LWeNCs bpAteKfRGxYP/ShAyNF1B3HtgY9ohUqRrqsQ5ZlZiww9bU1X3Y8FioDa84a6tsbWdynD gmuqyZyIovo/oOsQZnVGDXd4nQMOo7GQDwvsSilzQR6wbazOc6z9grD4AwjcGkxzmnZ8 lu+fz1lTSSYt7crKQwG6oo5w180knmhuEKc2p55K9NB4qSjdsQr/4NoZ9jjOfGG6XOU8 kqfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=6/Dn38AHuTTqzHYmM8d85ghJi9EkAoLDo1fx1CJYtJQ=; b=za/zv8xFWz0uGZGFWgDyeWeLVd8Fc8JBYTnSUtvUCrbD6ddEJuFpRLqLqmMGD+eIlq bebHJLF6txClOeGloxatj+pEjXg6SKxVFV/3vGUqIXrgUx41mbVgiUOZ732nYyYwpFJB K2W7bT31+AzgfkATmXi8qGmXufXyybPF+ZmLIpN9D2ybk7PYt7uKAQZpeLaLIB7qguUm JgwHvoHapvwe3HEuVIDXW9qlRcOmQL3I8ByAbQj2/61weZkLFk6NH/ovvaVXtM98lfNH q/MqmI4mRQPbkEVgw+MKqWSG6sO1dxF6MirgWfI/6EP+YE8tTQbN980Xpg+5Tr2B53CS cAfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=v20R4Qvp; 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 k3si980322eji.300.2019.11.07.01.00.52; Thu, 07 Nov 2019 01:01:19 -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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=v20R4Qvp; 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 S1733292AbfKGJAF (ORCPT + 99 others); Thu, 7 Nov 2019 04:00:05 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40195 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733290AbfKGJAE (ORCPT ); Thu, 7 Nov 2019 04:00:04 -0500 Received: by mail-wm1-f65.google.com with SMTP id f3so1449495wmc.5 for ; Thu, 07 Nov 2019 01:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=6/Dn38AHuTTqzHYmM8d85ghJi9EkAoLDo1fx1CJYtJQ=; b=v20R4QvpzFz1C4Gj2P+w54EU/62JG91sF5VhOXvcom3pGDmnGL+eupMYKo1xiI3uem K7XULOh2ncLxyoFncLMknJRrB2RfFTmSPjekkfordENXeYTEtImy0H/FymvJwS2L5ZVF SI+enH3PRpAFUL5zxDGNquMTvs/w/zcJgKioy48WA6Oi7e8lfqtftrU7UvhwREdrdWA2 r+vf6nBq3EKdOoGmA15wQAfu6t+3U2keSj4LSfte/LtGtrkx0R8KlIeXqaeYlMV/Xerq IaKUniXGpy3a9pwDN2Y7IBRJqf8tkTgPpLXpicX0yRBRAP2Rux6KQz9viWys1+IiLeRv wMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=6/Dn38AHuTTqzHYmM8d85ghJi9EkAoLDo1fx1CJYtJQ=; b=HJdKDLPq+aF2RikJhsv7kFkt5xyhsa377QH3LADodZe/y15JQtd19tTb30fQm4Cbwh rxXJ+5rLyAeqIEzMrSt+XX5B/WQzscXMcl0QWSHXbhTE7qBn4uHTnIEzP4Jzyo1Bg+up dDHxKTnyK6p9wSD3zk9oK/MqNPc+gQWxlfKHdtUKdY79OxrMiOjwlOt6EvGruRogqB7c JDOVfrQDNgMPQb48x1IcZb/6z2WYkk+0OMYqkI7gRlCGtMzFwhpHTEkv10aiPpZaQyxc xYMXjQiKt+xUU5CLx8+2hdTMM0kF8R6pp36ZOtRhnZ4vGQLDGH0XVjBK9Nc91Hdu2w8O 741g== X-Gm-Message-State: APjAAAWojsiVwyia96N2F+OlCPA445yUnujF6GHzHIK74dtdYGwXPTmc fXiogKb0v5wylAk8V1WC+VfpLA== X-Received: by 2002:a05:600c:22cf:: with SMTP id 15mr1606821wmg.148.1573117201050; Thu, 07 Nov 2019 01:00:01 -0800 (PST) Received: from [173.194.76.108] ([149.199.62.130]) by smtp.gmail.com with ESMTPSA id z189sm1674369wmc.25.2019.11.07.00.59.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 01:00:00 -0800 (PST) Subject: Re: [PATCH 18/50] microblaze: Add loglvl to microblaze_unwind_inner() To: Dmitry Safonov , linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Jiri Slaby , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Tetsuo Handa References: <20191106030542.868541-1-dima@arista.com> <20191106030542.868541-19-dima@arista.com> From: Michal Simek Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; keydata= mQINBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABtB9NaWNoYWwgU2lt ZWsgPG1vbnN0ckBtb25zdHIuZ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ABqJG9fyMvZVX3P EwIAdQuPb2h1QLk5KnknUNikjdIZa9yRC5OnUDwV3ffG4Gsb+xtEL7eTLlbFPgBRUmvy6QbE 9GjRSSvlab6Mj5tocPBA0CSsonfLCiHlOLvjdMsdmX5NDUpDCo5QMSNEfHEmV3p+A/NOQ/Hk Qg41tpHgK85MlNXw6MBWLgdXBSGdD0zVX4S4Gz+vwyY1 Message-ID: Date: Thu, 7 Nov 2019 09:59:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191106030542.868541-19-dima@arista.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mfk3GpJJGkDZD5QO2VkBCLlyhXHUpXo43" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mfk3GpJJGkDZD5QO2VkBCLlyhXHUpXo43 Content-Type: multipart/mixed; boundary="uP9y87WU2pqIVTsChg0LLqTMaE7Kh7U3l"; protected-headers="v1" From: Michal Simek To: Dmitry Safonov , linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Jiri Slaby , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Tetsuo Handa Message-ID: Subject: Re: [PATCH 18/50] microblaze: Add loglvl to microblaze_unwind_inner() References: <20191106030542.868541-1-dima@arista.com> <20191106030542.868541-19-dima@arista.com> In-Reply-To: <20191106030542.868541-19-dima@arista.com> --uP9y87WU2pqIVTsChg0LLqTMaE7Kh7U3l Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06. 11. 19 4:05, Dmitry Safonov wrote: > Currently, the log-level of show_stack() depends on a platform > realization. It creates situations where the headers are printed with > lower log level or higher than the stacktrace (depending on > a platform or user). >=20 > Furthermore, it forces the logic decision from user to an architecture > side. In result, some users as sysrq/kdb/etc are doing tricks with > temporary rising console_loglevel while printing their messages. > And in result it not only may print unwanted messages from other CPUs, > but also omit printing at all in the unlucky case where the printk() > was deferred. >=20 > Introducing log-level parameter and KERN_UNSUPPRESSED [1] seems > an easier approach than introducing more printk buffers. > Also, it will consolidate printings with headers. >=20 > Add log level argument to microblaze_unwind_inner() as a preparation fo= r > introducing show_stack_loglvl(). >=20 > Cc: Michal Simek > [1]: https://lore.kernel.org/lkml/20190528002412.1625-1-dima@arista.com= /T/#u > Signed-off-by: Dmitry Safonov > --- > arch/microblaze/kernel/unwind.c | 35 ++++++++++++++++++++-------------= > 1 file changed, 21 insertions(+), 14 deletions(-) >=20 > diff --git a/arch/microblaze/kernel/unwind.c b/arch/microblaze/kernel/u= nwind.c > index 4241cdd28ee7..9a7343feadf5 100644 > --- a/arch/microblaze/kernel/unwind.c > +++ b/arch/microblaze/kernel/unwind.c > @@ -162,16 +162,18 @@ static void microblaze_unwind_inner(struct task_s= truct *task, > */ > #ifdef CONFIG_MMU > static inline void unwind_trap(struct task_struct *task, unsigned long= pc, > - unsigned long fp, struct stack_trace *trace) > + unsigned long fp, struct stack_trace *trace, > + const char *loglvl) > { > /* To be implemented */ > } > #else > static inline void unwind_trap(struct task_struct *task, unsigned long= pc, > - unsigned long fp, struct stack_trace *trace) > + unsigned long fp, struct stack_trace *trace, > + const char *loglvl) > { > const struct pt_regs *regs =3D (const struct pt_regs *) fp; > - microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); > + microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace, l= oglvl); > } > #endif > =20 > @@ -184,11 +186,13 @@ static inline void unwind_trap(struct task_struct= *task, unsigned long pc, > * the caller's return address. > * @trace : Where to store stack backtrace (PC values). > * NULL =3D=3D print backtrace to kernel log > + * @loglvl : Used for printk log level if (trace =3D=3D NULL). > */ > static void microblaze_unwind_inner(struct task_struct *task, > unsigned long pc, unsigned long fp, > unsigned long leaf_return, > - struct stack_trace *trace) > + struct stack_trace *trace, > + const char *loglvl) > { > int ofs =3D 0; > =20 > @@ -214,11 +218,11 @@ static void microblaze_unwind_inner(struct task_s= truct *task, > const struct pt_regs *regs =3D > (const struct pt_regs *) fp; > #endif > - pr_info("HW EXCEPTION\n"); > + printk("%sHW EXCEPTION\n", loglvl); > #ifndef CONFIG_MMU > microblaze_unwind_inner(task, regs->r17 - 4, > fp + EX_HANDLER_STACK_SIZ, > - regs->r15, trace); > + regs->r15, trace, loglvl); > #endif > return; > } > @@ -228,8 +232,8 @@ static void microblaze_unwind_inner(struct task_str= uct *task, > if ((return_to >=3D handler->start_addr) > && (return_to <=3D handler->end_addr)) { > if (!trace) > - pr_info("%s\n", handler->trap_name); > - unwind_trap(task, pc, fp, trace); > + printk("%s%s\n", loglvl, handler->trap_name); > + unwind_trap(task, pc, fp, trace, loglvl); > return; > } > } > @@ -248,13 +252,13 @@ static void microblaze_unwind_inner(struct task_s= truct *task, > } else { > /* Have we reached userland? */ > if (unlikely(pc =3D=3D task_pt_regs(task)->pc)) { > - pr_info("[<%p>] PID %lu [%s]\n", > - (void *) pc, > + printk("%s[<%p>] PID %lu [%s]\n", > + loglvl, (void *) pc, > (unsigned long) task->pid, > task->comm); > break; > } else > - print_ip_sym(KERN_INFO, pc); > + print_ip_sym(loglvl, pc); > } > =20 > /* Stop when we reach anything not part of the kernel */ > @@ -285,11 +289,13 @@ static void microblaze_unwind_inner(struct task_s= truct *task, > */ > void microblaze_unwind(struct task_struct *task, struct stack_trace *t= race) > { > + const char *loglvl =3D KERN_INFO; > + > if (task) { > if (task =3D=3D current) { > const struct pt_regs *regs =3D task_pt_regs(task); > microblaze_unwind_inner(task, regs->pc, regs->r1, > - regs->r15, trace); > + regs->r15, trace, loglvl); > } else { > struct thread_info *thread_info =3D > (struct thread_info *)(task->stack); > @@ -299,7 +305,8 @@ void microblaze_unwind(struct task_struct *task, st= ruct stack_trace *trace) > microblaze_unwind_inner(task, > (unsigned long) &_switch_to, > cpu_context->r1, > - cpu_context->r15, trace); > + cpu_context->r15, > + trace, loglvl); > } > } else { > unsigned long pc, fp; > @@ -314,7 +321,7 @@ void microblaze_unwind(struct task_struct *task, st= ruct stack_trace *trace) > ); > =20 > /* Since we are not a leaf function, use leaf_return =3D 0 */ > - microblaze_unwind_inner(current, pc, fp, 0, trace); > + microblaze_unwind_inner(current, pc, fp, 0, trace, loglvl); > } > } > =20 >=20 I can't see any reaction from bots but you forget to update function declaration there which is causing build issue. here is c&p patch. Other then this it looks good to me. diff --git a/arch/microblaze/kernel/unwind.c b/arch/microblaze/kernel/unwind.c index 74dded96c10a..778a761af0a7 100644 --- a/arch/microblaze/kernel/unwind.c +++ b/arch/microblaze/kernel/unwind.c @@ -154,7 +154,8 @@ static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, static void microblaze_unwind_inner(struct task_struct *task, unsigned long pc, unsigned long fp, unsigned long leaf_return, - struct stack_trace *trace); + struct stack_trace *trace, + const char *loglvl); /** * unwind_trap - Unwind through a system trap, that stored previous stat= e Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs --uP9y87WU2pqIVTsChg0LLqTMaE7Kh7U3l-- --mfk3GpJJGkDZD5QO2VkBCLlyhXHUpXo43 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQbPNTMvXmYlBPRwx7KSWXLKUoMIQUCXcPdBQAKCRDKSWXLKUoM IVtkAJ96N0fqDzzAfqmKPGpKK7ey5vKeJgCfUIAP0VCByRa5UFS0QsO+RAgxYsk= =DuX0 -----END PGP SIGNATURE----- --mfk3GpJJGkDZD5QO2VkBCLlyhXHUpXo43--