From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> The first three patches are helper functions to help with the final patch, although the second patch can probably stand on its own, as it simplifies access to the files in the system/event/ directory, instead of having to build it first and then call tracefs_instance_file_*(). Steven Rostedt (VMware) (4): libtracefs: Implement tracefs_list_size() libtracefs: Implement functions to work on event directory files libtracefs: Have instances have internal ref counting libtracefs: Implement API to create / modify and display histograms Documentation/libtracefs-hist-cont.txt | 192 +++++++++ Documentation/libtracefs-hist.txt | 290 ++++++++++++++ include/tracefs-local.h | 4 + include/tracefs.h | 66 +++ src/Makefile | 1 + src/tracefs-events.c | 182 +++++++++ src/tracefs-hist.c | 529 +++++++++++++++++++++++++ src/tracefs-instance.c | 56 ++- src/tracefs-utils.c | 16 + 9 files changed, 1327 insertions(+), 9 deletions(-) create mode 100644 Documentation/libtracefs-hist-cont.txt create mode 100644 Documentation/libtracefs-hist.txt create mode 100644 src/tracefs-hist.c -- 2.30.2