All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] trace: Add a trace backend for the recorder library
@ 2020-07-23 13:29 Christophe de Dinechin
  2020-07-23 13:29 ` [PATCH v4 1/2] trace: Add support for recorder back-end Christophe de Dinechin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Christophe de Dinechin @ 2020-07-23 13:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: Michael Tokarev, Markus Armbruster, Dr. David Alan Gilbert,
	Stefan Hajnoczi, Christophe de Dinechin, Laurent Vivier

The recorder library implements low-cost always-on tracing, with three
usage models:

1. Flight recorder: Dump information on recent events in case of crash
2. Tracing: Individual traces can be enabled using environment variables
3. Real-time graphing / control, using the recorder_scope application

This short series introduces a new "recorder" back-end which connects
to the recorder. Traces using the recorder are intentionally "always on",
because the recorder library is primarily designed to record
information for later playback in case of crash, tracing being only a
secondary capability.

An example is given of how the recorder can also be used separately
from generated traces. The example uses locking, which can make sense
for both post-mortem and real-time graphing.

Changes in v3:
* Address coding style issues (C++ comments, wrong include, etc)
* Fix args type for HMP command (for now, still a single command)
* Add basic help for HMP command
* Use pkg-config for recorder information. This requires recorder
  1.0.10 or later.

Changes in v4:
* Rebased on current master
* Fix GPL v2-only license
* Remove confusing #ifdef around #include "trace/recorder.h"
* Added myself as a reviewer for trace subsystem

Later patches wil address larger topics that were discussed that
would impact other tracing mechanisms, as well as GitHub / GitLab
build tests.

Christophe de Dinechin (2):
  trace: Add support for recorder back-end
  trace: Example of non-tracing recorder use

 MAINTAINERS                           |  1 +
 configure                             | 14 ++++++++
 hmp-commands.hx                       | 23 +++++++++++-
 monitor/misc.c                        | 25 +++++++++++++
 scripts/tracetool/backend/recorder.py | 52 +++++++++++++++++++++++++++
 trace/Makefile.objs                   |  1 +
 trace/control.c                       |  5 +++
 trace/recorder.c                      | 27 ++++++++++++++
 trace/recorder.h                      | 32 +++++++++++++++++
 util/module.c                         |  6 ++++
 util/qemu-thread-common.h             |  7 ++++
 11 files changed, 192 insertions(+), 1 deletion(-)
 create mode 100644 scripts/tracetool/backend/recorder.py
 create mode 100644 trace/recorder.c
 create mode 100644 trace/recorder.h

-- 
2.26.2




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-03 11:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-23 13:29 [PATCH v4 0/2] trace: Add a trace backend for the recorder library Christophe de Dinechin
2020-07-23 13:29 ` [PATCH v4 1/2] trace: Add support for recorder back-end Christophe de Dinechin
2020-08-03 10:40   ` Stefan Hajnoczi
2020-08-03 11:49   ` Markus Armbruster
2020-07-23 13:29 ` [PATCH v4 2/2] trace: Example of non-tracing recorder use Christophe de Dinechin
2020-08-03 10:44   ` Stefan Hajnoczi
2020-08-03 11:54     ` Markus Armbruster
2020-07-29 13:06 ` [PATCH v4 0/2] trace: Add a trace backend for the recorder library Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.