
This change adds vendor hook for gic suspend syscore ops callback. And it is invoked during deepsleep and hibernation to store gic register snapshot. Bug: 340049585 Change-Id: I4e3729afa4daf18d73e00ee9601b6da72a578b4a Signed-off-by: Nagireddy Annem <quic_nannem@quicinc.com> Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
38 lines
1.1 KiB
C
Executable file
38 lines
1.1 KiB
C
Executable file
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM gic_v3
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
#if !defined(_TRACE_HOOK_GIC_V3_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_GIC_V3_H
|
|
#include <linux/tracepoint.h>
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
/*
|
|
* Following tracepoints are not exported in tracefs and provide a
|
|
* mechanism for vendor modules to hook and extend functionality
|
|
*/
|
|
#ifdef __GENKSYMS__
|
|
struct cpumask;
|
|
struct irq_data;
|
|
#else
|
|
/* struct cpumask */
|
|
#include <linux/cpumask.h>
|
|
/* struct irq_data */
|
|
#include <linux/irq.h>
|
|
#endif /* __GENKSYMS__ */
|
|
|
|
struct gic_chip_data;
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_gic_v3_set_affinity,
|
|
TP_PROTO(struct irq_data *d, const struct cpumask *mask_val,
|
|
u64 *affinity, bool force, void __iomem *base),
|
|
TP_ARGS(d, mask_val, affinity, force, base),
|
|
1);
|
|
|
|
/* macro versions of hooks are no longer required */
|
|
DECLARE_HOOK(android_vh_gic_suspend,
|
|
TP_PROTO(struct gic_chip_data *gd, int *ret),
|
|
TP_ARGS(gd, ret));
|
|
|
|
#endif /* _TRACE_HOOK_GIC_V3_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|