forked from rostedt/trace-cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel-shark.h
47 lines (43 loc) · 1.6 KB
/
kernel-shark.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
/*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef _KERNEL_SHARK_H
#define _KERNEL_SHARK_H
#include "trace-graph.h"
#include "trace-view.h"
struct shark_info {
GtkWidget *window;
struct graph_info *ginfo;
struct tracecmd_input *handle;
GtkWidget *treeview;
GtkWidget *spin;
GtkWidget *task_sync_menu;
struct graph_callbacks graph_cbs;
gint selected_task;
gboolean list_filter_enabled;
gboolean list_filter_available;
gboolean graph_follows;
gboolean sync_task_filters;
struct filter_task *list_task_filter;
struct filter_task *list_hide_tasks;
};
#define offset_of(type, field) (long)(&((type *)0)->field)
#define container_of(p, type, field) (type *)((long)p - offset_of(type, field))
#endif /* _KERNEL_SHARK_H */