using SDT events

From: Arnaldo Carvalho de Melo
Date: Tue Sep 27 2016 - 09:55:59 EST


Testing something else (event aliases/JSON) I saw the many sdt
events available via 'perf list', decided to use the usual workflow,
failed, what am I doing wrong?

[root@jouet ~]# perf list sdt_qemu:pci*

List of pre-defined events (to be used in -e):

sdt_qemu:pci_cfg_read [SDT event]
sdt_qemu:pci_cfg_write [SDT event]
sdt_qemu:pci_update_mappings_add [SDT event]
sdt_qemu:pci_update_mappings_del [SDT event]
[root@jouet ~]# perf record -e sdt_qemu:pci* -a
event syntax error: 'sdt_qemu:pci*'
\___ unknown tracepoint

Error: File /sys/kernel/debug/tracing/events/sdt_qemu/pci* not found.
Hint: Perhaps this kernel misses some CONFIG_ setting to enable this

Run 'perf list' for a list of valid events

Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]

-e, --event <event> event selector. use 'perf list' to list
available events
[root@jouet ~]#