1*1a3d31e3SAndroid Build Coastguard Worker /* 2*1a3d31e3SAndroid Build Coastguard Worker * Copyright (C) 2012 Fusion-io 3*1a3d31e3SAndroid Build Coastguard Worker * 4*1a3d31e3SAndroid Build Coastguard Worker * This program is free software; you can redistribute it and/or 5*1a3d31e3SAndroid Build Coastguard Worker * modify it under the terms of the GNU General Public 6*1a3d31e3SAndroid Build Coastguard Worker * License v2 as published by the Free Software Foundation. 7*1a3d31e3SAndroid Build Coastguard Worker * 8*1a3d31e3SAndroid Build Coastguard Worker * This program is distributed in the hope that it will be useful, 9*1a3d31e3SAndroid Build Coastguard Worker * but WITHOUT ANY WARRANTY; without even the implied warranty of 10*1a3d31e3SAndroid Build Coastguard Worker * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11*1a3d31e3SAndroid Build Coastguard Worker * GNU General Public License for more details. 12*1a3d31e3SAndroid Build Coastguard Worker * 13*1a3d31e3SAndroid Build Coastguard Worker * You should have received a copy of the GNU General Public License 14*1a3d31e3SAndroid Build Coastguard Worker * along with this program; if not, write to the Free Software 15*1a3d31e3SAndroid Build Coastguard Worker * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 16*1a3d31e3SAndroid Build Coastguard Worker */ 17*1a3d31e3SAndroid Build Coastguard Worker #ifndef __MPSTAT__ 18*1a3d31e3SAndroid Build Coastguard Worker #define __MPSTAT__ 19*1a3d31e3SAndroid Build Coastguard Worker 20*1a3d31e3SAndroid Build Coastguard Worker int read_mpstat(struct trace *trace, char *trace_name); 21*1a3d31e3SAndroid Build Coastguard Worker char *next_mpstat(struct trace *trace); 22*1a3d31e3SAndroid Build Coastguard Worker char *first_mpstat(struct trace *trace); 23*1a3d31e3SAndroid Build Coastguard Worker int read_mpstat_event(struct trace *trace, double *user, 24*1a3d31e3SAndroid Build Coastguard Worker double *sys, double *iowait, double *irq, 25*1a3d31e3SAndroid Build Coastguard Worker double *soft); 26*1a3d31e3SAndroid Build Coastguard Worker int next_mpstat_line(struct trace *trace); 27*1a3d31e3SAndroid Build Coastguard Worker int add_mpstat_gld(int time, double sys, struct graph_line_data *gld); 28*1a3d31e3SAndroid Build Coastguard Worker #endif 29