• Leo Yan's avatar
    perf scripting python: Expose dso and map information · c4f46223
    Leo Yan authored
    This change adds dso build_id and corresponding map's start and end
    address.  The info of dso build_id can be used to find dso file path,
    and we can validate if a branch address falls into the range of map's
    start and end addresses.
    
    In addition, the map's start address can be used as an offset for
    disassembly.
    Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
    Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Cc: Al Grant <al.grant@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Eelco Chaudron <echaudro@redhat.com>
    Cc: German Gomez <german.gomez@arm.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
    Cc: Tanmay Jagdale <tanmay@marvell.com>
    Cc: coresight@lists.linaro.org
    Cc: zengshun . wu <zengshun.wu@outlook.com>
    Link: https://lore.kernel.org/r/20220521130446.4163597-2-leo.yan@linaro.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    c4f46223
trace-event-python.c 56.7 KB