Re: [PATCH v2] perf ctf: Convert invalid chars in a string before set value

From: Arnaldo Carvalho de Melo
Date: Fri May 27 2016 - 11:53:14 EST


Em Fri, May 27, 2016 at 11:35:51AM +0000, Wang Nan escreveu:
> We observed some crazy apps on Android set their comm to unprintable
> string. For example:
>
> # cat /proc/10607/task/*/comm
> tencent.qqmusic
> ...
> Binder_2
> æåèåç <-- Chinese word 'log output thread'
> WifiManager
> ...
>
> 'perf data convert' fails to convert perf.data with such string to CTF format.

Thanks, tested and applied to perf/urgent.

- Arnaldo