[0/5] kernel-shark: Optimize the logic of the filtering menus
mbox series

Message ID 20200319141031.3774-1-y.karadz@gmail.com
Headers show
  • kernel-shark: Optimize the logic of the filtering menus
Related show


Yordan Karadzhov (VMware) March 19, 2020, 2:10 p.m. UTC
The original motivation for this change was to fix the problem that all
negative ID filters which are set using the Quick Context menu of
KernelSharlk are not visible when you open the main Filtering menus.
The logic of the main menus is optimized to use both type of filtering
and to automatically decide whether is more efficient to set positive
(show only) or negative (do not show) filter. The patch-set also includes
one very simple bug fix (patch 2/5) that was found during the development
of the new filtering logic.

Yordan Karadzhov (VMware) (5):
  kernel-shark: Add method for checking if a given ID filter is set
  kernel-shark: Fix bug in bool kshark_export_all_cpu_filters()
  kernel-shark: Add two helper methods to KsUtils
  kernel-shark: Remove unused methods from KsMainWindow class
  kernel-shark: Optimize the logic of the filtering menus

 kernel-shark/src/KsCaptureDialog.cpp  |   6 +-
 kernel-shark/src/KsMainWindow.cpp     | 229 +++++++++++++++-----------
 kernel-shark/src/KsMainWindow.hpp     |  16 +-
 kernel-shark/src/KsUtils.cpp          |  38 +++++
 kernel-shark/src/KsUtils.hpp          |   4 +
 kernel-shark/src/libkshark-configio.c |  17 +-
 kernel-shark/src/libkshark.c          |  21 ++-
 kernel-shark/src/libkshark.h          |   2 +
 8 files changed, 211 insertions(+), 122 deletions(-)