diff mbox series

[01/17] kernel-shark-qt: Updata Event filter mask when applaing filters to Graph

Message ID 20181128151530.21965-2-ykaradzhov@vmware.com (mailing list archive)
State Accepted
Commit f74cb0b10fd865f7e5790eb18ee6290ce0881bd4
Headers show
Series More modifications and bug fixes toward KS 1.0 | expand

Commit Message

Yordan Karadzhov Nov. 28, 2018, 3:16 p.m. UTC
KS_GRAPH_VIEW_FILTER_MASK and KS_EVENT_VIEW_FILTER_MASK are two bit
flags used to control the visibility of an entry inside the Graphs.
Both flags have to be updated when the "Apply filters to Graph"
checkbox is clicked.

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark-qt/src/KsUtils.cpp | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/kernel-shark-qt/src/KsUtils.cpp b/kernel-shark-qt/src/KsUtils.cpp
index 5e4c9c8..8bb0970 100644
--- a/kernel-shark-qt/src/KsUtils.cpp
+++ b/kernel-shark-qt/src/KsUtils.cpp
@@ -67,8 +67,10 @@  void graphFilterSync(bool state)
 
 	if (state) {
 		kshark_ctx->filter_mask |= KS_GRAPH_VIEW_FILTER_MASK;
+		kshark_ctx->filter_mask |= KS_EVENT_VIEW_FILTER_MASK;
 	} else {
 		kshark_ctx->filter_mask &= ~KS_GRAPH_VIEW_FILTER_MASK;
+		kshark_ctx->filter_mask &= ~KS_EVENT_VIEW_FILTER_MASK;
 	}
 }