tracing: Use seq_*_private interface for some seq files
authorJiri Olsa <jolsa@redhat.com>
Wed, 25 Apr 2012 08:23:39 +0000 (10:23 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 9 May 2012 01:04:12 +0000 (21:04 -0400)
commit50e18b94c695644d824381e7574b9c44acc25ffe
tree8e323cd188dfdf4882e963812a6b9caf8905cac0
parentb02ee9a33b65bcc4ad13c12a0b04afdaab3ddd8d
tracing: Use seq_*_private interface for some seq files

It's appropriate to use __seq_open_private interface to open
some of trace seq files, because it covers all steps we are
duplicating in tracing code - zallocating the iterator and
setting it as seq_file's private.

Using this for following files:
  trace
  available_filter_functions
  enabled_functions

Link: http://lkml.kernel.org/r/1335342219-2782-5-git-send-email-jolsa@redhat.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
[
 Fixed warnings for:
   kernel/trace/trace.c: In function '__tracing_open':
   kernel/trace/trace.c:2418:11: warning: unused variable 'ret' [-Wunused-variable]
   kernel/trace/trace.c:2417:19: warning: unused variable 'm' [-Wunused-variable]
]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.c