iowatcher: Separate program running from waiting
[blktrace.git] / iowatcher / tracers.h
CommitLineData
9e066e23
CM
1/*
2 * Copyright (C) 2012 Fusion-io
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as 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 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
660b0411 15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
9e066e23
CM
16 *
17 */
18#ifndef __IOWATCH_TRACERS
19#define __IOWATCH_TRACERS
20int run_program(char *str);
33e3face
AP
21int run_program2(int argc, char **argv, int expexit, pid_t *pid);
22int wait_program(pid_t pid, const char *pname, int expexit);
9e066e23 23int stop_blktrace(void);
2203e914 24int start_blktrace(char **devices, int num_devices, char *trace_name, char *dest);
e199d546 25int start_mpstat(char *trace_name);
9e066e23 26int wait_for_tracers(void);
e199d546 27
9e066e23
CM
28
29#endif