diff options
| -rw-r--r-- | cmds/atrace/atrace.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index d3e0cd480d..1a803f39bc 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -215,6 +215,9 @@ static const char* k_traceClockPath = static const char* k_traceBufferSizePath = "buffer_size_kb"; +static const char* k_traceCmdlineSizePath = + "saved_cmdlines_size"; + static const char* k_tracingOverwriteEnablePath = "options/overwrite"; @@ -437,6 +440,12 @@ static bool setTraceBufferSizeKB(int size) return writeStr(k_traceBufferSizePath, str); } +// Set the default size of cmdline hashtable +static bool setCmdlineSize() +{ + return writeStr(k_traceCmdlineSizePath, "8192"); +} + // Set the clock to the best available option while tracing. Use 'boot' if it's // available; otherwise, use 'mono'. If neither are available use 'global'. // Any write to the trace_clock sysfs file will reset the buffer, so only @@ -757,6 +766,7 @@ static bool setUpTrace() ok &= setCategoriesEnableFromFile(g_categoriesFile); ok &= setTraceOverwriteEnable(g_traceOverwrite); ok &= setTraceBufferSizeKB(g_traceBufferSizeKB); + ok &= setCmdlineSize(); ok &= setClock(); ok &= setPrintTgidEnableIfPresent(true); ok &= setKernelTraceFuncs(g_kernelTraceFuncs); |