Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4727521rwb; Mon, 8 Aug 2022 06:11:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5R7wWgjQRv5Tr0SM5AufkWsR4CvvVqy9C6J/RfwK9hCvkkYxKMm/BGfhdMSPgCy+I72bhP X-Received: by 2002:a17:907:2d20:b0:730:8bb6:3f9d with SMTP id gs32-20020a1709072d2000b007308bb63f9dmr13521999ejc.668.1659964294431; Mon, 08 Aug 2022 06:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659964294; cv=none; d=google.com; s=arc-20160816; b=W7xp7DaLmDoPc22mGL9NCShhT5ehr1blD83vCdry28jMjgOxmc0kbF0ZyOQJ0I8HrT Ev5wuKn2OXB1WLPHScd2wgtVqG9s3fyWaJDZeIYSodb7skn+IwqHXj/narFtyQHqoPXK UupOpNEbmMs6JjpxIvop+FYGkKGiKbrKlq0PLSnuBJ89Z4IMPYJBBflBGhxIzvMBGyXT ICMmGgxiy0s0FJsnCGcOkokUpawbnhik+TpSwzfLplvD6QO6wivMVwUBvUDUZPN4bOqq hJC1E8EHdyaJXqzIgcFpVZA7oHPWwcJ/et62AKzpWQieHwifgAJJBN6nYMmlauTC5wiG 6ynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KiqeFn29E1W8PSwKFJwJWyCqGuOkTS0zFySQpl7YjWQ=; b=MRrWOnNxc7iMFvpAEbx/a69nJDIcumPmdRcPix94xziyGF3UyFHwTeMjRZmEuaysIT adUCb8BSOnoQPwFTDRbm3XN9v/bccVB+kgYSEN+ErqCzVLLP3OOopUr5Et5XX9Ikmw2a Zz0vNk4JpplmBb+F13Yx51GvgTEMdn4UDWjKsA5n1JDYc8Aoy0lxLnxRVYaWq3JVbPoz PuFGH8avSjqOWNYIOikil0E/wjU+8/AILijewJS/z4fNFNg+StDd8zN9R5Po9+ntEKJ1 AmvBBiSUjSm5l3LpkGVrTffDJtEJYLrQis1R0udvyurzixby5iweKapp1W8RiTrdGk1B vEmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=MAJJpLOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170906794500b0072f22d91836si11552774ejo.541.2022.08.08.06.11.06; Mon, 08 Aug 2022 06:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=MAJJpLOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243262AbiHHNKB (ORCPT + 99 others); Mon, 8 Aug 2022 09:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbiHHNJq (ORCPT ); Mon, 8 Aug 2022 09:09:46 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79179AE47; Mon, 8 Aug 2022 06:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1659964159; bh=0M5qpS13eLgzHYee8MKVxWGYrt0iQg2yqGtZwU3aGdU=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=MAJJpLOmv5dP4WWUjz3+3k/mV957rgW3/oPnz3WDvdF55JVzYl9+4da4nUIyEQde5 fp4ZpNL1yylkjW4WMjOYsxEI1SbQVi0Y0V6evCsQBgpPvCz4S3PP29D3vBuNI8w955 FdyD3hHW46JGuDTJWIudpTSlqEiAzvjdMRSuiaUg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from p100.fritz.box ([92.116.169.184]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M5wLZ-1oJ7ci0mt9-007QkE; Mon, 08 Aug 2022 15:09:19 +0200 From: Helge Deller To: linux-s390@vger.kernel.org, Josh Triplett , x86@kernel.org, linux-snps-arc@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 4/4] arc: Use generic dump_stack_print_cmdline() implementation Date: Mon, 8 Aug 2022 15:09:17 +0200 Message-Id: <20220808130917.30760-5-deller@gmx.de> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220808130917.30760-1-deller@gmx.de> References: <20220808130917.30760-1-deller@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:qbhdCVDdOCub1ozqXacRBFmeXEK1oHZl6SIb4aOtZAfxd9npLiz JIPE+2fdpNF9wfsoTc1Fq05gbMQbVssIrx529rpnx38ZZwh/bdchIpZuTlXNOU8kORBr51N OUttWVrlobZJh72zp3/GOjg13qfmgf2jAdXfTwFqcswpTzOPz3Zb1y+E+QxB5Dq5yNsGa2L /AiGHtqfm1EdEzr6qa2PA== X-UI-Out-Filterresults: notjunk:1;V03:K0:UBgKY5ubY/o=:y4mAM+/YC+hjlH357pzhLS S1O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m6zTa5bJd/swDqzUCx9Bp/Hm LWtAFNsvYuYAvaE6CcXszUWJFsPIxTycLTSZDmdOHyy1A9d0bv5bV1Xfg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The process program name and command line is now shown in generic code in dump_stack_print_info(), so drop the arc-specific implementation. Signed-off-by: Helge Deller =2D-- arch/arc/kernel/troubleshoot.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/kernel/troubleshoot= .c index 7654c2e42dc0..9807e590ee55 100644 =2D-- a/arch/arc/kernel/troubleshoot.c +++ b/arch/arc/kernel/troubleshoot.c @@ -51,29 +51,6 @@ static void print_regs_callee(struct callee_regs *regs) regs->r24, regs->r25); } -static void print_task_path_n_nm(struct task_struct *tsk) -{ - char *path_nm =3D NULL; - struct mm_struct *mm; - struct file *exe_file; - char buf[ARC_PATH_MAX]; - - mm =3D get_task_mm(tsk); - if (!mm) - goto done; - - exe_file =3D get_mm_exe_file(mm); - mmput(mm); - - if (exe_file) { - path_nm =3D file_path(exe_file, buf, ARC_PATH_MAX-1); - fput(exe_file); - } - -done: - pr_info("Path: %s\n", !IS_ERR(path_nm) ? path_nm : "?"); -} - static void show_faulting_vma(unsigned long address) { struct vm_area_struct *vma; @@ -176,7 +153,6 @@ void show_regs(struct pt_regs *regs) */ preempt_enable(); - print_task_path_n_nm(tsk); show_regs_print_info(KERN_INFO); show_ecr_verbose(regs); =2D- 2.37.1