blob: a36ba723b095b9593674962a5683060e06bc3acf [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __INC_HIF_SWLA_H
2#define __INC_HIF_SWLA_H
3
4/*
5 * Purpose:
6 * Allow SWLA customLog profile.
7 * You can acquire the counter between HIF_SWLA_START() and HIF_SWLA_STOP().
8 *
9 * Usage:
10 * step 1. Invoke HIF_SWLA_START() to start SWLA customLog in your function.
11 *
12 * step 2. Invoke HIF_SWLA_STOP() to stop SWLA customLog in your function.
13 *
14 * step 3. Use ELT to ASSERT MTK device and then MEMDUMP SWLA result.
15 *
16 */
17
18
19#if defined HIF_SWLA_CUSTOM_LOG
20#include "swla_public.h"
21#define HIF_SWLA_START(_x) SLA_CustomLogging(_x, SA_start)
22#define HIF_SWLA_STOP(_x) SLA_CustomLogging(_x, SA_stop)
23
24#else
25#define HIF_SWLA_START(_x)
26#define HIF_SWLA_STOP(_x)
27
28#endif
29
30#endif /* __INC_HIF_SWLA_H */