Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * cn_proc.h - process events connector
0003  *
0004  * Copyright (C) Matt Helsley, IBM Corp. 2005
0005  * Based on cn_fork.h by Nguyen Anh Quynh and Guillaume Thouvenin
0006  * Copyright (C) 2005 Nguyen Anh Quynh <aquynh@gmail.com>
0007  * Copyright (C) 2005 Guillaume Thouvenin <guillaume.thouvenin@bull.net>
0008  *
0009  * This program is free software; you can redistribute it and/or modify it
0010  * under the terms of version 2.1 of the GNU Lesser General Public License
0011  * as published by the Free Software Foundation.
0012  *
0013  * This program is distributed in the hope that it would be useful, but
0014  * WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0016  */
0017 #ifndef CN_PROC_H
0018 #define CN_PROC_H
0019 
0020 #include <uapi/linux/cn_proc.h>
0021 
0022 #ifdef CONFIG_PROC_EVENTS
0023 void proc_fork_connector(struct task_struct *task);
0024 void proc_exec_connector(struct task_struct *task);
0025 void proc_id_connector(struct task_struct *task, int which_id);
0026 void proc_sid_connector(struct task_struct *task);
0027 void proc_ptrace_connector(struct task_struct *task, int which_id);
0028 void proc_comm_connector(struct task_struct *task);
0029 void proc_coredump_connector(struct task_struct *task);
0030 void proc_exit_connector(struct task_struct *task);
0031 #else
0032 static inline void proc_fork_connector(struct task_struct *task)
0033 {}
0034 
0035 static inline void proc_exec_connector(struct task_struct *task)
0036 {}
0037 
0038 static inline void proc_id_connector(struct task_struct *task,
0039                      int which_id)
0040 {}
0041 
0042 static inline void proc_sid_connector(struct task_struct *task)
0043 {}
0044 
0045 static inline void proc_comm_connector(struct task_struct *task)
0046 {}
0047 
0048 static inline void proc_ptrace_connector(struct task_struct *task,
0049                      int ptrace_id)
0050 {}
0051 
0052 static inline void proc_coredump_connector(struct task_struct *task)
0053 {}
0054 
0055 static inline void proc_exit_connector(struct task_struct *task)
0056 {}
0057 #endif  /* CONFIG_PROC_EVENTS */
0058 #endif  /* CN_PROC_H */