Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/common/Pservice.c
          +++ new/usr/src/lib/libproc/common/Pservice.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  #include <stdarg.h>
  29   27  #include <string.h>
  30   28  #include "Pcontrol.h"
  31   29  
  32   30  /*
  33   31   * This file implements the process services declared in <proc_service.h>.
  34   32   * This enables libproc to be used in conjunction with libc_db and
  35   33   * librtld_db.  As most of these facilities are already provided by
  36   34   * (more elegant) interfaces in <libproc.h>, we can just call those.
  37   35   *
↓ open down ↓ 121 lines elided ↑ open up ↑
 159  157  {
 160  158          if (P->state != PS_STOP)
 161  159                  return (PS_ERR);
 162  160  
 163  161          if (Plwp_setfpregs(P, lwpid, regs) == 0)
 164  162                  return (PS_OK);
 165  163  
 166  164          return (PS_BADLID);
 167  165  }
 168  166  
 169      -#if defined(sparc) || defined(__sparc)
 170      -
 171  167  ps_err_e
 172  168  ps_lgetxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *xrsize)
 173  169  {
 174  170          char fname[PATH_MAX];
 175  171          struct stat statb;
 176  172  
 177  173          if (P->state == PS_DEAD) {
 178  174                  lwp_info_t *lwp = list_next(&P->core->core_lwp_head);
 179  175                  uint_t i;
 180  176  
↓ open down ↓ 39 lines elided ↑ open up ↑
 220  216          if (P->state != PS_STOP)
 221  217                  return (PS_ERR);
 222  218  
 223  219          /* LINTED - alignment */
 224  220          if (Plwp_setxregs(P, lwpid, (prxregset_t *)xregs) == 0)
 225  221                  return (PS_OK);
 226  222  
 227  223          return (PS_BADLID);
 228  224  }
 229  225  
 230      -#endif  /* sparc */
 231      -
 232  226  #if defined(__i386) || defined(__amd64)
 233  227  
 234  228  ps_err_e
 235  229  ps_lgetLDT(struct ps_prochandle *P, lwpid_t lwpid, struct ssd *ldt)
 236  230  {
 237  231  #if defined(__amd64) && defined(_LP64)
 238  232          if (P->status.pr_dmodel != PR_MODEL_NATIVE) {
 239  233  #endif
 240  234          prgregset_t regs;
 241  235          struct ssd *ldtarray;
↓ open down ↓ 136 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX