• James Clark's avatar
    perf cs-etm: Tidy up auxtrace info header printing · b00204f5
    James Clark authored
    cs_etm__print_auxtrace_info() is called twice in case there is an error
    somewhere in cs_etm__process_auxtrace_info(), but all the info is
    already available at the beginning so just print it there instead.
    
    Also use u64 and the already cast ptr variable to make it more
    consistent with the rest of the etm code.
    Signed-off-by: default avatarJames Clark <james.clark@arm.com>
    Cc: Al Grant <Al.Grant@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: John Garry <john.g.garry@oracle.com>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
    Cc: Mike Leach <mike.leach@linaro.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
    Cc: Will Deacon <will@kernel.org>
    Cc: coresight@lists.linaro.org
    Cc: linux-arm-kernel@lists.infradead.org
    Link: https://lore.kernel.org/r/20221212155513.2259623-4-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    b00204f5
cs-etm.c 86.1 KB