[systemd-devel] [PATCH] bootchart: only show printable processes

WaLyong Cho walyong.cho at samsung.com
Tue Aug 26 07:07:34 PDT 2014


This case really shouldn't be happen. (But actually sometime that was
happen.) Eeven if happened we maybe want to see the bootchart exclude
not printable processes.
---
 src/bootchart/svg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index 135883f..9b7de33 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -1014,6 +1014,9 @@ static void svg_ps_bars(void) {
                 if (!enc_name)
                         continue;
 
+                if (!utf8_is_printable(enc_name, strlen(enc_name)))
+                        continue;
+
                 /* leave some trace of what we actually filtered etc. */
                 svg("<!-- %s [%i] ppid=%i runtime=%.03fs -->\n", enc_name, ps->pid,
                     ps->ppid, ps->total);
-- 
1.9.3



More information about the systemd-devel mailing list