Convert LTTngTop to C++ and state system
[lttngtop.git] / src / iostreamtop.h
CommitLineData
1fc22eb4 1/*
aa15ac1c 2 * Copyright (C) 2011-2012 Mathieu Bain <mathieu.bain@polymtl.ca>
1fc22eb4
JD
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
71bd7ce1
AM
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1fc22eb4
JD
16 */
17
18#ifndef _IOSTREANTOP_H
19#define _IOSTREAMTOP_H
20
715cf83c 21extern "C" {
1fc22eb4 22#include <babeltrace/babeltrace.h>
b093de8a 23#include <babeltrace/ctf/events.h>
715cf83c 24}
1fc22eb4
JD
25#include <inttypes.h>
26#include <glib.h>
27#include <asm/unistd.h>
28
715cf83c
PBT
29#include "common.h"
30
31bool get_file(Quark proc_quark, int fd, Quark &file_quark);
32void insert_file(Quark proc, int fd, unsigned long timestamp);
33
34void show_history(Quark proc);
1fc22eb4 35
4adc8274 36enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
715cf83c 37 void *private_data);
4adc8274 38enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
715cf83c 39 void *private_data);
4adc8274 40enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
715cf83c 41 void *private_data);
4adc8274 42enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
715cf83c 43 void *private_data);
4adc8274 44enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
715cf83c
PBT
45 void *private_data);
46enum bt_cb_ret handle_statedump_file_descriptor(
47 struct bt_ctf_event *call_data, void *private_data);
1fc22eb4
JD
48
49#endif /* _IOSTREAMTOP_H */
This page took 0.027006 seconds and 4 git commands to generate.