* tracing.rst neglects to document syntax of trace-events files @ 2022-01-18 8:23 Markus Armbruster 2022-01-18 9:02 ` Daniel P. Berrangé 0 siblings, 1 reply; 3+ messages in thread From: Markus Armbruster @ 2022-01-18 8:23 UTC (permalink / raw) To: Stefan Hajnoczi; +Cc: qemu-devel Almost[*] all trace-events files start with this line: # See docs/devel/tracing.rst for syntax documentation. But I can't find syntax documentation there. [*] Exceptions: $ git-ls-files \*/trace-events| xargs fgrep -L '# See docs/devel/tracing.rst for syntax documentation.' ebpf/trace-events hw/core/trace-events hw/hyperv/trace-events hw/mips/trace-events hw/net/can/trace-events hw/nubus/trace-events hw/nvme/trace-events hw/remote/trace-events hw/sh4/trace-events hw/ssi/trace-events target/arm/hvf/trace-events target/riscv/trace-events target/s390x/kvm/trace-events ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tracing.rst neglects to document syntax of trace-events files 2022-01-18 8:23 tracing.rst neglects to document syntax of trace-events files Markus Armbruster @ 2022-01-18 9:02 ` Daniel P. Berrangé 2022-01-26 13:11 ` Stefan Hajnoczi 0 siblings, 1 reply; 3+ messages in thread From: Daniel P. Berrangé @ 2022-01-18 9:02 UTC (permalink / raw) To: Markus Armbruster; +Cc: qemu-devel, Stefan Hajnoczi On Tue, Jan 18, 2022 at 09:23:50AM +0100, Markus Armbruster wrote: > Almost[*] all trace-events files start with this line: > > # See docs/devel/tracing.rst for syntax documentation. > > But I can't find syntax documentation there. In that doc, under the heading "Declaring trace events", is a wordy paragraph that looks like it was attempting to fill this need, especially the last part. [quote] Each event declaration will start with the event name, then its arguments, finally a format string for pretty-printing. For example:: qemu_vmalloc(size_t size, void *ptr) "size %zu ptr %p" qemu_vfree(void *ptr) "ptr %p" [/quote] It certainly has plenty of scope for improvement though ! Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tracing.rst neglects to document syntax of trace-events files 2022-01-18 9:02 ` Daniel P. Berrangé @ 2022-01-26 13:11 ` Stefan Hajnoczi 0 siblings, 0 replies; 3+ messages in thread From: Stefan Hajnoczi @ 2022-01-26 13:11 UTC (permalink / raw) To: Daniel P. Berrangé; +Cc: Markus Armbruster, qemu-devel [-- Attachment #1: Type: text/plain, Size: 944 bytes --] On Tue, Jan 18, 2022 at 09:02:35AM +0000, Daniel P. Berrangé wrote: > On Tue, Jan 18, 2022 at 09:23:50AM +0100, Markus Armbruster wrote: > > Almost[*] all trace-events files start with this line: > > > > # See docs/devel/tracing.rst for syntax documentation. > > > > But I can't find syntax documentation there. > > In that doc, under the heading "Declaring trace events", is a wordy > paragraph that looks like it was attempting to fill this need, > especially the last part. > > [quote] > Each event declaration will start with the event name, then its arguments, > finally a format string for pretty-printing. For example:: > > qemu_vmalloc(size_t size, void *ptr) "size %zu ptr %p" > qemu_vfree(void *ptr) "ptr %p" > [/quote] > > It certainly has plenty of scope for improvement though ! Yes. Should we rename the "Declaring trace events" section to "Syntax for declaring trace events"? Stefan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-26 13:18 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-01-18 8:23 tracing.rst neglects to document syntax of trace-events files Markus Armbruster 2022-01-18 9:02 ` Daniel P. Berrangé 2022-01-26 13:11 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).