* [PATCH] arm: exynos_config: Restore debugfs support [not found] <CGME20191125125531eucas1p17f4044301903eeafe56865ed63738798@eucas1p1.samsung.com> @ 2019-11-25 12:55 ` Marek Szyprowski 2019-11-25 14:30 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 5+ messages in thread From: Marek Szyprowski @ 2019-11-25 12:55 UTC (permalink / raw) To: linux-samsung-soc, linux-kernel Cc: Marek Szyprowski, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz, Kusanagi Kouichi, Steven Rostedt Commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS dependency") removed the dependency between DEBUG_FS and TRACING, so DEBUG_FS is no longer enabled in default builds. Enable it again manually, as it provides a lots of useful data for automated testing tools. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- arch/arm/configs/exynos_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index e7e4bb5ad8d5..fde84f123fbb 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -350,6 +350,7 @@ CONFIG_PRINTK_TIME=y CONFIG_DYNAMIC_DEBUG=y CONFIG_DEBUG_INFO=y CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y CONFIG_SOFTLOCKUP_DETECTOR=y # CONFIG_DETECT_HUNG_TASK is not set -- 2.17.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm: exynos_config: Restore debugfs support 2019-11-25 12:55 ` [PATCH] arm: exynos_config: Restore debugfs support Marek Szyprowski @ 2019-11-25 14:30 ` Bartlomiej Zolnierkiewicz 2019-11-25 14:39 ` Steven Rostedt 0 siblings, 1 reply; 5+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2019-11-25 14:30 UTC (permalink / raw) To: Kusanagi Kouichi Cc: Marek Szyprowski, linux-samsung-soc, linux-kernel, Krzysztof Kozlowski, Steven Rostedt Hi, On 11/25/19 1:55 PM, Marek Szyprowski wrote: > Commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS dependency") > removed the dependency between DEBUG_FS and TRACING, so DEBUG_FS is no > longer enabled in default builds. Enable it again manually, as it provides > a lots of useful data for automated testing tools. > > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > --- > arch/arm/configs/exynos_defconfig | 1 + > 1 file changed, 1 insertion(+) It seems that commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS dependency") disabled DEBUG_FS also in some other ARM defconfigs. For some of them it may be a correct change but a preferred way to introduce such changes would be to: - add explicit CONFIG_DEBUG_FS=y instances to all affected defconfigs while removing DEBUG_FS selection from TRACING config item - let platform maintainers disable DEBUG_FS manually in corresponding defconfigs later if desirable Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig > index e7e4bb5ad8d5..fde84f123fbb 100644 > --- a/arch/arm/configs/exynos_defconfig > +++ b/arch/arm/configs/exynos_defconfig > @@ -350,6 +350,7 @@ CONFIG_PRINTK_TIME=y > CONFIG_DYNAMIC_DEBUG=y > CONFIG_DEBUG_INFO=y > CONFIG_MAGIC_SYSRQ=y > +CONFIG_DEBUG_FS=y > CONFIG_DEBUG_KERNEL=y > CONFIG_SOFTLOCKUP_DETECTOR=y > # CONFIG_DETECT_HUNG_TASK is not set ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm: exynos_config: Restore debugfs support 2019-11-25 14:30 ` Bartlomiej Zolnierkiewicz @ 2019-11-25 14:39 ` Steven Rostedt 2019-11-25 15:31 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 5+ messages in thread From: Steven Rostedt @ 2019-11-25 14:39 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: Kusanagi Kouichi, Marek Szyprowski, linux-samsung-soc, linux-kernel, Krzysztof Kozlowski On Mon, 25 Nov 2019 15:30:39 +0100 Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> wrote: > It seems that commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS > dependency") disabled DEBUG_FS also in some other ARM defconfigs. > > For some of them it may be a correct change but a preferred way to > introduce such changes would be to: > > - add explicit CONFIG_DEBUG_FS=y instances to all affected defconfigs > while removing DEBUG_FS selection from TRACING config item > I strongly disagree. It was wrong to assume DEBUG_FS is attached to TRACING. If someone wanted DEBUG_FS in their def config, they should have added it specifically. The addition of DEBUG_FS to defconfigs no way belongs to the patch that removed DEBUG_FS from TRACING. -- Steve > - let platform maintainers disable DEBUG_FS manually in corresponding > defconfigs later if desirable ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm: exynos_config: Restore debugfs support 2019-11-25 14:39 ` Steven Rostedt @ 2019-11-25 15:31 ` Bartlomiej Zolnierkiewicz 2019-11-26 1:21 ` Krzysztof Kozlowski 0 siblings, 1 reply; 5+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2019-11-25 15:31 UTC (permalink / raw) To: Steven Rostedt Cc: Kusanagi Kouichi, Marek Szyprowski, linux-samsung-soc, linux-kernel, Krzysztof Kozlowski On 11/25/19 3:39 PM, Steven Rostedt wrote: > On Mon, 25 Nov 2019 15:30:39 +0100 > Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> wrote: > >> It seems that commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS >> dependency") disabled DEBUG_FS also in some other ARM defconfigs. >> >> For some of them it may be a correct change but a preferred way to >> introduce such changes would be to: >> >> - add explicit CONFIG_DEBUG_FS=y instances to all affected defconfigs >> while removing DEBUG_FS selection from TRACING config item >> > > I strongly disagree. It was wrong to assume DEBUG_FS is attached to > TRACING. If someone wanted DEBUG_FS in their def config, they should > have added it specifically. The addition of DEBUG_FS to defconfigs no There is a theory and a practice. In theory you are are correct. ;-) In practice people don't manually edit configuration files nowadays. They do 'make menuconfig' and enable what they need and disable what they do not need. Then they do 'make savedefconfig' and copy resulting "stripped" defconfig file as their new platform defconfig. As a result defconfigs rely on many default settings (also they explicitly disable only items that are enabled by default but you don't want them). > way belongs to the patch that removed DEBUG_FS from TRACING. > > -- Steve > > >> - let platform maintainers disable DEBUG_FS manually in corresponding >> defconfigs later if desirable Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm: exynos_config: Restore debugfs support 2019-11-25 15:31 ` Bartlomiej Zolnierkiewicz @ 2019-11-26 1:21 ` Krzysztof Kozlowski 0 siblings, 0 replies; 5+ messages in thread From: Krzysztof Kozlowski @ 2019-11-26 1:21 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz, Steven Rostedt Cc: Kusanagi Kouichi, Marek Szyprowski, linux-samsung-soc, linux-kernel On Mon, 25 Nov 2019 at 23:31, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> wrote: > > > On 11/25/19 3:39 PM, Steven Rostedt wrote: > > On Mon, 25 Nov 2019 15:30:39 +0100 > > Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> wrote: > > > >> It seems that commit 0e4a459f56c3 ("tracing: Remove unnecessary DEBUG_FS > >> dependency") disabled DEBUG_FS also in some other ARM defconfigs. > >> > >> For some of them it may be a correct change but a preferred way to > >> introduce such changes would be to: > >> > >> - add explicit CONFIG_DEBUG_FS=y instances to all affected defconfigs > >> while removing DEBUG_FS selection from TRACING config item > >> > > > > I strongly disagree. It was wrong to assume DEBUG_FS is attached to > > TRACING. If someone wanted DEBUG_FS in their def config, they should > > have added it specifically. The addition of DEBUG_FS to defconfigs no > > There is a theory and a practice. > > In theory you are are correct. ;-) > > In practice people don't manually edit configuration files nowadays. > > They do 'make menuconfig' and enable what they need and disable what > they do not need. Then they do 'make savedefconfig' and copy resulting > "stripped" defconfig file as their new platform defconfig. As a result > defconfigs rely on many default settings (also they explicitly disable > only items that are enabled by default but you don't want them). I agree with Bartłomiej. Your interpretation Steven essentially prohibits any use of savedefconfig to trim automatically the config from unneeded options. Therefore many defconfigs which do not have DEBUG_FS or other options directly, but they want it. Some time ago I had patches removing specific non-existing options from defconfigs. For each option I provided a rationale that it is gone/etc so let's remove it from defconfig. Most of maintainers picked them up but few (2-3?) instead run savedefconfig to clean up everything automatically. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-26 1:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20191125125531eucas1p17f4044301903eeafe56865ed63738798@eucas1p1.samsung.com>
2019-11-25 12:55 ` [PATCH] arm: exynos_config: Restore debugfs support Marek Szyprowski
2019-11-25 14:30 ` Bartlomiej Zolnierkiewicz
2019-11-25 14:39 ` Steven Rostedt
2019-11-25 15:31 ` Bartlomiej Zolnierkiewicz
2019-11-26 1:21 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®