lkml.org 
[lkml]   [2021]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v5 5/5] perf arm-spe: Don't wait for PERF_RECORD_EXIT event
    Date
    When decode Arm SPE trace, it waits for PERF_RECORD_EXIT event (the last
    perf event) for processing trace data, which is needless and even might
    cause logic error, e.g. it might fail to correlate perf events with Arm
    SPE events correctly.

    So this patch removes the condition checking for PERF_RECORD_EXIT event.

    Signed-off-by: Leo Yan <leo.yan@linaro.org>
    ---
    tools/perf/util/arm-spe.c | 6 +-----
    1 file changed, 1 insertion(+), 5 deletions(-)

    diff --git a/tools/perf/util/arm-spe.c b/tools/perf/util/arm-spe.c
    index 5c5b438584c4..58b7069c5a5f 100644
    --- a/tools/perf/util/arm-spe.c
    +++ b/tools/perf/util/arm-spe.c
    @@ -717,11 +717,7 @@ static int arm_spe_process_event(struct perf_session *session,
    sample->time);
    }
    } else if (timestamp) {
    - if (event->header.type == PERF_RECORD_EXIT) {
    - err = arm_spe_process_queues(spe, timestamp);
    - if (err)
    - return err;
    - }
    + err = arm_spe_process_queues(spe, timestamp);
    }

    return err;
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-05-19 09:20    [W:5.776 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site