mirror of
https://github.com/netdata/netdata.git
synced 2025-04-27 22:26:21 +00:00
apps.plugin: print also the original comm (#18727)
* print also the original comm * remove colon from external plugins sanitization
This commit is contained in:
parent
b0bcc8fa67
commit
02c06c0ea9
2 changed files with 3 additions and 3 deletions
src
|
@ -177,7 +177,8 @@ void print_process_tree(struct pid_stat *root, struct pid_stat *parent, int dept
|
|||
string2str(children[i]->target->name),
|
||||
string2str(children[i]->cmdline));
|
||||
#else
|
||||
printf("[%d] %s [%s]: %s\n", children[i]->pid,
|
||||
printf("[%d] orig: '%s' new: '%s' [target: %s]: cmdline: %s\n", children[i]->pid,
|
||||
string2str(children[i]->comm_orig),
|
||||
string2str(children[i]->comm),
|
||||
string2str(children[i]->target->name),
|
||||
string2str(children[i]->cmdline));
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
* ' -> _
|
||||
* ` -> _
|
||||
* \ -> /
|
||||
* : -> _
|
||||
* = -> _
|
||||
* | -> _
|
||||
*/
|
||||
|
@ -33,7 +32,7 @@ static unsigned char external_plugins_map[256] = {
|
|||
['8'] = '8', ['9'] = '9',
|
||||
|
||||
// symbols
|
||||
[':'] = '_', [';'] = ';', ['<'] = '<', ['='] = '_', ['>'] = '>', ['?'] = '?', ['@'] = '@',
|
||||
[':'] = ':', [';'] = ';', ['<'] = '<', ['='] = '_', ['>'] = '>', ['?'] = '?', ['@'] = '@',
|
||||
|
||||
// capitals
|
||||
['A'] = 'A', ['B'] = 'B', ['C'] = 'C', ['D'] = 'D', ['E'] = 'E', ['F'] = 'F', ['G'] = 'G', ['H'] = 'H',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue