Since we're expecting timers more precisely in short period, add a vendor hook to calc_index when adding timers. Then we can modify the index this timer used to make it accurate. Link: https://lore.kernel.org/all/1532669610-103892-1-git-send-email-xuyiping@hisilicon.com/ Bug: 178758017 Change-Id: I86bfe0c22ff4d99d3183a98b6cca96b39ffe02fb Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
19 lines
494 B
C
19 lines
494 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM timer
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_TIMER_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_TIMER_H
|
|
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
DECLARE_HOOK(android_vh_timer_calc_index,
|
|
TP_PROTO(unsigned int lvl, unsigned long *expires),
|
|
TP_ARGS(lvl, expires));
|
|
|
|
#endif /* _TRACE_HOOK_TIMER_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|