Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Data Fields
proc_event Struct Reference

#include <cn_proc.h>

Public Types

enum  what {
  PROC_EVENT_NONE = 0x00000000, PROC_EVENT_FORK = 0x00000001, PROC_EVENT_EXEC = 0x00000002, PROC_EVENT_UID = 0x00000004,
  PROC_EVENT_GID = 0x00000040, PROC_EVENT_SID = 0x00000080, PROC_EVENT_PTRACE = 0x00000100, PROC_EVENT_COMM = 0x00000200,
  PROC_EVENT_EXIT = 0x80000000
}
 

Public Member Functions

__u64 __attribute__ ((aligned(8))) timestamp_ns
 

Data Fields

enum proc_event::what what
 
__u32 cpu
 
union {
   struct {
      __u32   err
 
   }   ack
 
   struct fork_proc_event {
      __kernel_pid_t   parent_pid
 
      __kernel_pid_t   parent_tgid
 
      __kernel_pid_t   child_pid
 
      __kernel_pid_t   child_tgid
 
   }   fork
 
   struct exec_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
   }   exec
 
   struct id_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
      union {
         __u32   ruid
 
         __u32   rgid
 
      }   r
 
      union {
         __u32   euid
 
         __u32   egid
 
      }   e
 
   }   id
 
   struct sid_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
   }   sid
 
   struct ptrace_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
      __kernel_pid_t   tracer_pid
 
      __kernel_pid_t   tracer_tgid
 
   }   ptrace
 
   struct comm_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
      char   comm [16]
 
   }   comm
 
   struct exit_proc_event {
      __kernel_pid_t   process_pid
 
      __kernel_pid_t   process_tgid
 
      __u32   exit_code
 
      __u32   exit_signal
 
   }   exit
 
event_data
 

Detailed Description

Definition at line 45 of file cn_proc.h.

Member Enumeration Documentation

enum what
Enumerator:
PROC_EVENT_NONE 
PROC_EVENT_FORK 
PROC_EVENT_EXEC 
PROC_EVENT_UID 
PROC_EVENT_GID 
PROC_EVENT_SID 
PROC_EVENT_PTRACE 
PROC_EVENT_COMM 
PROC_EVENT_EXIT 

Definition at line 46 of file cn_proc.h.

Member Function Documentation

Field Documentation

struct { ... } ack
__kernel_pid_t child_pid

Definition at line 73 of file cn_proc.h.

__kernel_pid_t child_tgid

Definition at line 74 of file cn_proc.h.

char comm[16]

Definition at line 110 of file cn_proc.h.

struct { ... } ::comm_proc_event comm

Definition at line 62 of file cn_proc.h.

union { ... } e
__u32 egid

Definition at line 91 of file cn_proc.h.

__u32 err

Definition at line 67 of file cn_proc.h.

__u32 euid

Definition at line 90 of file cn_proc.h.

union { ... } event_data
struct { ... } ::exec_proc_event exec
struct { ... } ::exit_proc_event exit
__u32 exit_code

Definition at line 116 of file cn_proc.h.

__u32 exit_signal

Definition at line 116 of file cn_proc.h.

struct { ... } ::fork_proc_event fork
struct { ... } ::id_proc_event id
__kernel_pid_t parent_pid

Definition at line 71 of file cn_proc.h.

__kernel_pid_t parent_tgid

Definition at line 72 of file cn_proc.h.

__kernel_pid_t process_pid

Definition at line 78 of file cn_proc.h.

__kernel_pid_t process_tgid

Definition at line 79 of file cn_proc.h.

struct { ... } ::ptrace_proc_event ptrace
union { ... } r
__u32 rgid

Definition at line 87 of file cn_proc.h.

__u32 ruid

Definition at line 86 of file cn_proc.h.

struct { ... } ::sid_proc_event sid
__kernel_pid_t tracer_pid

Definition at line 103 of file cn_proc.h.

__kernel_pid_t tracer_tgid

Definition at line 104 of file cn_proc.h.


The documentation for this struct was generated from the following file: