aboutsummaryrefslogtreecommitdiff
path: root/kernel/gcov
diff options
context:
space:
mode:
authorMatthew Brost <[email protected]>2024-08-01 08:41:18 -0700
committerMatthew Brost <[email protected]>2024-08-01 11:00:14 -0700
commit4f04d07c0a94b0b30db839e44f1b8364a1b508ac (patch)
treefe60010678240176b646168b77de038368d351db /kernel/gcov
parent53369581dc0c68a5700ed51e1660f44c4b2bb524 (diff)
drm/xe: Faster devcoredump
The current algorithm to read out devcoredump is O(N*N) where N is the size of coredump due to usage of the drm_coredump_printer in xe_devcoredump_read. Switch to a O(N) algorithm which prints the devcoredump into a readable format in snapshot work and update xe_devcoredump_read to memcpy from the readable format directly. v2: - Fix double free on devcoredump removal (Testing) - Set read_data_size after snap work flush - Adjust remaining in iterator upon realloc (Testing) - Set read_data upon realloc (Testing) v3: - Kernel doc v4: - Two pass algorithm to determine size (Maarten) v5: - Use scope for reading variables (Johnathan) Reported-by: Paulo Zanoni <[email protected]> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2408 Cc: Rodrigo Vivi <[email protected]> Cc: Maarten Lankhorst <[email protected]> Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'kernel/gcov')
0 files changed, 0 insertions, 0 deletions