diff options
author | Thomas Richter <tmricht@linux.ibm.com> | 2019-06-04 07:35:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-04 09:33:19 +0200 |
commit | 9a501cdb05348fa8f85db8df5a82f4b8cd11594e (patch) | |
tree | b35aaacde35f6dbce2ffd926c9f6fa8b92fab4c7 /net | |
parent | 239b64d9c6f5bf57f85e7737fc45632a5ed14d24 (diff) | |
download | linux-stable-9a501cdb05348fa8f85db8df5a82f4b8cd11594e.tar.gz linux-stable-9a501cdb05348fa8f85db8df5a82f4b8cd11594e.tar.bz2 linux-stable-9a501cdb05348fa8f85db8df5a82f4b8cd11594e.zip |
perf test 6: Fix missing kvm module load for s390
[ Upstream commit 53fe307dfd309e425b171f6272d64296a54f4dff ]
Command
# perf test -Fv 6
fails with error
running test 100 'kvm-s390:kvm_s390_create_vm' failed to parse
event 'kvm-s390:kvm_s390_create_vm', err -1, str 'unknown tracepoint'
event syntax error: 'kvm-s390:kvm_s390_create_vm'
\___ unknown tracepoint
when the kvm module is not loaded or not built in.
Fix this by adding a valid function which tests if the module
is loaded. Loaded modules (or builtin KVM support) have a
directory named
/sys/kernel/debug/tracing/events/kvm-s390
for this tracepoint.
Check for existence of this directory.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20190604053504.43073-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions