aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2012-05-15 07:28:13 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-22 11:57:46 -0400
commit2eeaaa095d155d47d47d5df07571105b8ae76ffd (patch)
tree3c1d7d59af5e9cb7e427bfc86f0486f0f5f226f0 /tools/perf
parent6a11f92ef449bfb87f93e7cc14cb2a717afc7aa3 (diff)
perf tools: rename HEADER_TRACE_INFO to HEADER_TRACING_DATA
To match the PERF_RECORD_HEADER_TRACING_DATA record type. This is the same info as the one used for pipe mode whereas the other one is for regular file output. This will help in the later patch to add meta-data infos in pipe mode. Signed-off-by: Stephane Eranian <eranian@google.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1337081295-10303-4-git-send-email-eranian@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-record.c4
-rw-r--r--tools/perf/util/header.c10
-rw-r--r--tools/perf/util/header.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 8a3dfac161e2..9c76add6a03a 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -396,7 +396,7 @@ static void perf_record__mmap_read_all(struct perf_record *rec)
396 perf_record__mmap_read(rec, &rec->evlist->mmap[i]); 396 perf_record__mmap_read(rec, &rec->evlist->mmap[i]);
397 } 397 }
398 398
399 if (perf_header__has_feat(&rec->session->header, HEADER_TRACE_INFO)) 399 if (perf_header__has_feat(&rec->session->header, HEADER_TRACING_DATA))
400 write_output(rec, &finished_round_event, sizeof(finished_round_event)); 400 write_output(rec, &finished_round_event, sizeof(finished_round_event));
401} 401}
402 402
@@ -478,7 +478,7 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv)
478 perf_header__clear_feat(&session->header, HEADER_BUILD_ID); 478 perf_header__clear_feat(&session->header, HEADER_BUILD_ID);
479 479
480 if (!have_tracepoints(&evsel_list->entries)) 480 if (!have_tracepoints(&evsel_list->entries))
481 perf_header__clear_feat(&session->header, HEADER_TRACE_INFO); 481 perf_header__clear_feat(&session->header, HEADER_TRACING_DATA);
482 482
483 if (!rec->opts.branch_stack) 483 if (!rec->opts.branch_stack)
484 perf_header__clear_feat(&session->header, HEADER_BRANCH_STACK); 484 perf_header__clear_feat(&session->header, HEADER_BRANCH_STACK);
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 538598012139..2dd5edf161b7 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -437,7 +437,7 @@ static bool perf_session__read_build_ids(struct perf_session *session, bool with
437 return ret; 437 return ret;
438} 438}
439 439
440static int write_trace_info(int fd, struct perf_header *h __used, 440static int write_tracing_data(int fd, struct perf_header *h __used,
441 struct perf_evlist *evlist) 441 struct perf_evlist *evlist)
442{ 442{
443 return read_tracing_data(fd, &evlist->entries); 443 return read_tracing_data(fd, &evlist->entries);
@@ -1472,7 +1472,7 @@ out:
1472 return err; 1472 return err;
1473} 1473}
1474 1474
1475static int process_trace_info(struct perf_file_section *section __unused, 1475static int process_tracing_data(struct perf_file_section *section __unused,
1476 struct perf_header *ph __unused, 1476 struct perf_header *ph __unused,
1477 int feat __unused, int fd) 1477 int feat __unused, int fd)
1478{ 1478{
@@ -1508,11 +1508,11 @@ struct feature_ops {
1508 .full_only = true } 1508 .full_only = true }
1509 1509
1510/* feature_ops not implemented: */ 1510/* feature_ops not implemented: */
1511#define print_trace_info NULL 1511#define print_tracing_data NULL
1512#define print_build_id NULL 1512#define print_build_id NULL
1513 1513
1514static const struct feature_ops feat_ops[HEADER_LAST_FEATURE] = { 1514static const struct feature_ops feat_ops[HEADER_LAST_FEATURE] = {
1515 FEAT_OPP(HEADER_TRACE_INFO, trace_info), 1515 FEAT_OPP(HEADER_TRACING_DATA, tracing_data),
1516 FEAT_OPP(HEADER_BUILD_ID, build_id), 1516 FEAT_OPP(HEADER_BUILD_ID, build_id),
1517 FEAT_OPA(HEADER_HOSTNAME, hostname), 1517 FEAT_OPA(HEADER_HOSTNAME, hostname),
1518 FEAT_OPA(HEADER_OSRELEASE, osrelease), 1518 FEAT_OPA(HEADER_OSRELEASE, osrelease),
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index 21a6be09c129..2d42b3e1826f 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -12,7 +12,7 @@
12enum { 12enum {
13 HEADER_RESERVED = 0, /* always cleared */ 13 HEADER_RESERVED = 0, /* always cleared */
14 HEADER_FIRST_FEATURE = 1, 14 HEADER_FIRST_FEATURE = 1,
15 HEADER_TRACE_INFO = 1, 15 HEADER_TRACING_DATA = 1,
16 HEADER_BUILD_ID, 16 HEADER_BUILD_ID,
17 17
18 HEADER_HOSTNAME, 18 HEADER_HOSTNAME,