blob: 461f0a2ed6fd711dc4517e5e0eab8b065e07a972 [file] [log] [blame]
#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;
struct graph_callbacks graph_cbs;
gint selected_task;
gboolean list_filter_enabled;
gboolean graph_follows;
};
#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 */