[OpenSIPS-Devel] [OpenSIPS/opensips] 14873a: struct hist debugging: Enhance the API

Liviu Chircu noreply at github.com
Mon Aug 26 11:21:31 EDT 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 14873a4efe2e196b9437c9a70a5414c194700cd4
      https://github.com/OpenSIPS/opensips/commit/14873a4efe2e196b9437c9a70a5414c194700cd4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-08-26 (Mon, 26 Aug 2019)

  Changed paths:
    M lib/dbg/struct_hist.c
    M lib/dbg/struct_hist.h
    M net/net_tcp.c

  Log Message:
  -----------
  struct hist debugging: Enhance the API

    * add the possibility to disable auto-logging.  Previously, each
      debugged entity would periodically dump logs to disk as it
      accumulated logs.   Disabling auto logging is especially useful
      when troubleshooting code in high-throughput environments.

    * sh_log() is now a macro, which will additionally print the
      FILE / FUNC / LINE of the calling code, offering more
      troubleshooting insights and reducing the amount of code written

    * simplify sh_unref(), the 2nd parameter was unnecessary

(cherry picked from commit deb03fe86a8d0134526c86e62183cb80887b09c9)
(cherry picked from commit a74fff149a19c51ad333342c9a33357d3385f05b)


  Commit: 910596168c1073b93a0ef97acf0c1547bc52d999
      https://github.com/OpenSIPS/opensips/commit/910596168c1073b93a0ef97acf0c1547bc52d999
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-08-26 (Mon, 26 Aug 2019)

  Changed paths:
    M lib/dbg/struct_hist.h
    M modules/dialog/Makefile
    M modules/dialog/dialog.c
    M modules/dialog/dlg_hash.c
    M modules/dialog/dlg_hash.h
    M modules/dialog/dlg_load.h
    M modules/siprec/siprec.c
    M modules/siprec/siprec_logic.c
    M modules/topology_hiding/topo_hiding_logic.c

  Log Message:
  -----------
  dialog: Add optional ref troubleshooting support

(cherry picked from commit 21e33d0ae1afdd409c9c707132e263c74fe4ee95)
(cherry picked from commit fd46af53bc1edc6c7dd0e7d8b2ca1c0d60f9cb1a)


Compare: https://github.com/OpenSIPS/opensips/compare/95555a70f6f7...910596168c10



More information about the Devel mailing list