Message ID | 56B1B26C.3080709@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat index bab34bb..3cf1181 100755 --- a/scripts/kvm/kvm_stat +++ b/scripts/kvm/kvm_stat @@ -796,11 +796,12 @@ def check_access(options): sys.stderr.write("Please enable CONFIG_TRACING in your kernel " "when using the option -t (default).\n" "If it is enabled, make {0} readable by the " - "current user.\n" - "Falling back to debugfs statistics!\n" - .format(PATH_DEBUGFS_TRACING)) + "current user.\n") + if options.tracepoints: + sys.exit(1) + + sys.stderr.write("Falling back to debugfs statistics!\n" options.debugfs = True - options.tracepoints = False sleep(5) return options