* [PATCH] tracing: Remove unnecessary DEBUG_FS dependency
@ 2019-11-20 10:43 Kusanagi Kouichi
2019-11-21 5:08 ` kbuild test robot
2019-11-21 23:34 ` Steven Rostedt
0 siblings, 2 replies; 4+ messages in thread
From: Kusanagi Kouichi @ 2019-11-20 10:43 UTC (permalink / raw)
To: Steven Rostedt, Ingo Molnar; +Cc: linux-kernel
Tracing replaced debugfs with tracefs.
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
---
kernel/trace/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index e08527f50d2a..382628b9b759 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -106,7 +106,6 @@ config PREEMPTIRQ_TRACEPOINTS
config TRACING
bool
- select DEBUG_FS
select RING_BUFFER
select STACKTRACE if STACKTRACE_SUPPORT
select TRACEPOINTS
--
2.24.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: Remove unnecessary DEBUG_FS dependency
2019-11-20 10:43 [PATCH] tracing: Remove unnecessary DEBUG_FS dependency Kusanagi Kouichi
@ 2019-11-21 5:08 ` kbuild test robot
2019-11-21 23:44 ` Steven Rostedt
2019-11-21 23:34 ` Steven Rostedt
1 sibling, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2019-11-21 5:08 UTC (permalink / raw)
To: Kusanagi Kouichi; +Cc: kbuild-all, Steven Rostedt, Ingo Molnar, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 5097 bytes --]
Hi Kusanagi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/perf/core]
[also build test ERROR on v5.4-rc8 next-20191120]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kusanagi-Kouichi/tracing-Remove-unnecessary-DEBUG_FS-dependency/20191121-032827
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 8f6ee51d772d0dab407d868449d2c5d9c8d2b6fc
config: arm-exynos_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/trace/trace.c: In function 'tracing_init_dentry':
>> kernel/trace/trace.c:8658:9: error: passing argument 3 of 'debugfs_create_automount' from incompatible pointer type [-Werror=incompatible-pointer-types]
trace_automount, NULL);
^~~~~~~~~~~~~~~
In file included from kernel/trace/trace.c:24:0:
include/linux/debugfs.h:204:30: note: expected 'struct vfsmount * (*)(void *)' but argument is of type 'struct vfsmount * (*)(struct dentry *, void *)'
static inline struct dentry *debugfs_create_automount(const char *name,
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/debugfs_create_automount +8658 kernel/trace/trace.c
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8630)
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8631) /**
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8632) * tracing_init_dentry - initialize top level trace array
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8633) *
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8634) * This is called when creating files or directories in the tracing
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8635) * directory. It is called via fs_initcall() by any of the boot up code
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8636) * and expects to return the dentry of the top level tracing directory.
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8637) */
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8638) struct dentry *tracing_init_dentry(void)
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8639) {
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8640) struct trace_array *tr = &global_trace;
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8641)
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8642) /* The top level trace array uses NULL as parent */
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8643) if (tr->dir)
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8644) return NULL;
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8645)
8b1291994d8e5e Jiaxing Wang 2015-11-06 8646 if (WARN_ON(!tracefs_initialized()) ||
8b1291994d8e5e Jiaxing Wang 2015-11-06 8647 (IS_ENABLED(CONFIG_DEBUG_FS) &&
8b1291994d8e5e Jiaxing Wang 2015-11-06 8648 WARN_ON(!debugfs_initialized())))
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8649) return ERR_PTR(-ENODEV);
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8650)
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8651) /*
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8652) * As there may still be users that expect the tracing
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8653) * files to exist in debugfs/tracing, we must automount
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8654) * the tracefs file system there, so older tools still
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8655) * work with the newer kerenl.
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8656) */
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 8657) tr->dir = debugfs_create_automount("tracing", NULL,
f76180bc07abc3 Steven Rostedt (Red Hat 2015-01-20 @8658) trace_automount, NULL);
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8659)
8434dc9340cd2e Steven Rostedt (Red Hat 2015-01-20 8660) return NULL;
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8661) }
7eeafbcab47fe9 Steven Rostedt (Red Hat 2015-01-26 8662)
:::::: The code at line 8658 was first introduced by commit
:::::: f76180bc07abc399977bfbe8c43bf58c4570e893 tracing: Automatically mount tracefs on debugfs/tracing
:::::: TO: Steven Rostedt (Red Hat) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt <rostedt@goodmis.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31235 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: Remove unnecessary DEBUG_FS dependency
2019-11-20 10:43 [PATCH] tracing: Remove unnecessary DEBUG_FS dependency Kusanagi Kouichi
2019-11-21 5:08 ` kbuild test robot
@ 2019-11-21 23:34 ` Steven Rostedt
1 sibling, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2019-11-21 23:34 UTC (permalink / raw)
To: Kusanagi Kouichi; +Cc: Ingo Molnar, linux-kernel
On Wed, 20 Nov 2019 19:43:50 +0900
Kusanagi Kouichi <slash@ac.auone-net.jp> wrote:
> Tracing replaced debugfs with tracefs.
Ah, I missed that. Thanks, I added this to my queue.
-- Steve
>
> Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
> ---
> kernel/trace/Kconfig | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
> index e08527f50d2a..382628b9b759 100644
> --- a/kernel/trace/Kconfig
> +++ b/kernel/trace/Kconfig
> @@ -106,7 +106,6 @@ config PREEMPTIRQ_TRACEPOINTS
>
> config TRACING
> bool
> - select DEBUG_FS
> select RING_BUFFER
> select STACKTRACE if STACKTRACE_SUPPORT
> select TRACEPOINTS
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tracing: Remove unnecessary DEBUG_FS dependency
2019-11-21 5:08 ` kbuild test robot
@ 2019-11-21 23:44 ` Steven Rostedt
0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2019-11-21 23:44 UTC (permalink / raw)
To: kbuild test robot; +Cc: Kusanagi Kouichi, kbuild-all, Ingo Molnar, linux-kernel
On Thu, 21 Nov 2019 13:08:45 +0800
kbuild test robot <lkp@intel.com> wrote:
> Hi Kusanagi,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on tip/perf/core]
> [also build test ERROR on v5.4-rc8 next-20191120]
> [if your patch is applied to the wrong git tree, please drop us a note to help
> improve the system. BTW, we also suggest to use '--base' option to specify the
> base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
>
> url: https://github.com/0day-ci/linux/commits/Kusanagi-Kouichi/tracing-Remove-unnecessary-DEBUG_FS-dependency/20191121-032827
> base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 8f6ee51d772d0dab407d868449d2c5d9c8d2b6fc
> config: arm-exynos_defconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # save the attached .config to linux build tree
> GCC_VERSION=7.4.0 make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
Ah, this needs to have #ifdef around some parts to add this patch.
I'll see if I can fix this up.
-- Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-21 23:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20 10:43 [PATCH] tracing: Remove unnecessary DEBUG_FS dependency Kusanagi Kouichi
2019-11-21 5:08 ` kbuild test robot
2019-11-21 23:44 ` Steven Rostedt
2019-11-21 23:34 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).