• Namhyung Kim's avatar
    perf test: Add 'brstack' test workload · a104f0ea
    Namhyung Kim authored
    The brstack is to run different kinds of branches repeatedly.  This is
    necessary for brstack test case to verify if it has correct branch info.
    
      $ perf test -w brstack
    
    I renamed the internal functions to have brstack_ prefix as it's too
    generic name.
    
    Add a -U_FORTIFY_SOURCE to the brstack CFLAGS, as the main perf flags
    set it and it requires building with optimization, and this new test has
    a -O0.
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
    Cc: German Gomez <german.gomez@arm.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Zhengjun Xing <zhengjun.xing@linux.intel.com>
    Link: https://lore.kernel.org/r/20221116233854.1596378-10-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    a104f0ea
brstack.c 751 Bytes