linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/12] libtracefs dynamic events support
@ 2021-11-01  9:08 Tzvetomir Stoyanov (VMware)
  2021-11-01  9:08 ` [PATCH v2 01/12] libtracefs: Add new internal APIs for dynamic events Tzvetomir Stoyanov (VMware)
                   ` (12 more replies)
  0 siblings, 13 replies; 21+ messages in thread
From: Tzvetomir Stoyanov (VMware) @ 2021-11-01  9:08 UTC (permalink / raw)
  To: rostedt, y.karadz; +Cc: linux-trace-devel

The libtracefs logic that works with ftrace dynamic events is unified and
capsulated into internal APIs. This change makes the code more consistent
and reusable. Also, adding future libtracefs support for uprobes and
eprobes dynamic events is simplified.
The existing library APIs for kprobes and synthetic events are reimplemented
using the new dynamic events helpers.

Suggested-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>

v2 changes:
 - Removed triple pointer from the APIs.
 - Reimplement dynamic events parsing using strtok_r instead of strchr.
 - Coding style fixes.

Tzvetomir Stoyanov (VMware) (12):
  libtracefs: Add new internal APIs for dynamic events
  libtracefs: Rename tracefs_get_kprobes API
  libtracefs: New kprobes APIs
  libtracefs: Remove redundant kprobes APIs
  libtracefs: Reimplement tracefs_kprobes_get API
  libtracefs: Change tracefs_kprobe_info API
  libtracefs: Reimplement kprobe raw APIs
  libtracefs: Extend kprobes unit test
  libtracefs: Update kprobes man pages
  libtracefs: Rename tracefs_synth_init API
  libtracefs: Use the internal dynamic events API when creating
    synthetic events
  libtracefs: Document tracefs_dynevent_list_free() API

 Documentation/libtracefs-kprobes.txt | 131 ++++---
 Documentation/libtracefs-synth.txt   |  20 +-
 Documentation/libtracefs-synth2.txt  |  10 +-
 Documentation/libtracefs-utils.txt   |   6 +-
 Documentation/libtracefs.txt         |  12 +
 include/tracefs-local.h              |  35 ++
 include/tracefs.h                    |  38 +-
 src/Makefile                         |   1 +
 src/tracefs-dynevents.c              | 492 ++++++++++++++++++++++++++
 src/tracefs-hist.c                   | 110 +++---
 src/tracefs-kprobes.c                | 508 +++++++++++++--------------
 src/tracefs-sqlhist.c                |   6 +-
 utest/tracefs-utest.c                | 408 ++++++++++++---------
 13 files changed, 1187 insertions(+), 590 deletions(-)
 create mode 100644 src/tracefs-dynevents.c

-- 
2.31.1


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

end of thread, other threads:[~2021-11-02 13:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-01  9:08 [PATCH v2 00/12] libtracefs dynamic events support Tzvetomir Stoyanov (VMware)
2021-11-01  9:08 ` [PATCH v2 01/12] libtracefs: Add new internal APIs for dynamic events Tzvetomir Stoyanov (VMware)
2021-11-01 17:06   ` Yordan Karadzhov
2021-11-02  4:33     ` Tzvetomir Stoyanov
2021-11-02 13:25       ` Steven Rostedt
2021-11-01  9:08 ` [PATCH v2 02/12] libtracefs: Rename tracefs_get_kprobes API Tzvetomir Stoyanov (VMware)
2021-11-01  9:08 ` [PATCH v2 03/12] libtracefs: New kprobes APIs Tzvetomir Stoyanov (VMware)
2021-11-01 17:22   ` Yordan Karadzhov
2021-11-02  4:58     ` Tzvetomir Stoyanov
2021-11-02  7:43       ` Yordan Karadzhov
2021-11-02 13:49         ` Steven Rostedt
2021-11-01  9:08 ` [PATCH v2 04/12] libtracefs: Remove redundant " Tzvetomir Stoyanov (VMware)
2021-11-01  9:08 ` [PATCH v2 05/12] libtracefs: Reimplement tracefs_kprobes_get API Tzvetomir Stoyanov (VMware)
2021-11-01  9:08 ` [PATCH v2 06/12] libtracefs: Change tracefs_kprobe_info API Tzvetomir Stoyanov (VMware)
2021-11-01  9:08 ` [PATCH v2 07/12] libtracefs: Reimplement kprobe raw APIs Tzvetomir Stoyanov (VMware)
2021-11-01  9:09 ` [PATCH v2 08/12] libtracefs: Extend kprobes unit test Tzvetomir Stoyanov (VMware)
2021-11-01  9:09 ` [PATCH v2 09/12] libtracefs: Update kprobes man pages Tzvetomir Stoyanov (VMware)
2021-11-01  9:09 ` [PATCH v2 10/12] libtracefs: Rename tracefs_synth_init API Tzvetomir Stoyanov (VMware)
2021-11-01  9:09 ` [PATCH v2 11/12] libtracefs: Use the internal dynamic events API when creating synthetic events Tzvetomir Stoyanov (VMware)
2021-11-01  9:09 ` [PATCH v2 12/12] libtracefs: Document tracefs_dynevent_list_free() API Tzvetomir Stoyanov (VMware)
2021-11-01 14:21 ` [PATCH v2 00/12] libtracefs dynamic events support Tzvetomir Stoyanov

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).