Print this page
OS-5192 need faster clock_gettime
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Ryan Zezeski <ryan@zinascii.com>
OS-3280 need a way to specify the root of a native system in the lx brand
OS-3279 lx brand should allow delegated datasets
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
OS-2949 add support for AT_RANDOM aux vector entry

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libconv/common/corenote.c
          +++ new/usr/src/cmd/sgs/libconv/common/corenote.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 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 (c) 2013, Joyent, Inc. All rights reserved.
       28 + * Copyright 2016 Joyent, Inc.
  29   29   */
  30   30  
  31   31  /*
  32   32   * String conversion routines the system structs found in
  33   33   * Solaris core file note sections. These items are not
  34   34   * ELF constructs. However, elfdump contains code for decoding
  35   35   * them, and therefore requires formatting support.
  36   36   */
  37   37  #include        <stdio.h>
  38   38  #include        <procfs.h>
↓ open down ↓ 30 lines elided ↑ open up ↑
  69   69  
  70   70          return (conv_map_ds(ELFOSABI_NONE, EM_NONE, type, ds, fmt_flags,
  71   71              inv_buf));
  72   72  }
  73   73  
  74   74  
  75   75  const char *
  76   76  conv_cnote_auxv_type(Word type, Conv_fmt_flags_t fmt_flags,
  77   77      Conv_inv_buf_t *inv_buf)
  78   78  {
  79      -        static const Msg        types_0_22[] = {
       79 +        static const Msg        types_0_25[] = {
  80   80                  MSG_AUXV_AT_NULL,               MSG_AUXV_AT_IGNORE,
  81   81                  MSG_AUXV_AT_EXECFD,             MSG_AUXV_AT_PHDR,
  82   82                  MSG_AUXV_AT_PHENT,              MSG_AUXV_AT_PHNUM,
  83   83                  MSG_AUXV_AT_PAGESZ,             MSG_AUXV_AT_BASE,
  84   84                  MSG_AUXV_AT_FLAGS,              MSG_AUXV_AT_ENTRY,
  85   85                  MSG_AUXV_AT_NOTELF,             MSG_AUXV_AT_UID,
  86   86                  MSG_AUXV_AT_EUID,               MSG_AUXV_AT_GID,
  87   87                  MSG_AUXV_AT_EGID,               MSG_AUXV_AT_PLATFORM,
  88   88                  MSG_AUXV_AT_HWCAP,              MSG_AUXV_AT_CLKTCK,
  89   89                  MSG_AUXV_AT_FPUCW,              MSG_AUXV_AT_DCACHEBSIZE,
  90   90                  MSG_AUXV_AT_ICACHEBSIZE,        MSG_AUXV_AT_UCACHEBSIZE,
  91      -                MSG_AUXV_AT_IGNOREPPC
       91 +                MSG_AUXV_AT_IGNOREPPC,          MSG_AUXV_AT_SECURE,
       92 +                MSG_AUXV_AT_BASE_PLATFORM,      MSG_AUXV_AT_RANDOM
  92   93          };
  93      -        static const conv_ds_msg_t ds_types_0_22 = {
  94      -            CONV_DS_MSG_INIT(0, types_0_22) };
       94 +        static const conv_ds_msg_t ds_types_0_25 = {
       95 +            CONV_DS_MSG_INIT(0, types_0_25) };
  95   96  
  96   97          static const Msg        types_2000_2011[] = {
  97   98                  MSG_AUXV_AT_SUN_UID,            MSG_AUXV_AT_SUN_RUID,
  98   99                  MSG_AUXV_AT_SUN_GID,            MSG_AUXV_AT_SUN_RGID,
  99  100                  MSG_AUXV_AT_SUN_LDELF,          MSG_AUXV_AT_SUN_LDSHDR,
 100  101                  MSG_AUXV_AT_SUN_LDNAME,         MSG_AUXV_AT_SUN_LPAGESZ,
 101  102                  MSG_AUXV_AT_SUN_PLATFORM,       MSG_AUXV_AT_SUN_HWCAP,
 102  103                  MSG_AUXV_AT_SUN_IFLUSH,         MSG_AUXV_AT_SUN_CPU
 103  104          };
 104  105          static const conv_ds_msg_t ds_types_2000_2011 = {
 105  106              CONV_DS_MSG_INIT(2000, types_2000_2011) };
 106  107  
 107      -        static const Msg        types_2014_2023[] = {
      108 +        static const Msg        types_2014_2025[] = {
 108  109                  MSG_AUXV_AT_SUN_EXECNAME,       MSG_AUXV_AT_SUN_MMU,
 109  110                  MSG_AUXV_AT_SUN_LDDATA,         MSG_AUXV_AT_SUN_AUXFLAGS,
 110  111                  MSG_AUXV_AT_SUN_EMULATOR,       MSG_AUXV_AT_SUN_BRANDNAME,
 111  112                  MSG_AUXV_AT_SUN_BRAND_AUX1,     MSG_AUXV_AT_SUN_BRAND_AUX2,
 112      -                MSG_AUXV_AT_SUN_BRAND_AUX3,     MSG_AUXV_AT_SUN_HWCAP2
      113 +                MSG_AUXV_AT_SUN_BRAND_AUX3,     MSG_AUXV_AT_SUN_HWCAP2,
      114 +                MSG_AUXV_AT_SUN_BRAND_NROOT,    MSG_AUXV_AT_SUN_COMMPAGE
 113  115          };
 114      -        static const conv_ds_msg_t ds_types_2014_2023 = {
 115      -            CONV_DS_MSG_INIT(2014, types_2014_2023) };
      116 +        static const conv_ds_msg_t ds_types_2014_2025 = {
      117 +            CONV_DS_MSG_INIT(2014, types_2014_2025) };
 116  118  
 117  119          static const conv_ds_t  *ds[] = {
 118      -                CONV_DS_ADDR(ds_types_0_22), CONV_DS_ADDR(ds_types_2000_2011),
 119      -                CONV_DS_ADDR(ds_types_2014_2023), NULL };
      120 +                CONV_DS_ADDR(ds_types_0_25), CONV_DS_ADDR(ds_types_2000_2011),
      121 +                CONV_DS_ADDR(ds_types_2014_2025), NULL };
 120  122  
 121  123          return (conv_map_ds(ELFOSABI_NONE, EM_NONE, type, ds, fmt_flags,
 122  124              inv_buf));
 123  125  }
 124  126  
 125  127  
 126  128  const char *
 127  129  conv_cnote_signal(Word sig, Conv_fmt_flags_t fmt_flags,
 128  130      Conv_inv_buf_t *inv_buf)
 129  131  {
↓ open down ↓ 2455 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX