view probes/probes.h @ 10:3a1977ecccc7

Add a configure script and fix various things
author Louis Opter <kalessin@kalessin.fr>
date Thu, 06 Jan 2011 00:59:06 +0100
parents 6f2e13f5fcfd
children
line wrap: on
line source

#ifndef _LXC_STATS_PROBES_H_
# define _LXC_STATS_PROBES_H_

struct  lxcst;

struct  _lxcst_probe {
    int         (*fn)(struct lxcst *);
    const char  *name;
};

/**
 * The array of available probe functions.
 */
extern const struct _lxcst_probe _lxcst_probes[];

/**
 * Read the cpuacct files and fill the cpuacct field of the struct lxcst.
 *
 * @param [in,out] c The container to work on.
 *
 * @return 0 on success, -1 otherwise
 */
int _lxcst_probe_cpuacct(struct lxcst *c);

/**
 * Read the cpuacct files and fill the memory field of the struct lxcst.
 *
 * @param [in,out] c The container to work on.
 *
 * @return 0 on success, -1 otherwise
 */
int _lxcst_probe_memory(struct lxcst *c);

#endif