lkml.org 
[lkml]   [2013]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v0 65/71] perf itrace: Add Intel PT as an Instruction Tracing type
    Date
    From: Adrian Hunter <adrian.hunter@intel.com>

    Add the Intel Processor Trace type
    constant PERF_ITRACE_INTEL_PT.

    Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
    ---
    tools/perf/util/itrace.c | 1 +
    tools/perf/util/itrace.h | 1 +
    2 files changed, 2 insertions(+)

    diff --git a/tools/perf/util/itrace.c b/tools/perf/util/itrace.c
    index 28455f8..8ecbfb1 100644
    --- a/tools/perf/util/itrace.c
    +++ b/tools/perf/util/itrace.c
    @@ -977,6 +977,7 @@ int perf_event__process_itrace_info(struct perf_tool *tool __maybe_unused,
    return 0;

    switch (type) {
    + case PERF_ITRACE_INTEL_PT:
    case PERF_ITRACE_UNKNOWN:
    default:
    return -EINVAL;
    diff --git a/tools/perf/util/itrace.h b/tools/perf/util/itrace.h
    index 1005715..de4b7a0 100644
    --- a/tools/perf/util/itrace.h
    +++ b/tools/perf/util/itrace.h
    @@ -40,6 +40,7 @@ struct itrace_info_event;

    enum itrace_type {
    PERF_ITRACE_UNKNOWN,
    + PERF_ITRACE_INTEL_PT,
    };

    enum itrace_error_type {
    --
    1.8.5.1


    \
     
     \ /
      Last update: 2013-12-11 14:21    [W:4.041 / U:0.600 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site