From: Andi Kleen <a...@linux.intel.com>

Just straight forward use of the new flags

Signed-off-by: Andi Kleen <a...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to