OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [include/] [linux/] [tsacct_kern.h] - Blame information for rev 81

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
/*
2
 * tsacct_kern.h - kernel header for system accounting over taskstats interface
3
 *
4
 * Copyright (C) Jay Lan        SGI
5
 */
6
 
7
#ifndef _LINUX_TSACCT_KERN_H
8
#define _LINUX_TSACCT_KERN_H
9
 
10
#include <linux/taskstats.h>
11
 
12
#ifdef CONFIG_TASKSTATS
13
extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
14
#else
15
static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
16
{}
17
#endif /* CONFIG_TASKSTATS */
18
 
19
#ifdef CONFIG_TASK_XACCT
20
extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
21
extern void acct_update_integrals(struct task_struct *tsk);
22
extern void acct_clear_integrals(struct task_struct *tsk);
23
#else
24
static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
25
{}
26
static inline void acct_update_integrals(struct task_struct *tsk)
27
{}
28
static inline void acct_clear_integrals(struct task_struct *tsk)
29
{}
30
#endif /* CONFIG_TASK_XACCT */
31
 
32
#endif
33
 
34
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.