arm: tracing: disable tracing for the timer clock functions
The function graph tracer causes a kernel crash when enabled. This is because the counter_get_cntvct_cp15 and the trace_local_clock functions call each other recursively causing a kernel stack overflow. Fix this by annotating the timer clock functions with notrace. Change-Id: I89864012cf98054265ac8c5ed1fb4870ca00c5a4 CRs-Fixed: 525920 Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
This commit is contained in:
parent
193fc90150
commit
eeb70a608e
|
@ -90,7 +90,7 @@ static inline u64 arch_counter_get_cntpct_cp15(void)
|
|||
return cval;
|
||||
}
|
||||
|
||||
static inline u64 arch_counter_get_cntvct_cp15(void)
|
||||
static notrace inline u64 arch_counter_get_cntvct_cp15(void)
|
||||
{
|
||||
u64 cval;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ static unsigned long arch_timer_read_counter_long(void)
|
|||
return arch_timer_read_counter();
|
||||
}
|
||||
|
||||
static u32 arch_timer_read_counter_u32(void)
|
||||
static notrace u32 arch_timer_read_counter_u32(void)
|
||||
{
|
||||
return arch_timer_read_counter();
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ static u64 arch_counter_get_cntpct_mem(void)
|
|||
return ((u64) pct_hi << 32) | pct_lo;
|
||||
}
|
||||
|
||||
static u64 arch_counter_get_cntvct_mem(void)
|
||||
static notrace u64 arch_counter_get_cntvct_mem(void)
|
||||
{
|
||||
u32 vct_lo, vct_hi, tmp_hi;
|
||||
|
||||
|
|
Loading…
Reference in New Issue