lkml.org 
[lkml]   [2012]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 06/31] perf, tools: Add intx/intx_checkpoint to perf script and header printing
Date
From: Andi Kleen <ak@linux.intel.com>

Just straight forward use of the new flags

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/util/header.c | 6 ++++--
tools/perf/util/python.c | 8 +++++++-
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 74ea3c2..558b3b3 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -1217,9 +1217,11 @@ static void print_event_desc(struct perf_header *ph, int fd, FILE *fp)
(u64)attr.config1,
(u64)attr.config2);

- fprintf(fp, ", excl_usr = %d, excl_kern = %d",
+ fprintf(fp, ", excl_usr = %d, excl_kern = %d, intx = %d, intx_cp = %d",
attr.exclude_user,
- attr.exclude_kernel);
+ attr.exclude_kernel,
+ attr.intx,
+ attr.intx_checkpointed);

fprintf(fp, ", excl_host = %d, excl_guest = %d",
attr.exclude_host,
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 0688bfb..70c234d 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -528,6 +528,8 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
"bp_type",
"bp_addr",
"bp_len",
+ "intx",
+ "intx_checkpointed",
NULL
};
u64 sample_period = 0;
@@ -548,6 +550,8 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
watermark = 0,
precise_ip = 0,
mmap_data = 0,
+ intx = 0,
+ intx_cp = 0,
sample_id_all = 1;
int idx = 0;

@@ -562,7 +566,7 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
&enable_on_exec, &task, &watermark,
&precise_ip, &mmap_data, &sample_id_all,
&attr.wakeup_events, &attr.bp_type,
- &attr.bp_addr, &attr.bp_len, &idx))
+ &attr.bp_addr, &attr.bp_len, &intx, &intx_cp, &idx))
return -1;

/* union... */
@@ -591,6 +595,8 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
attr.precise_ip = precise_ip;
attr.mmap_data = mmap_data;
attr.sample_id_all = sample_id_all;
+ attr.intx = intx;
+ attr.intx_checkpointed = intx_cp;

perf_evsel__init(&pevsel->evsel, &attr, idx);
return 0;
--
1.7.7.6


\
 
 \ /
  Last update: 2012-09-28 07:41    [W:0.189 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site