aboutsummaryrefslogtreecommitdiffstats
path: root/trace-view-store.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-02 00:14:06 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-17 21:43:46 -0500
commitac9d350897a5a6fec7b0e10cc421dc9a0aa995eb (patch)
treed5018d0427f7fc60cc0d2897d4856cf43aa72a4d /trace-view-store.h
parent2bd8c3aecec8b3dd9c514853e1d4ddf49e228ab3 (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.h32
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
96static inline gint trace_view_store_get_cpus(TraceViewStore *store)
97{
98 return store->cpus;
99}
100
101static inline guint64 *trace_view_store_get_cpu_mask(TraceViewStore *store)
102{
103 return store->cpu_mask;
104}
105
106static inline gint trace_view_store_get_all_cpus(TraceViewStore *store)
107{
108 return store->all_cpus;
109}
110
111gboolean trace_view_store_cpu_isset(TraceViewStore *store, gint cpu);
112
113void trace_view_store_set_all_cpus(TraceViewStore *store);
114void trace_view_store_set_cpu(TraceViewStore *store, gint cpu);
115void 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 */