Changeset 5032d71 in rtems-tools


Ignore:
Timestamp:
Mar 29, 2015, 5:37:22 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
b249516
Parents:
bfd2b7d
Message:

trace-linker: Update comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-tld.cpp

    rbfd2b7d r5032d71  
    613613       * where you can use them is listed before. The macros are:
    614614       *
    615        * # @FUNC_NAME@      The trace function name as a quote C string.
    616        * # @FUNC_INDEX@     The trace function index as a held in the sorted list
    617        *                    of trace functions by teh trace linker. It can be
    618        *                    used to index the `names`, `enables` and `triggers`
    619        *                    data.
    620        * # @FUNC_LABEL@     The trace function name as a C label that can be
    621        *                     referenced. You can take the address of the label.
    622        * # @FUNC_DATA_SIZE@ The size of the daya in bytes.
    623        * # @ARG_NUM@        The argument number to the trace function.
    624        * # @ARG_TYPE@       The type of the argument as a C string.
    625        * # @ARG_SIZE@       The size of the type of the argument in bytes.
    626        * # @ARG_LABEL@      The argument as a C label that can be referenced.
    627        * # @RET_TYPE@       The type of the return value as a C string.
    628        * # @RET_SIZE@       The size of the type of the return value in bytes.
    629        * # @RET_LABEL@      The retrun value as a C label that can be referenced.
     615       * # @FUNC_NAME@            The trace function name as a quote C string.
     616       * # @FUNC_INDEX@           The trace function index as a held in the
     617       *                          sorted list of trace functions by teh trace
     618       *                          linker. It can be used to index the `names`,
     619       *                          `enables` and `triggers` data.
     620       * # @FUNC_LABEL@           The trace function name as a C label that can
     621       *                          be referenced. You can take the address of
     622       *                          the label.
     623       * # @FUNC_DATA_SIZE@       The size of the data in bytes.
     624       * # @FUNC_DATA_ENTRY_SIZE@ The size of the entry data in bytes.
     625       * # @FUNC_DATA_RET_SIZE@   The size of the return data in bytes.
     626       * # @ARG_NUM@              The argument number to the trace function.
     627       * # @ARG_TYPE@             The type of the argument as a C string.
     628       * # @ARG_SIZE@             The size of the type of the argument in bytes.
     629       * # @ARG_LABEL@            The argument as a C label that can be referenced.
     630       * # @RET_TYPE@             The type of the return value as a C string.
     631       * # @RET_SIZE@             The size of the type of the return value in bytes.
     632       * # @RET_LABEL@            The return value as a C label that can be referenced.
    630633       *
    631634       * The `buffer-alloc`, `entry-trace` and `exit-trace` can be transformed using
     
    636639       * # @FUNC_LABEL@
    637640       * # @FUNC_DATA_SZIE@
     641       * # @FUNC_DATA_ENTRY_SZIE@
     642       * # @FUNC_DATA_EXIT_SZIE@
    638643       *
    639644       * The `arg-trace` can be transformed using the following macros:
     
    10191024      c.write_line (" uint32_t          size;");
    10201025      c.write_line (" const char* const type;");
    1021       c.write_line ("} __rtld_sig_arg;");
     1026      c.write_line ("} __rtld_trace_sig_arg;");
    10221027      c.write_line ("");
    10231028      c.write_line ("typedef struct {");
    1024       c.write_line (" uint32_t              argc;");
    1025       c.write_line (" const __rtld_sig_arg* args;");
    1026       c.write_line ("} __rtld_sig;");
     1029      c.write_line (" uint32_t                    argc;");
     1030      c.write_line (" const __rtld_trace_sig_arg* args;");
     1031      c.write_line ("} __rtld_trace_sig;");
    10271032      c.write_line ("");
    10281033
     
    10531058            sss.str (std::string ());
    10541059
    1055             sss << "const __rtld_sig_arg __rtld_sig_args_" << trace
     1060            sss << "const __rtld_trace_sig_arg __rtld_trace_sig_args_" << trace
    10561061                << "[" << argc << "] =" << std::endl
    10571062                << "{" << std::endl;
     
    10851090      sss.str (std::string ());
    10861091
    1087       sss << "const __rtld_sig __rtld_signatures[" << traces.size () << "] = "
     1092      sss << "const __rtld_trace_sig __rtld_trace_signatures[" << traces.size () << "] = "
    10881093          << "{" << std::endl;
    10891094
     
    11051110            const signature& sig = (*si).second;
    11061111            size_t argc = 1 + (sig.args.size () == 0 ? 1 : sig.args.size ());
    1107             sss << "  { " << argc << ", __rtld_sig_args_" << trace << " }," << std::endl;
     1112            sss << "  { " << argc << ", __rtld_trace_sig_args_" << trace << " }," << std::endl;
     1113            break;
    11081114          }
    1109 
    1110           break;
    11111115        }
    11121116      }
Note: See TracChangeset for help on using the changeset viewer.