From patchwork Thu Jun 28 16:30:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10758583 Return-Path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:44624 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751740AbeF1Qas (ORCPT ); Thu, 28 Jun 2018 12:30:48 -0400 Received: by mail-wr0-f196.google.com with SMTP id p12-v6so6138133wrn.11 for ; Thu, 28 Jun 2018 09:30:48 -0700 (PDT) From: "Yordan Karadzhov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, "Yordan Karadzhov (VMware)" Subject: [PATCH v2 0/9] Introduce the basic part of the C API of KS-1.0 Date: Thu, 28 Jun 2018 19:30:03 +0300 Message-Id: <20180628163012.21477-1-y.karadz@gmail.com> Sender: linux-trace-devel-owner@vger.kernel.org List-ID: Content-Length: 2811 This series of patches introduces the first part of the C API used by the Qt-based version of KernelShark. This part of the API is responsible for loading trace data files and for filtering of this data. Examples, demonstrationg the usage of this part of the API are added as well. This is the second version of this series of patches. Major changes from v1 are: [2/9] The Doxygen documentation shows the source code. The huge template configuration file is replaced by a short file containing only the parameters, having non-default values. [6/9] This version of the patch contains a number of improvements suggested by Steven Rostedt in his review. Thanks Steven! [8/9] New patch introducing the Advanced filtering. This is a sophisticated filtering, based on the content of the trace event. [9/9] New patche adding an example how to use the Advanced filtering. Yordan Karadzhov (VMware) (9): kernel-shark-qt: Add Cmake build system for the Qt based KernelShark kernel-shark-qt: Automatic generation of doxygen documentation kernel-shark-qt: Add API for loading trace.dat files kernel-shark-qt: Add an example showing how to load trace data kernel-shark-qt: Add a README file to trace-cmd/kernel-shark-qt kernel-shark-qt: Add filtering to the C API of KernelShark kernel-shark-qt: Add an example showing how to filter trace data kernel-shark-qt: Add Advanced filter to the session context. kernel-shark-qt: Add example of advanded filtering kernel-shark-qt/CMakeLists.txt | 53 ++ kernel-shark-qt/README | 44 ++ kernel-shark-qt/build/FindTraceCmd.cmake | 70 +++ kernel-shark-qt/build/cmake_clean.sh | 11 + kernel-shark-qt/build/deff.h.cmake | 20 + kernel-shark-qt/doc/dox_config | 15 + kernel-shark-qt/examples/CMakeLists.txt | 9 + kernel-shark-qt/examples/datafilter.c | 148 +++++ kernel-shark-qt/examples/dataload.c | 83 +++ kernel-shark-qt/src/CMakeLists.txt | 13 + kernel-shark-qt/src/libkshark.c | 654 +++++++++++++++++++++++ kernel-shark-qt/src/libkshark.h | 273 ++++++++++ 12 files changed, 1393 insertions(+) create mode 100644 kernel-shark-qt/CMakeLists.txt create mode 100644 kernel-shark-qt/README create mode 100644 kernel-shark-qt/build/FindTraceCmd.cmake create mode 100755 kernel-shark-qt/build/cmake_clean.sh create mode 100644 kernel-shark-qt/build/deff.h.cmake create mode 100644 kernel-shark-qt/doc/dox_config create mode 100644 kernel-shark-qt/examples/CMakeLists.txt create mode 100644 kernel-shark-qt/examples/datafilter.c create mode 100644 kernel-shark-qt/examples/dataload.c create mode 100644 kernel-shark-qt/src/CMakeLists.txt create mode 100644 kernel-shark-qt/src/libkshark.c create mode 100644 kernel-shark-qt/src/libkshark.h