Re: [PATCH] perf: replace automatic const char[] variables by statics

2019-01-11 Thread Arnaldo Carvalho de Melo
Em Sat, Nov 03, 2018 at 12:06:23AM +0100, Rasmus Villemoes escreveu: > An automatic const char[] variable gets initialized at runtime, just > like any other automatic variable. For long strings, that uses a lot of > stack and wastes time building the string; e.g. for the "No %s > allocation events.

Re: [PATCH] perf: replace automatic const char[] variables by statics

2019-01-10 Thread Rasmus Villemoes
ping On Sun, 4 Nov 2018 at 20:26, Jiri Olsa wrote: > > On Sat, Nov 03, 2018 at 12:06:23AM +0100, Rasmus Villemoes wrote: > > An automatic const char[] variable gets initialized at runtime, just > > like any other automatic variable. For long strings, that uses a lot of > > stack and wastes time b

Re: [PATCH] perf: replace automatic const char[] variables by statics

2018-11-04 Thread Jiri Olsa
On Sat, Nov 03, 2018 at 12:06:23AM +0100, Rasmus Villemoes wrote: > An automatic const char[] variable gets initialized at runtime, just > like any other automatic variable. For long strings, that uses a lot of > stack and wastes time building the string; e.g. for the "No %s > allocation events..."

[PATCH] perf: replace automatic const char[] variables by statics

2018-11-02 Thread Rasmus Villemoes
An automatic const char[] variable gets initialized at runtime, just like any other automatic variable. For long strings, that uses a lot of stack and wastes time building the string; e.g. for the "No %s allocation events..." case one has 444516: 48 b8 4e 6f 20 25 73 20 61 6c movabs $0x6