From 5f84648529772a4b0b52eedfbf3669c6e45d653f Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 23 Jun 2016 11:27:05 +0300 Subject: allow coredump for TRex with --alow-coredump by default, huge pages will not be mapped to the core --- src/common/basic_utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/common/basic_utils.h') diff --git a/src/common/basic_utils.h b/src/common/basic_utils.h index 63e858ab..1884e896 100755 --- a/src/common/basic_utils.h +++ b/src/common/basic_utils.h @@ -87,6 +87,16 @@ void utl_macaddr_to_str(const uint8_t *macaddr, std::string &output); std::string utl_generate_random_str(unsigned int &seed, int len); +/** + * define the coredump size + * allowed when crashing + * + * @param size - -1 means unlimited + * @param map_huge_pages - should the core map the huge TLB + * pages + */ +void utl_set_coredump_size(long size, bool map_huge_pages = false); + #endif -- cgit 1.2.3-korg