Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4808632ybb; Tue, 24 Mar 2020 05:49:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs6+//I7TaooGlzCr/o98qfp9IpZiTyntxbgrROB5L0QQkDaqLOw/av2tK1JWch8lvUoaEo X-Received: by 2002:a9d:6744:: with SMTP id w4mr6704762otm.220.1585054165079; Tue, 24 Mar 2020 05:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585054165; cv=none; d=google.com; s=arc-20160816; b=DkZK0EBv2qQbLLFJ1PPoBUxaOtSBiO+VSdY1+9oqk4W/JA1MDJgtmWhexk5l3D8thd 5IgihPkeGrzW+TsLfFxOM0F+c3a7BYrad7A/qmBkeYXwb9DUrXCgkSOV14ta/1W6tdAI wGYgIJRVj3uq/6KbsRHN9NVDj/sLv9HqZqC7J88mnMyhCvpNMJtZakpO8Nl2id2dCRHb 52OkLBisflgHbus/pkJ7vQ4V5U1E5Vf6HqQF5qZ8A3xxhhCk7PMiNDgW6pwBd9x69UyI 9f2bPyzWQVv0e8NZeSsiSBkiPcCM7VwteeG8pDoMKPY2OgatCkboEMDccBo++tduz18b ltsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=1gaGCSvbUvFxUDYFtFdzOfLzBRbgwsoBtcQn8FrobJE=; b=Kl2nkclUG5y7rcAc3w3Dz8WQBxAylQs7/avFyPfgBFsH+1wfsS/3YxuUlSMRgTPRum vn2CE/0JNxHOQ/N01LDMz4S4T604DOj4+SlRSiDbVX+BpM0EnBZEgiAWTwWx/hgIRGrG U2pHYAksRylr3knzffTkJJLcrUdX8H6MJvyrCgYexkUvFaniZZeqCrgQJ3dTbXrlffcu +sRtl7qCfkNBu7UdbPKTmmEGvhyq0atK/vJshagX7U99kfvH81JgwkHpokvfhxWG40AL MTzpIMY53Djj9s+jAtkKXJO5ohpz0YexP5qrdth7aONKrSqbmPcXRdCOidPisutyMt6h y8KA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q196si8806190oic.143.2020.03.24.05.49.12; Tue, 24 Mar 2020 05:49:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727693AbgCXMsQ (ORCPT + 99 others); Tue, 24 Mar 2020 08:48:16 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38267 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbgCXMsP (ORCPT ); Tue, 24 Mar 2020 08:48:15 -0400 Received: from mail-qv1-f71.google.com ([209.85.219.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jGiwE-0002FY-V6 for linux-kernel@vger.kernel.org; Tue, 24 Mar 2020 12:46:03 +0000 Received: by mail-qv1-f71.google.com with SMTP id z2so3622541qvw.7 for ; Tue, 24 Mar 2020 05:45:46 -0700 (PDT) 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 :content-language:content-transfer-encoding; bh=1gaGCSvbUvFxUDYFtFdzOfLzBRbgwsoBtcQn8FrobJE=; b=Fi1MqyWwQzK9shmxoKo5+J2RwsRTgEb5jcIFW+gT9mxfCVYGHQeJKS2TkDiPJbNoUh AtK90mw0iTxIbWAYkh9ghXOonSVYxYmg4ewdqrxW4WdJjUHavRt965oqR+a6BU3DOpV3 bZINQbjts6/OZBVTlOgY5BZg8dBbK8Rqtz2TxZ9VUIJKOA+hJI/9X7PAa1a6EYMlTZBF I8S4Aqg9zGEpSaKlVosbkaeeyXiKY3TQL6gx1VA2dTKnqYYGtiTk18nT80VgAyB0xpwt m7Ewpcry/Pj7He1Emxr+Ai59lMx/vzbkXrbHNJdfS6t+aJyt0rV8TIWR1obFdZqRb8Eo 3AtQ== X-Gm-Message-State: ANhLgQ2FSU0V1LMWGAiOZjbCjXL9gJjDj4fCKSflP/1Md2VF9RpPNHuv f+lCB8wNJlnOlYM75Myd0LRI5jPPgu9JPSV0pH95w/T9kdGHqqE16f9+N7u00xKz8g0Lc+dj4tj GMq3WSKcLuRiCFJZy/nYTo0uKT3d1yb42mvigjJIicQ== X-Received: by 2002:ac8:7a72:: with SMTP id w18mr13890595qtt.260.1585053946093; Tue, 24 Mar 2020 05:45:46 -0700 (PDT) X-Received: by 2002:ac8:7a72:: with SMTP id w18mr13890575qtt.260.1585053945833; Tue, 24 Mar 2020 05:45:45 -0700 (PDT) Received: from [192.168.1.75] (189-47-87-73.dsl.telesp.net.br. [189.47.87.73]) by smtp.gmail.com with ESMTPSA id t71sm13463643qke.55.2020.03.24.05.45.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2020 05:45:45 -0700 (PDT) Subject: Re: [PATCH V2] kernel/hung_task.c: Introduce sysctl to print all traces when a hung task is detected To: Vlastimil Babka , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: linux-doc@vger.kernel.org, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, tglx@linutronix.de, penguin-kernel@I-love.SAKURA.ne.jp, akpm@linux-foundation.org, cocci@systeme.lip6.fr, linux-api@vger.kernel.org, kernel@gpiccoli.net, randy Dunlap References: <20200323214618.28429-1-gpiccoli@canonical.com> From: "Guilherme G. Piccoli" Openpgp: preference=signencrypt Autocrypt: addr=gpiccoli@canonical.com; prefer-encrypt=mutual; keydata= mQENBFpVBxcBCADPNKmu2iNKLepiv8+Ssx7+fVR8lrL7cvakMNFPXsXk+f0Bgq9NazNKWJIn Qxpa1iEWTZcLS8ikjatHMECJJqWlt2YcjU5MGbH1mZh+bT3RxrJRhxONz5e5YILyNp7jX+Vh 30rhj3J0vdrlIhPS8/bAt5tvTb3ceWEic9mWZMsosPavsKVcLIO6iZFlzXVu2WJ9cov8eQM/ irIgzvmFEcRyiQ4K+XUhuA0ccGwgvoJv4/GWVPJFHfMX9+dat0Ev8HQEbN/mko/bUS4Wprdv 7HR5tP9efSLucnsVzay0O6niZ61e5c97oUa9bdqHyApkCnGgKCpg7OZqLMM9Y3EcdMIJABEB AAG0LUd1aWxoZXJtZSBHLiBQaWNjb2xpIDxncGljY29saUBjYW5vbmljYWwuY29tPokBNwQT AQgAIQUCWmClvQIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRDOR5EF9K/7Gza3B/9d 5yczvEwvlh6ksYq+juyuElLvNwMFuyMPsvMfP38UslU8S3lf+ETukN1S8XVdeq9yscwtsRW/ 4YoUwHinJGRovqy8gFlm3SAtjfdqysgJqUJwBmOtcsHkmvFXJmPPGVoH9rMCUr9s6VDPox8f q2W5M7XE9YpsfchS/0fMn+DenhQpV3W6pbLtuDvH/81GKrhxO8whSEkByZbbc+mqRhUSTdN3 iMpRL0sULKPVYbVMbQEAnfJJ1LDkPqlTikAgt3peP7AaSpGs1e3pFzSEEW1VD2jIUmmDku0D LmTHRl4t9KpbU/H2/OPZkrm7809QovJGRAxjLLPcYOAP7DUeltveuQENBFpVBxcBCADbxD6J aNw/KgiSsbx5Sv8nNqO1ObTjhDR1wJw+02Bar9DGuFvx5/qs3ArSZkl8qX0X9Vhptk8rYnkn pfcrtPBYLoux8zmrGPA5vRgK2ItvSc0WN31YR/6nqnMfeC4CumFa/yLl26uzHJa5RYYQ47jg kZPehpc7IqEQ5IKy6cCKjgAkuvM1rDP1kWQ9noVhTUFr2SYVTT/WBHqUWorjhu57/OREo+Tl nxI1KrnmW0DbF52tYoHLt85dK10HQrV35OEFXuz0QPSNrYJT0CZHpUprkUxrupDgkM+2F5LI bIcaIQ4uDMWRyHpDbczQtmTke0x41AeIND3GUc+PQ4hWGp9XABEBAAGJAR8EGAEIAAkFAlpV BxcCGwwACgkQzkeRBfSv+xv1wwgAj39/45O3eHN5pK0XMyiRF4ihH9p1+8JVfBoSQw7AJ6oU 1Hoa+sZnlag/l2GTjC8dfEGNoZd3aRxqfkTrpu2TcfT6jIAsxGjnu+fUCoRNZzmjvRziw3T8 egSPz+GbNXrTXB8g/nc9mqHPPprOiVHDSK8aGoBqkQAPZDjUtRwVx112wtaQwArT2+bDbb/Y Yh6gTrYoRYHo6FuQl5YsHop/fmTahpTx11IMjuh6IJQ+lvdpdfYJ6hmAZ9kiVszDF6pGFVkY kHWtnE2Aa5qkxnA2HoFpqFifNWn5TyvJFpyqwVhVI8XYtXyVHub/WbXLWQwSJA4OHmqU8gDl X18zwLgdiQ== Message-ID: Date: Tue, 24 Mar 2020 09:45:40 -0300 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/03/2020 05:27, Vlastimil Babka wrote: > [...] > Before adding a new thing as both kernel parameter and sysctl, could we perhaps > not add the kernel parameter, in favor of the generic sysctl parameter solution? > [1] There were no objections and some support from Kees, so I will try to send a > new version ASAP that will work properly with all "static" sysctls - we don't > need to be blocked by a full solution for dynamically registered sysctls yet, I > guess? > > Thanks, > Vlastimil > > [1] https://lore.kernel.org/linux-api/20200317132105.24555-1-vbabka@suse.cz/ > Thanks Randy and Vlastimil for the comments. I really liked your approach Vlastimil, I agree that we have no reason to not have a generic sysctl setting via cmdline mechanism - I'll rework this patch removing the kernel parameter (same for other patch I just submitted). If you can CC me on the new iterations of the generic sysctl patches Vlastimil, I appreciate - I can maybe test that, I'd like to see it in kernel. Thanks, Guilherme