blob: edb378738f19f8c6edc50bcb9d8d05ca276f1fab [file] [log] [blame]
/*
* Copyright (C) 2009, 2010 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* 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;
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 */