• Jiri Olsa's avatar
    perf tests: Add daemon 'lock' test · dec34515
    Jiri Olsa authored
    Add a test for the perf daemon 'lock' command ensuring only one instance
    of daemon can run over one base directory.
    
    Committer testing:
    
      [root@five ~]# perf test -v daemon
      76: daemon operations                                               :
      --- start ---
      test child forked, pid 793255
      test daemon list
      test daemon reconfig
      test daemon stop
      test daemon signal
      signal 12 sent to session 'test [793506]'
      signal 12 sent to session 'test [793506]'
      test daemon ping
      test daemon lock
      test child finished with 0
      ---- end ----
      daemon operations: Ok
      [root@five ~]#
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Alexei Budankov <abudankov@huawei.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Michael Petlan <mpetlan@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: https://lore.kernel.org/r/20210208200908.1019149-25-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    dec34515
daemon.sh 10 KB