Commit 0f35e4d3 authored by Stefan Bader's avatar Stefan Bader

UBUNTU: SAUCE: Fix perf test 6: Fix missing kvm module load for s390

BugLink: https://bugs.launchpad.net/bugs/1840081

The backport from upstream misses the fact that get-/
put_events_file() does not exist in this older kernel.
Replace those by get-/put_tracing_file().
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 6e5508a2
...@@ -22,7 +22,7 @@ static bool kvm_s390_create_vm_valid(void) ...@@ -22,7 +22,7 @@ static bool kvm_s390_create_vm_valid(void)
char *eventfile; char *eventfile;
bool rc = false; bool rc = false;
eventfile = get_events_file("kvm-s390"); eventfile = get_tracing_file("events/kvm-s390");
if (eventfile) { if (eventfile) {
DIR *mydir = opendir(eventfile); DIR *mydir = opendir(eventfile);
...@@ -31,7 +31,7 @@ static bool kvm_s390_create_vm_valid(void) ...@@ -31,7 +31,7 @@ static bool kvm_s390_create_vm_valid(void)
rc = true; rc = true;
closedir(mydir); closedir(mydir);
} }
put_events_file(eventfile); put_tracing_file(eventfile);
} }
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment