perf_event_open: generalize to multiple events

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-11-18 00:00:01 +00:00
parent d4a27987d6
commit 367df352d3
2 changed files with 77 additions and 34 deletions

View File

@@ -787,7 +787,14 @@ path_properties_tuples = (
'gem5_unimplemented_syscall': True
},
'pagemap_dump.c': {'requires_argument': True},
'perf_event_open.c': {'extra_objs_lkmc_common': True},
'perf_event_open.c': {
# QEMU the syscall just fails on QEMU, presumably because QEMU
# does not have a microarchitecture model, and so it must just set
# CPU bits that inform the kernel that the feature is not available.
# https://cirosantilli.com/linux-kernel-module-cheat#gem5-vs-qemu
'allowed_emulators': {'gem5'},
'extra_objs_lkmc_common': True,
},
'poweroff.c': {'requires_sudo': True},
'proc_events.c': {'requires_sudo': True},
'proc_events.c': {'requires_sudo': True},