This makes the perf_event_open() syscall use the new init functionality.
Signed-off-by: Vince Weaver <[email protected]>
diff --git a/syscalls/perf_event_open.c b/syscalls/perf_event_open.c
index 909b807..ad3e903 100644
--- a/syscalls/perf_event_open.c
+++ b/syscalls/perf_event_open.c
@@ -672,7 +671,6 @@ static long long random_event_config(__u32 *event_type,
__u64 *config1)
break;
case PERF_TYPE_READ_FROM_SYSFS:
- if (pmus==NULL) init_pmus();
config = random_sysfs_config(event_type,config1);
break;
@@ -1091,5 +1089,6 @@ struct syscall syscall_perf_event_open = {
},
},
.sanitise = sanitise_perf_event_open,
+ .init = init_pmus,
.flags = NEED_ALARM,
};
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html