• Namhyung Kim's avatar
    perf test: Add -w/--workload option · f215054d
    Namhyung Kim authored
    The -w/--workload option is to run a simple workload used by testing.
    This adds a basic framework to run the workloads and 'noploop' workload
    as an example.
    
      $ perf test -w noploop
    
    The noploop does a loop doing nothing (NOP) for a second by default.
    It can have an optional argument to specify the time in seconds.
    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-2-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    f215054d
Build 56 Bytes