Logo
Explore Help
Sign In
genesi/linux-legacy
1
0
Fork 0
You've already forked linux-legacy
mirror of https://github.com/genesi/linux-legacy.git synced 2026-07-11 03:06:49 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
7f021ce1957504cacc78896de857b90293badabc
linux-legacy/include/linux/cpu_acct.h

15 lines
304 B
C
Raw Normal View History

Task Control Groups: example CPU accounting subsystem This example demonstrates how to use the generic cgroup subsystem for a simple resource tracker that counts, for the processes in a cgroup, the total CPU time used and the %CPU used in the last complete 10 second interval. Portions contributed by Balbir Singh <balbir@in.ibm.com> Signed-off-by: Paul Menage <menage@google.com> Cc: Serge E. Hallyn <serue@us.ibm.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Paul Jackson <pj@sgi.com> Cc: Kirill Korotaev <dev@openvz.org> Cc: Herbert Poetzl <herbert@13thfloor.at> Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-18 23:39:42 -07:00
#ifndef _LINUX_CPU_ACCT_H
#define _LINUX_CPU_ACCT_H
#include <linux/cgroup.h>
#include <asm/cputime.h>
#ifdef CONFIG_CGROUP_CPUACCT
extern void cpuacct_charge(struct task_struct *, cputime_t cputime);
#else
static void inline cpuacct_charge(struct task_struct *p, cputime_t cputime) {}
#endif
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 37ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API