Re: [Intel-gfx] [PATCH i-g-t] scripts/trace.pl: Auto-detect tracepoint field order

2017-12-18 Thread John Harrison
On 12/18/2017 4:02 AM, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Instead of hard-coding the order of key-value pairs into regular expressions, auto-detect them as we go. At the same time re-factor the code so it is smaller and even slightly faster (10-15% by a quick measurement). Signed-off-

Re: [Intel-gfx] [PATCH i-g-t] scripts/trace.pl: Auto-detect tracepoint field order

2017-12-18 Thread Lionel Landwerlin
On 18/12/17 12:02, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Instead of hard-coding the order of key-value pairs into regular expressions, auto-detect them as we go. At the same time re-factor the code so it is smaller and even slightly faster (10-15% by a quick measurement). Signed-off-by:

[Intel-gfx] [PATCH i-g-t] scripts/trace.pl: Auto-detect tracepoint field order

2017-12-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Instead of hard-coding the order of key-value pairs into regular expressions, auto-detect them as we go. At the same time re-factor the code so it is smaller and even slightly faster (10-15% by a quick measurement). Signed-off-by: Tvrtko Ursulin Cc: Lionel Landwerlin Cc: