mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
There are debug level prints giving more information about the cause of the hang immediately before core dumps are created. However, not everyone has debug level prints enabled or saves the dmesg log at all. So include that information in the dump file itself. Also, at least one of those prints included the pid as well as the process name. So include that in the capture too. v2: Fix kvfree vs kfree and missing kernel-doc (review feedback from Matthew Brost) v3: Use GFP_ATOMIC instead of GFP_KERNEL. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241128210824.3302147-2-John.C.Harrison@Intel.com
36 lines
757 B
C
36 lines
757 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_DEVCOREDUMP_H_
|
|
#define _XE_DEVCOREDUMP_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_printer;
|
|
struct xe_device;
|
|
struct xe_exec_queue;
|
|
struct xe_sched_job;
|
|
|
|
#ifdef CONFIG_DEV_COREDUMP
|
|
void xe_devcoredump(struct xe_exec_queue *q, struct xe_sched_job *job, const char *fmt, ...);
|
|
int xe_devcoredump_init(struct xe_device *xe);
|
|
#else
|
|
static inline void xe_devcoredump(struct xe_exec_queue *q,
|
|
struct xe_sched_job *job,
|
|
const char *fmt, ...)
|
|
{
|
|
}
|
|
|
|
static inline int xe_devcoredump_init(struct xe_device *xe)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
void xe_print_blob_ascii85(struct drm_printer *p, const char *prefix,
|
|
const void *blob, size_t offset, size_t size);
|
|
|
|
#endif
|