1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2006 Cluster File Systems, Inc.
5 * Author: Nikita Danilov <nikita@clusterfs.com>
7 * This file is part of Lustre, http://www.lustre.org.
9 * Lustre is free software; you can redistribute it and/or
10 * modify it under the terms of version 2 of the GNU General Public
11 * License as published by the Free Software Foundation.
13 * Lustre is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Lustre; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef __LUSTRE_LU_TIME_H
25 #define __LUSTRE_LU_TIME_H
30 int lu_time_global_init(void);
31 void lu_time_global_fini(void);
33 int lu_time_named_init(struct lprocfs_stats **stats, const char *name,
34 cfs_proc_dir_entry_t *entry,
35 const char **names, int nr);
36 int lu_time_init(struct lprocfs_stats **stats,
37 cfs_proc_dir_entry_t *entry,
38 const char **names, int nr);
39 void lu_time_fini(struct lprocfs_stats **stats);
41 void lu_lprocfs_time_start(const struct lu_env *env);
42 void lu_lprocfs_time_end(const struct lu_env *env,
43 struct lprocfs_stats *stats, int idx);
45 int lu_time_is_clean(const struct lu_env *env);
47 #endif /* __LUSTRE_LU_TIME_H */