aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2013-09-20 10:20:59 +0100
committerDaniel Vetter <[email protected]>2013-09-24 09:36:40 +0200
commite29bb4ebbf000ff9ac081d29784a3331618f012e (patch)
treecb65cef4276e592094d59388e76f2039f15b8b77 /tools/perf/util/scripting-engines/trace-event-python.c
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
drm/i915: Use a temporary va_list for two-pass string handling
In commit edc3d8848dc9fe2a470316363dab8ef211d77e01 Author: Mika Kuoppala <[email protected]> Date: Thu May 23 13:55:35 2013 +0300 drm/i915: avoid big kmallocs on reading error state we introduce a two-pass mechanism for splitting long strings being formatted into the error-state. The first pass finds the length, and the second pass emits the right portion of the string into the accumulation buffer. Unfortunately we use the same va_list for both passes, resulting in the second pass reading garbage off the end of the argument list. As the two passes are only used for boundaries between read() calls, the corruption is only rarely seen. This fixes the root cause behind commit baf27f9b17bf2f369f3865e38c41d2163e8d815d Author: Chris Wilson <[email protected]> Date: Sat Jun 29 23:26:50 2013 +0100 drm/i915: Break up the large vsnprintf() in print_error_buffers() Signed-off-by: Chris Wilson <[email protected]> Cc: Mika Kuoppala <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: [email protected] Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions