2 * Copyright (c) 2014 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef SYS_RESOURCE_H
18 #define SYS_RESOURCE_H 1
21 struct timeval ru_utime; /* user CPU time used */
22 struct timeval ru_stime; /* system CPU time used */
23 long ru_maxrss; /* maximum resident set size */
24 long ru_ixrss; /* integral shared memory size */
25 long ru_idrss; /* integral unshared data size */
26 long ru_isrss; /* integral unshared stack size */
27 long ru_minflt; /* page reclaims (soft page faults) */
28 long ru_majflt; /* page faults (hard page faults) */
29 long ru_nswap; /* swaps */
30 long ru_inblock; /* block input operations */
31 long ru_oublock; /* block output operations */
32 long ru_msgsnd; /* IPC messages sent */
33 long ru_msgrcv; /* IPC messages received */
34 long ru_nsignals; /* signals received */
35 long ru_nvcsw; /* voluntary context switches */
36 long ru_nivcsw; /* involuntary context switches */
43 #ifndef RUSAGE_CHILDREN
44 #define RUSAGE_CHILDREN 2
48 #define RUSAGE_THREAD 3
51 #endif /* sys/resource.h */