Module: kamailio Branch: master Commit: 43bbcc80d43f4b345a074c99f911e6823368f115 URL: https://github.com/kamailio/kamailio/commit/43bbcc80d43f4b345a074c99f911e6823368f115
Author: Kamailio Dev <kamailio....@kamailio.org> Committer: Kamailio Dev <kamailio....@kamailio.org> Date: 2025-07-07T21:01:10+02:00 modules: readme files regenerated - misctest ... [skip ci] --- Modified: src/modules/misctest/README --- Diff: https://github.com/kamailio/kamailio/commit/43bbcc80d43f4b345a074c99f911e6823368f115.diff Patch: https://github.com/kamailio/kamailio/commit/43bbcc80d43f4b345a074c99f911e6823368f115.patch --- diff --git a/src/modules/misctest/README b/src/modules/misctest/README index f07eee74743..4640b68efad 100644 --- a/src/modules/misctest/README +++ b/src/modules/misctest/README @@ -24,6 +24,7 @@ Andrei Pelinescu-Onciul 3.1. mt_mem_alloc(size) 3.2. mt_mem_free() + 3.3. mt_tcp_thread_exec(text) 4. RPC Commands @@ -49,15 +50,16 @@ Andrei Pelinescu-Onciul 1.6. Set message_file in the config file 1.7. men_alloc usage 1.8. mem_free usage - 1.9. mt.mem_alloc usage - 1.10. mt.mem_free usage - 1.11. mt.mem_used usage - 1.12. mt.mem_rnd_alloc usage - 1.13. mt.mem_test_start usage - 1.14. mt.mem_test_stop usage - 1.15. mt.mem_test_destroy usage - 1.16. mt.mem_test_destroy_all usage - 1.17. mt.mem_test_list usage + 1.9. mt_tcp_thread_exec usage + 1.10. mt.mem_alloc usage + 1.11. mt.mem_free usage + 1.12. mt.mem_used usage + 1.13. mt.mem_rnd_alloc usage + 1.14. mt.mem_test_start usage + 1.15. mt.mem_test_stop usage + 1.16. mt.mem_test_destroy usage + 1.17. mt.mem_test_destroy_all usage + 1.18. mt.mem_test_list usage Chapter 1. Admin Guide @@ -76,6 +78,7 @@ Chapter 1. Admin Guide 3.1. mt_mem_alloc(size) 3.2. mt_mem_free() + 3.3. mt_tcp_thread_exec(text) 4. RPC Commands @@ -178,6 +181,7 @@ modparam("misctest", "message_file", "/tmp/sip-data.txt") 3.1. mt_mem_alloc(size) 3.2. mt_mem_free() + 3.3. mt_tcp_thread_exec(text) 3.1. mt_mem_alloc(size) @@ -207,6 +211,20 @@ Note mem_free(); ... +3.3. mt_tcp_thread_exec(text) + + Print the text via the tcp main process threads. + +Note + + This is a debugging function for simulating execution on tcp main + process threads. It should not be used in production setups + + Example 1.9. mt_tcp_thread_exec usage +... +mt_tcp_thread_exec("request $rm uri $ru"); +... + 4. RPC Commands 4.1. mt.mem_alloc size [unit] @@ -228,7 +246,7 @@ mem_free(); * m - MB * g - GB - Example 1.9. mt.mem_alloc usage + Example 1.10. mt.mem_alloc usage $ kamcmd mt.mem_alloc 10 k 4.2. mt.mem_free [size] [unit] @@ -244,7 +262,7 @@ mem_free(); * m - MB * g - GB - Example 1.10. mt.mem_free usage + Example 1.11. mt.mem_free usage $ kamcmd mt.mem_free 1 m 4.3. mt.mem_used [unit] @@ -258,7 +276,7 @@ mem_free(); * m - MB * g - GB - Example 1.11. mt.mem_used usage + Example 1.12. mt.mem_used usage $ kamcmd mt.mem_used 9221460 @@ -268,7 +286,7 @@ mem_free(); max (inclusive). unit is optional and represents the unit for all the given sizes (see above). - Example 1.12. mt.mem_rnd_alloc usage + Example 1.13. mt.mem_rnd_alloc usage $ kamcmd mt.mem_rnd_alloc 1 64 10240 k 4.5. mt.mem_test_start min max total min_int max_int total_time [unit] @@ -285,7 +303,7 @@ mem_free(); Returns the test id. - Example 1.13. mt.mem_test_start usage + Example 1.14. mt.mem_test_start usage $ kamcmd mt.mem_test_start 15 64 25000 128 1500 3600000 k 1 @@ -293,7 +311,7 @@ mem_free(); Stops the test identified by id. - Example 1.14. mt.mem_test_stop usage + Example 1.15. mt.mem_test_stop usage $ kamcmd mt.mem_test_stop 1 4.7. mt.mem_test_destroy id @@ -301,14 +319,14 @@ mem_free(); Destroys the test identified by id (besides stopping it, it also frees all the data, including the statistics). - Example 1.15. mt.mem_test_destroy usage + Example 1.16. mt.mem_test_destroy usage $ kamcmd mt.mem_test_destroy 1 4.8. mt.mem_test_destroy_all id Destroys all the running or stopped tests. - Example 1.16. mt.mem_test_destroy_all usage + Example 1.17. mt.mem_test_destroy_all usage $ kamcmd mt.mem_test_destroy_all 4.9. mt.mem_test_list [id] [unit] @@ -319,7 +337,7 @@ mem_free(); unit is optional. The default is is bytes (for all the possible units see above). - Example 1.17. mt.mem_test_list usage + Example 1.18. mt.mem_test_list usage $ kamcmd mt.mem_test_list { ID : 2 _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!