diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-02 00:14:06 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-17 21:43:46 -0500 |
commit | ac9d350897a5a6fec7b0e10cc421dc9a0aa995eb (patch) | |
tree | d5018d0427f7fc60cc0d2897d4856cf43aa72a4d /trace-view-store.h | |
parent | 2bd8c3aecec8b3dd9c514853e1d4ddf49e228ab3 (diff) |
Add filtering of CPUs
Added cpu dialog to filter on CPUs. Still need to add the
event filtering, even though the event filter dialog is active.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-view-store.h')
-rw-r--r-- | trace-view-store.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/trace-view-store.h b/trace-view-store.h index 73a38e7..8440888 100644 --- a/trace-view-store.h +++ b/trace-view-store.h | |||
@@ -78,9 +78,41 @@ struct _TraceViewStore | |||
78 | TraceViewRecord **cpu_list; | 78 | TraceViewRecord **cpu_list; |
79 | gint *cpu_items; | 79 | gint *cpu_items; |
80 | 80 | ||
81 | /* filters */ | ||
82 | gint all_events; /* set 1 when all events are enabled */ | ||
83 | /* else */ | ||
84 | gchar **systems; /* sorted list of systems that are enabled */ | ||
85 | gint **event_types; /* sorted list of events that are enabled */ | ||
86 | |||
87 | gint all_cpus; /* set 1 when all cpus are enabled */ | ||
88 | /* else */ | ||
89 | guint64 *cpu_mask; /* cpus that are enabled */ | ||
90 | |||
81 | gint stamp; /* Random integer to check whether an iter belongs to our model */ | 91 | gint stamp; /* Random integer to check whether an iter belongs to our model */ |
82 | }; | 92 | }; |
83 | 93 | ||
94 | /* helper functions */ | ||
95 | |||
96 | static inline gint trace_view_store_get_cpus(TraceViewStore *store) | ||
97 | { | ||
98 | return store->cpus; | ||
99 | } | ||
100 | |||
101 | static inline guint64 *trace_view_store_get_cpu_mask(TraceViewStore *store) | ||
102 | { | ||
103 | return store->cpu_mask; | ||
104 | } | ||
105 | |||
106 | static inline gint trace_view_store_get_all_cpus(TraceViewStore *store) | ||
107 | { | ||
108 | return store->all_cpus; | ||
109 | } | ||
110 | |||
111 | gboolean trace_view_store_cpu_isset(TraceViewStore *store, gint cpu); | ||
112 | |||
113 | void trace_view_store_set_all_cpus(TraceViewStore *store); | ||
114 | void trace_view_store_set_cpu(TraceViewStore *store, gint cpu); | ||
115 | void trace_view_store_clear_cpu(TraceViewStore *store, gint cpu); | ||
84 | 116 | ||
85 | 117 | ||
86 | /* TraceViewStoreClass: more boilerplate GObject stuff */ | 118 | /* TraceViewStoreClass: more boilerplate GObject stuff */ |