Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1492097

Re: using SDT events

From Masami Hiramatsu <mhiramat@kernel.org>
Newsgroups linux.kernel
Subject Re: using SDT events
Date 2016-09-27 20:50 +0200
Message-ID <sm5C2-4Dm-19@gated-at.bofh.it> (permalink)
References <sm15o-1KC-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 27 Sep 2016 10:55:38 -0300
Arnaldo Carvalho de Melo <acme@kernel.org> wrote:

> Masami,
> 
> 	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?

No, that is not supported yet. So I dropped perf-list support from
the latest series...

https://lkml.org/lkml/2016/7/1/133

The unresolved problems are 
 - how we treat sdt events after recorded? remove or leave it as tracepoint?
 - what should be done if we found the tracepoint which has same name of the
   SDT. (we can not reserve tracepoint name beforehand)
 - Sometimes SDT name can be conflict, even on same binary.


> 
> 
> [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
> feature?.
> 
> 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 ~]# 


-- 
Masami Hiramatsu <mhiramat@kernel.org>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

using SDT events Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-09-27 16:00 +0200
  Re: using SDT events Masami Hiramatsu <mhiramat@kernel.org> - 2016-09-27 20:50 +0200
    Re: using SDT events Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-09-28 15:40 +0200

csiph-web