mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
- implemented a panic callback function which dumps out the snapshot section of the RCE trace buffer. - registered the panic callback function with hsp handle during handle init time. - when receiving the CAMRTC_HSP_PANIC from RCE, trigger the panic callback function to dump out the RCE snapshot. Jira CAMERASW-32243 Change-Id: I523a0b51637a6cf1091d578195c75090b52ffcd7 Signed-off-by: yizhou <yizhou@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3341536 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> Reviewed-by: Vincent Chung <vincentc@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
24 lines
726 B
C
24 lines
726 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _LINUX_TEGRA_RTCPU_TRACE_H_
|
|
#define _LINUX_TEGRA_RTCPU_TRACE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct tegra_rtcpu_trace;
|
|
struct camrtc_device_group;
|
|
|
|
struct tegra_rtcpu_trace *tegra_rtcpu_trace_create(
|
|
struct device *dev,
|
|
struct camrtc_device_group *camera_devices);
|
|
int tegra_rtcpu_trace_boot_sync(struct tegra_rtcpu_trace *tracer);
|
|
void tegra_rtcpu_trace_flush(struct tegra_rtcpu_trace *tracer);
|
|
void tegra_rtcpu_trace_destroy(struct tegra_rtcpu_trace *tracer);
|
|
void rtcpu_trace_snapshot(struct tegra_rtcpu_trace *tracer);
|
|
void rtcpu_trace_panic_callback(struct device *dev);
|
|
|
|
#endif
|