forked from smihir/trace-cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trace-view.h
73 lines (58 loc) · 2.31 KB
/
trace-view.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Copyright (C) 2009, 2010 Red Hat Inc, Steven Rostedt <[email protected]>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License (not later!)
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef _TRACE_VIEW_H
#define _TRACE_VIEW_H
#include "trace-view-store.h"
#include "trace-filter.h"
#include "trace-xml.h"
void
trace_view_load(GtkWidget *view, struct tracecmd_input *handle,
GtkWidget *spin);
void trace_view_reload(GtkWidget *view, struct tracecmd_input *handle,
GtkWidget *spin);
void trace_view(int argc, char **argv);
void trace_view_update_filters(GtkWidget *treeview,
struct filter_task *task_filter,
struct filter_task *hide_tasks);
void trace_view_make_selection_visible(GtkWidget *treeview);
void trace_view_select(GtkWidget *treeview, guint64 time);
void trace_view_event_filter_callback(gboolean accept,
gboolean all_events,
gchar **systems,
gint *events,
gpointer data);
void trace_view_adv_filter_callback(gboolean accept,
const gchar *text,
gint *event_ids,
gpointer data);
void trace_view_cpu_filter_callback(gboolean accept,
gboolean all_cpus,
guint64 *selected_cpu_mask,
gpointer data);
void trace_view_copy_filter(GtkWidget *treeview,
gboolean all_events,
struct event_filter *event_filter);
void trace_view_search_setup(GtkBox *box, GtkTreeView *treeview);
gint trace_view_get_selected_row(GtkWidget *treeview);
int trace_view_save_filters(struct tracecmd_xml_handle *handle,
GtkTreeView *treeview);
int trace_view_load_filters(struct tracecmd_xml_handle *handle,
GtkTreeView *treeview);
#endif /* _TRACE_VIEW_H */