• Leo Yan's avatar
    perf cs-etm: Fix definition of macro TO_CS_QUEUE_NR · 9d604aad
    Leo Yan authored
    Macro TO_CS_QUEUE_NR definition has a typo, which uses 'trace_id_chan'
    as its parameter, this doesn't match with its definition body which uses
    'trace_chan_id'.  So renames the parameter to 'trace_chan_id'.
    
    It's luck to have a local variable 'trace_chan_id' in the function
    cs_etm__setup_queue(), even we wrongly define the macro TO_CS_QUEUE_NR,
    the local variable 'trace_chan_id' is used rather than the macro's
    parameter 'trace_id_chan'; so the compiler doesn't complain for this
    before.
    
    After renaming the parameter, it leads to a compiling error due
    cs_etm__setup_queue() has no variable 'trace_id_chan'.  This patch uses
    the variable 'trace_chan_id' for the macro so that fixes the compiling
    error.
    Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
    Reviewed-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
    Cc: coresight ml <coresight@lists.linaro.org>
    Cc: linux-arm-kernel@lists.infradead.org
    Link: http://lore.kernel.org/lkml/20191021074808.25795-1-leo.yan@linaro.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    9d604aad
cs-etm.c 68.4 KB