Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756734AbbKRTMX (ORCPT ); Wed, 18 Nov 2015 14:12:23 -0500 Received: from mail-yk0-f175.google.com ([209.85.160.175]:36821 "EHLO mail-yk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755189AbbKRTMV (ORCPT ); Wed, 18 Nov 2015 14:12:21 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 18 Nov 2015 21:12:21 +0200 Message-ID: Subject: Re: enable dynamic debug - doubt From: Andy Shevchenko To: Muni Sekhar Cc: "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 26 On Tue, Nov 17, 2015 at 2:40 PM, Muni Sekhar wrote: > [ Please keep me in CC as I'm not subscribed to the list] > > Hello, > > The behaviour of dynamic debug prints are controlled via writing to a > control file in the 'debugfs' > filesystem(/dynamic_debug/control). > > Here I would like to know what order should the echo(for eg: echo -n > 'module sdhci +p' > /sys/kernel/debug/dynamic_debug/control) be > applied in relation to the module load - before or after? Just imagine how debugfs works. It has probes over the code where *_dbg/debug() prints are used. Those special data structures are kept in the specific part of the file / kernel. If there is no module, how will kernel know that there is a portion of such data there? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/