Re: [RFC][PATCH] tracing: Deprecate auto-mounting tracefs in debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Jun 2025 13:36:14 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> @@ -10311,6 +10313,8 @@ int tracing_init_dentry(void)
>  	if (WARN_ON(!tracefs_initialized()))
>  		return -ENODEV;
>  
> +#ifdef CONFIG_TRACEFS_AUTOMOUNT_DEPRECATED
> +	pr_warning("NOTICE: Automounting of tracing to debugfs is deprecated and will be removed in 2027\n");

I tested this with the config off but not on.

The above errors with pr_warning() undefined, "do you mean pr_warn?" :-p

-- Steve

>  	/*
>  	 * As there may still be users that expect the tracing
>  	 * files to exist in debugfs/tracing, we must automount
> @@ -10319,6 +10323,7 @@ int tracing_init_dentry(void)
>  	 */
>  	tr->dir = debugfs_create_automount("tracing", NULL,
>  					   trace_automount, NULL);
> +#endif
>  
>  	return 0;
>  }
> -- 




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux