mbox series

[0/9] libtracefs: few fixes and a lot of unit tests

Message ID 20200129095421.881786-1-tz.stoyanov@gmail.com (mailing list archive)
Headers show
Series libtracefs: few fixes and a lot of unit tests | expand

Message

Tzvetomir Stoyanov (VMware) Jan. 29, 2020, 9:54 a.m. UTC
Few minor libtracefs fixes and a lot of new unit tests,
covering all library APIs.

Tzvetomir Stoyanov (VMware) (9):
  trace-cmd: fix description of tracefs_get_tracing_dir() API
  trace-cmd: Remove tracefs_read_page_record() API
  trace-cmd: Add sanity check of tracefs_get_tracing_file() input
    parameter.
  trace-cmd: Unit test for libtracefs
  trace-cmd: Unit tests for libtracefs APIs related to tracing file /
    directory
  trace-cmd: Unit tests for libtracefs APIs related to ftrace instances
  trace-cmd: Unit tests for libtracefs APIs related to ftrace events and
    systems
  trace-cmd: Unit test for tracefs_tracers() API
  trace-cmd: Unit tests for libtracefs APIs related to allocating a tep
    handler based on local events

 Makefile                    |  13 +-
 include/tracefs/tracefs.h   |   3 -
 lib/tracefs/tracefs-utils.c |   5 +-
 utest/Makefile              |  41 +++
 utest/README                |  15 ++
 utest/trace-utest.c         |  83 ++++++
 utest/trace-utest.h         |  11 +
 utest/tracefs-utest.c       | 491 ++++++++++++++++++++++++++++++++++++
 8 files changed, 656 insertions(+), 6 deletions(-)
 create mode 100644 utest/Makefile
 create mode 100644 utest/README
 create mode 100644 utest/trace-utest.c
 create mode 100644 utest/trace-utest.h
 create mode 100644 utest/tracefs-utest.c