Print this page
OS-3820 lxbrand ptrace(2): the next generation
OS-3685 lxbrand PTRACE_O_TRACEFORK race condition
OS-3834 lxbrand 64-bit strace(1) reports 64-bit process as using x32 ABI
OS-3794 lxbrand panic on init signal death
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Bryan Cantrill <bryan@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/procfs.h
          +++ new/usr/src/uts/common/sys/procfs.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27   27   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
       28 + * Copyright 2015, Joyent, Inc.
  28   29   */
  29   30  
  30   31  #ifndef _SYS_PROCFS_H
  31   32  #define _SYS_PROCFS_H
  32   33  
  33   34  #ifdef  __cplusplus
  34   35  extern "C" {
  35   36  #endif
  36   37  
  37   38  /*
↓ open down ↓ 188 lines elided ↑ open up ↑
 226  227   * Reasons for stopping (pr_why).
 227  228   */
 228  229  #define PR_REQUESTED    1
 229  230  #define PR_SIGNALLED    2
 230  231  #define PR_SYSENTRY     3
 231  232  #define PR_SYSEXIT      4
 232  233  #define PR_JOBCONTROL   5
 233  234  #define PR_FAULTED      6
 234  235  #define PR_SUSPENDED    7
 235  236  #define PR_CHECKPOINT   8
      237 +#define PR_BRAND        9
 236  238  
 237  239  /*
 238  240   * lwp ps(1) information file.  /proc/<pid>/lwp/<lwpid>/lwpsinfo
 239  241   */
 240  242  #define PRFNSZ          16      /* Maximum size of execed filename */
 241  243  typedef struct lwpsinfo {
 242  244          int     pr_flag;        /* lwp flags (DEPRECATED; do not use) */
 243  245          id_t    pr_lwpid;       /* lwp id */
 244  246          uintptr_t pr_addr;      /* internal address of lwp */
 245  247          uintptr_t pr_wchan;     /* wait addr for sleeping lwp */
↓ open down ↓ 616 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX