aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-info.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-06-04 01:20:29 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-12 12:52:30 -0400
commit077f159d0402ac90a3ea9975f4089a042e0be065 (patch)
tree7155f53d900f80f888a612d6b781166dac24da36 /tools/perf/util/trace-event-info.c
parent47390ae2afb6695c56810a9fc74fb930266addd0 (diff)
perf util: Rename read_*() functions in trace-event-info.c
It's confusing to have same name for two difference functions which does something opposite way. Since what they do in this file is read *AND* writing some of tracing metadata files, rename them to record_*() looks better to me. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1370323231-14022-15-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
-rw-r--r--tools/perf/util/trace-event-info.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c
index a42624a6cb5c..a800f2b8ccfc 100644
--- a/tools/perf/util/trace-event-info.c
+++ b/tools/perf/util/trace-event-info.c
@@ -101,7 +101,7 @@ out:
101 return err; 101 return err;
102} 102}
103 103
104static int read_header_files(void) 104static int record_header_files(void)
105{ 105{
106 char *path; 106 char *path;
107 struct stat st; 107 struct stat st;
@@ -240,7 +240,7 @@ out:
240 return err; 240 return err;
241} 241}
242 242
243static int read_ftrace_files(struct tracepoint_path *tps) 243static int record_ftrace_files(struct tracepoint_path *tps)
244{ 244{
245 char *path; 245 char *path;
246 int ret; 246 int ret;
@@ -269,7 +269,7 @@ static bool system_in_tp_list(char *sys, struct tracepoint_path *tps)
269 return false; 269 return false;
270} 270}
271 271
272static int read_event_files(struct tracepoint_path *tps) 272static int record_event_files(struct tracepoint_path *tps)
273{ 273{
274 struct dirent *dent; 274 struct dirent *dent;
275 struct stat st; 275 struct stat st;
@@ -344,7 +344,7 @@ out:
344 return err; 344 return err;
345} 345}
346 346
347static int read_proc_kallsyms(void) 347static int record_proc_kallsyms(void)
348{ 348{
349 unsigned int size; 349 unsigned int size;
350 const char *path = "/proc/kallsyms"; 350 const char *path = "/proc/kallsyms";
@@ -362,7 +362,7 @@ static int read_proc_kallsyms(void)
362 return record_file(path, 4); 362 return record_file(path, 4);
363} 363}
364 364
365static int read_ftrace_printk(void) 365static int record_ftrace_printk(void)
366{ 366{
367 unsigned int size; 367 unsigned int size;
368 char *path; 368 char *path;
@@ -539,19 +539,19 @@ struct tracing_data *tracing_data_get(struct list_head *pattrs,
539 err = tracing_data_header(); 539 err = tracing_data_header();
540 if (err) 540 if (err)
541 goto out; 541 goto out;
542 err = read_header_files(); 542 err = record_header_files();
543 if (err) 543 if (err)
544 goto out; 544 goto out;
545 err = read_ftrace_files(tps); 545 err = record_ftrace_files(tps);
546 if (err) 546 if (err)
547 goto out; 547 goto out;
548 err = read_event_files(tps); 548 err = record_event_files(tps);
549 if (err) 549 if (err)
550 goto out; 550 goto out;
551 err = read_proc_kallsyms(); 551 err = record_proc_kallsyms();
552 if (err) 552 if (err)
553 goto out; 553 goto out;
554 err = read_ftrace_printk(); 554 err = record_ftrace_printk();
555 555
556out: 556out:
557 /* 557 /*