aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2017-02-17 07:58:59 +0000
committerTvrtko Ursulin <[email protected]>2017-02-17 11:39:59 +0000
commit097d4f1c121f324d655d17b9bc5238107f7a1761 (patch)
tree94fc39c5077616ed71b805e52b498ada3fa0f9cb /tools/perf/scripts/python/bin/stackcollapse-record
parent133b4bd74d89220c612d4adfabb2f41f6f432184 (diff)
drm/i915: Tidy workaround batch buffer emission
Use the "*batch++ = " style as in the ring emission for better readability and also simplify the logic a bit by consolidating the offset and size calculations and overflow checking. The latter is a programming error so it is not required to check for it after each write to the object, but rather do it once the whole state has been written and fail the driver if something went wrong. v2: Rebase. v3: Keep track of offsets and sizes in bytes for simplicity and rename function pointer variable to _fn suffix. (Chris Wilson) v4: Fix size calc broken in v3 and add alignment warning. (Chris Wilson) v5: Fix return code. v6: I added an exit from loop in v5 but forgot to put back the object teardown. Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Chris Wilson <[email protected]> (v5) Cc: Chris Wilson <[email protected]> Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions