-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | drivers/amlogic/debug/Kconfig | 6 | ||||
-rw-r--r-- | drivers/amlogic/debug/Makefile | 1 | ||||
-rw-r--r-- | drivers/amlogic/debug/meson_atrace.c | 21 | ||||
-rw-r--r-- | drivers/amlogic/media/frame_sync/timestamp.c | 4 | ||||
-rw-r--r-- | drivers/amlogic/media/video_sink/video.c | 51 | ||||
-rw-r--r-- | include/trace/events/meson_atrace.h | 7 |
7 files changed, 80 insertions, 11 deletions
diff --git a/drivers/amlogic/media/frame_sync/timestamp.c b/drivers/amlogic/media/frame_sync/timestamp.c index 472be72..a6076d5 100644 --- a/drivers/amlogic/media/frame_sync/timestamp.c +++ b/drivers/amlogic/media/frame_sync/timestamp.c @@ -22,6 +22,7 @@ #include <linux/amlogic/media/utils/vdec_reg.h> #include <linux/amlogic/media/registers/register.h> #include <linux/amlogic/media/vout/vout_notify.h> +#include <trace/events/meson_atrace.h> u32 acc_apts_inc; @@ -147,6 +148,7 @@ EXPORT_SYMBOL(timestamp_tsdemux_pcr_get); void timestamp_pcrscr_set(u32 pts) { /*pr_info("timestamp_pcrscr_set system time = %x\n", pts);*/ + ATRACE_COUNTER("PCRSCR", pts); system_time = pts; } EXPORT_SYMBOL(timestamp_pcrscr_set); @@ -210,6 +212,7 @@ void timestamp_pcrscr_inc(s32 inc) inc = inc * timestamp_inc_factor / PLL_FACTOR; #endif system_time += inc + system_time_inc_adj; + ATRACE_COUNTER("PCRSCR", system_time); } } EXPORT_SYMBOL(timestamp_pcrscr_inc); @@ -234,6 +237,7 @@ void timestamp_pcrscr_inc_scale(s32 inc, u32 base) system_time++; system_time_scale_remainder -= system_time_scale_base; } + ATRACE_COUNTER("PCRSCR", system_time); } } EXPORT_SYMBOL(timestamp_pcrscr_inc_scale); |