lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 27 Feb 2009 15:36:28 -0500 (EST)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Luis Henriques <henrix@...o.pt>
cc:	Ingo Molnar <mingo@...e.hu>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -tip] tracing: remove unused code


Thanks Luis,

But before I remove this code, I want to move it to be activated by 
tracing options. The irqsoff tracer (and other latency tracers) are pretty 
useless without it.

-- Steve


On Fri, 27 Feb 2009, Luis Henriques wrote:

> struct file_operations tracing_lt_fops and tracing_lt_open are not used
> anywhere.  These are legacy from the /debug/tracing/latency_trace, which has
> been removed in commit 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b
> 
> Signed-off-by: Luis Henriques <henrix@...o.pt>
> ---
>  kernel/trace/trace.c |   22 ----------------------
>  1 files changed, 0 insertions(+), 22 deletions(-)
> 
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index 5db7485..04306a1 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -1822,21 +1822,6 @@ static int tracing_open(struct inode *inode, struct file *file)
>  	return ret;
>  }
>  
> -static int tracing_lt_open(struct inode *inode, struct file *file)
> -{
> -	struct trace_iterator *iter;
> -	int ret = 0;
> -
> -	iter = __tracing_open(inode, file);
> -
> -	if (IS_ERR(iter))
> -		ret = PTR_ERR(iter);
> -	else
> -		iter->iter_flags |= TRACE_FILE_LAT_FMT;
> -
> -	return ret;
> -}
> -
>  
>  static void *
>  t_next(struct seq_file *m, void *v, loff_t *pos)
> @@ -1916,13 +1901,6 @@ static struct file_operations tracing_fops = {
>  	.release	= tracing_release,
>  };
>  
> -static struct file_operations tracing_lt_fops = {
> -	.open		= tracing_lt_open,
> -	.read		= seq_read,
> -	.llseek		= seq_lseek,
> -	.release	= tracing_release,
> -};
> -
>  static struct file_operations show_traces_fops = {
>  	.open		= show_traces_open,
>  	.read		= seq_read,
> -- 
> 1.6.1.3
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ