Print this page
12259 CTF shouldn't assume enum size

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ctf_api.h
          +++ new/usr/src/uts/common/sys/ctf_api.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27      - * Copyright 2019 Joyent, Inc.
       27 + * Copyright 2020 Joyent, Inc.
  28   28   */
  29   29  
  30   30  /*
  31   31   * This header file defines the interfaces available from the CTF debugger
  32   32   * library, libctf, and an equivalent kernel module.  This API can be used by
  33   33   * a debugger to operate on data in the Compact ANSI-C Type Format (CTF).
  34   34   * This is NOT a public interface, although it may eventually become one in
  35   35   * the fullness of time after we gain more experience with the interfaces.
  36   36   *
  37   37   * In the meantime, be aware that any program linked with this API in this
↓ open down ↓ 239 lines elided ↑ open up ↑
 277  277  extern int ctf_member_iter(ctf_file_t *, ctf_id_t, ctf_member_f *, void *);
 278  278  extern int ctf_enum_iter(ctf_file_t *, ctf_id_t, ctf_enum_f *, void *);
 279  279  extern int ctf_type_iter(ctf_file_t *, boolean_t, ctf_type_f *, void *);
 280  280  extern int ctf_label_iter(ctf_file_t *, ctf_label_f *, void *);
 281  281  extern int ctf_function_iter(ctf_file_t *, ctf_function_f *, void *);
 282  282  extern int ctf_object_iter(ctf_file_t *, ctf_object_f *, void *);
 283  283  extern int ctf_string_iter(ctf_file_t *, ctf_string_f *, void *);
 284  284  
 285  285  extern ctf_id_t ctf_add_array(ctf_file_t *, uint_t, const ctf_arinfo_t *);
 286  286  extern ctf_id_t ctf_add_const(ctf_file_t *, uint_t, const char *, ctf_id_t);
 287      -extern ctf_id_t ctf_add_enum(ctf_file_t *, uint_t, const char *);
      287 +extern ctf_id_t ctf_add_enum(ctf_file_t *, uint_t, const char *, size_t);
 288  288  extern ctf_id_t ctf_add_float(ctf_file_t *, uint_t,
 289  289      const char *, const ctf_encoding_t *);
 290  290  extern ctf_id_t ctf_add_forward(ctf_file_t *, uint_t, const char *, uint_t);
 291  291  extern ctf_id_t ctf_add_funcptr(ctf_file_t *, uint_t, const ctf_funcinfo_t *,
 292  292      const ctf_id_t *);
 293  293  extern ctf_id_t ctf_add_integer(ctf_file_t *, uint_t,
 294  294      const char *, const ctf_encoding_t *);
 295  295  extern ctf_id_t ctf_add_pointer(ctf_file_t *, uint_t, const char *, ctf_id_t);
 296  296  extern ctf_id_t ctf_add_type(ctf_file_t *, ctf_file_t *, ctf_id_t);
 297  297  extern ctf_id_t ctf_add_typedef(ctf_file_t *, uint_t, const char *, ctf_id_t);
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX