[2/2] kernel-shark-qt: Fix the default value of the Event Visible flag
diff mbox series

Message ID 20180711133709.26788-2-y.karadz@gmail.com
State New, archived
Headers show
Series
  • [1/2] kernel-shark-qt: Deal with the "no tasks" case in kshark_get_task_pids()
Related show

Commit Message

Yordan Karadzhov (VMware) July 11, 2018, 1:37 p.m. UTC
This patch fixes a simpel bug in the way the "Event Visible" flag of the
kshark_entries is set when the data is loadded.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 kernel-shark-qt/src/libkshark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Rostedt July 11, 2018, 2:04 p.m. UTC | #1
On Wed, 11 Jul 2018 16:37:09 +0300
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com> wrote:

> This patch fixes a simpel bug in the way the "Event Visible" flag of the
> kshark_entries is set when the data is loadded.
> 
> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
> ---

Applied. Thanks Yordan!

-- Steve

Patch
diff mbox series

diff --git a/kernel-shark-qt/src/libkshark.c b/kernel-shark-qt/src/libkshark.c
index 75b88c9..3299752 100644
--- a/kernel-shark-qt/src/libkshark.c
+++ b/kernel-shark-qt/src/libkshark.c
@@ -600,7 +600,7 @@  static size_t get_records(struct kshark_context *kshark_ctx,
 				kshark_set_entry_values(kshark_ctx, rec, entry);
 				pid = entry->pid;
 				/* Apply event filtering. */
-				ret = FILTER_NONE;
+				ret = FILTER_MATCH;
 				if (adv_filter->filters)
 					ret = pevent_filter_match(adv_filter, rec);