diff options
author | Sibi Sankar <sibis@codeaurora.org> | 2018-10-17 15:55:24 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-10-19 21:53:55 +0200 |
commit | ab8f873bb90da7bbe40e2f41c92a4971c4f0dc76 (patch) | |
tree | abfeb259626b278bf5cd7bf2df13e57d9a894a8e /include | |
parent | remoteproc: Introduce custom dump function for each remoteproc segment (diff) | |
download | linux-ab8f873bb90da7bbe40e2f41c92a4971c4f0dc76.tar.xz linux-ab8f873bb90da7bbe40e2f41c92a4971c4f0dc76.zip |
remoteproc: Add mechanism for custom dump function assignment
This patch adds a mechanism for assigning each rproc dump segment with
a custom dump function and private data. The dump function is to be
called for each rproc segment during coredump if assigned.
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
[bjorn: reordred arguments to rproc_coredump_add_custom_segment()]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/remoteproc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 2d036adab7ff..507a2b524208 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -592,6 +592,12 @@ int rproc_boot(struct rproc *rproc); void rproc_shutdown(struct rproc *rproc); void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type); int rproc_coredump_add_segment(struct rproc *rproc, dma_addr_t da, size_t size); +int rproc_coredump_add_custom_segment(struct rproc *rproc, + dma_addr_t da, size_t size, + void (*dumpfn)(struct rproc *rproc, + struct rproc_dump_segment *segment, + void *dest), + void *priv); static inline struct rproc_vdev *vdev_to_rvdev(struct virtio_device *vdev) { |