blob: 2e9e34a11f72ed73484017af6008ed7b53a344a3 [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2018
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* kal_profiling.h
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* This file contains declarations of kal profiling hooks.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef KAL_PROFILING_H
#define KAL_PROFILING_H
#ifndef __KTEST_RTOS_PROFILING__
#define KAL_PROF_HOOK(tag)
#else
extern void ktest_profiling_measpoint(kal_uint32 meas_point);
#define KAL_PROF_HOOK(tag) ktest_profiling_measpoint(tag)
#endif // __KTEST_RTOS_PROFILING__
typedef enum
{
KAL_PROF_CALL,
RTOS_PROF_CALL,
RTOS_PROF_LOCK,
RTOS_PROF_UNLOCK,
RTOS_PROF_RET,
KAL_PROF_RET,
KAL_PROF_SIZE
} kal_test_points;
typedef enum
{
KAL_QUEUE_PUSH_CALL = KAL_PROF_CALL,
RTOS_QUEUE_PUSH_CALL = RTOS_PROF_CALL,
RTOS_QUEUE_PUSH_RETURN = RTOS_PROF_RET,
KAL_QUEUE_PUSH_RETURN = KAL_PROF_RET,
KAL_QUEUE_PULL_CALL = KAL_PROF_CALL,
RTOS_QUEUE_PULL_CALL = RTOS_PROF_CALL,
RTOS_QUEUE_PULL_RETURN = RTOS_PROF_RET,
KAL_QUEUE_PULL_RETURN = KAL_PROF_RET,
KAL_QUEUE_INFO_CALL = KAL_PROF_CALL,
RTOS_QUEUE_INFO_CALL = RTOS_PROF_CALL,
RTOS_QUEUE_INFO_RETURN = RTOS_PROF_RET,
KAL_QUEUE_INFO_RETURN = KAL_PROF_RET,
KAL_SEMA_TAKE_CALL = KAL_PROF_CALL,
RTOS_SEMA_TAKE_CALL = RTOS_PROF_CALL,
RTOS_SEMA_TAKE_RETURN = RTOS_PROF_RET,
KAL_SEMA_TAKE_RETURN = KAL_PROF_RET,
KAL_SEMA_GIVE_CALL = KAL_PROF_CALL,
RTOS_SEMA_GIVE_CALL = RTOS_PROF_CALL,
RTOS_SEMA_GIVE_RETURN = RTOS_PROF_RET,
KAL_SEMA_GIVE_RETURN = KAL_PROF_RET,
KAL_MUTEX_TAKE_CALL = KAL_PROF_CALL,
KAL_MUTEX_TAKE_RETURN = KAL_PROF_RET,
KAL_MUTEX_GIVE_CALL = KAL_PROF_CALL,
KAL_MUTEX_GIVE_RETURN = KAL_PROF_RET,
KAL_EVENT_SET_CALL = KAL_PROF_CALL,
RTOS_EVENT_SET_CALL = RTOS_PROF_CALL,
RTOS_EVENT_SET_RETURN = RTOS_PROF_RET,
KAL_EVENT_SET_RETURN = KAL_PROF_RET,
KAL_EVENT_GET_CALL = KAL_PROF_CALL,
RTOS_EVENT_GET_CALL = RTOS_PROF_CALL,
RTOS_EVENT_GET_RETURN = RTOS_PROF_RET,
KAL_EVENT_GET_RETURN = KAL_PROF_RET,
KAL_TIMER_SET_CALL = KAL_PROF_CALL,
RTOS_TIMER_SET_CALL = RTOS_PROF_CALL,
RTOS_TIMER_SET_RETURN = RTOS_PROF_RET,
KAL_TIMER_SET_RETURN = KAL_PROF_RET,
KAL_TIMER_GET_CALL = KAL_PROF_CALL,
RTOS_TIMER_GET_CALL = RTOS_PROF_CALL,
RTOS_TIMER_GET_RETURN = RTOS_PROF_RET,
KAL_TIMER_GET_RETURN = KAL_PROF_RET,
KAL_TIMER_CANCEL_CALL = KAL_PROF_CALL,
RTOS_TIMER_CANCEL_CALL = RTOS_PROF_CALL,
RTOS_TIMER_CANCEL_RETURN = RTOS_PROF_RET,
KAL_TIMER_CANCEL_RETURN = KAL_PROF_RET,
KAL_ALLOC_CALL = KAL_PROF_CALL,
RTOS_ALLOC_CALL = RTOS_PROF_CALL,
RTOS_ALLOC_RETURN = RTOS_PROF_RET,
KAL_ALLOC_RETURN =KAL_PROF_RET,
KAL_DEALLOC_CALL = KAL_PROF_CALL,
RTOS_DEALLOC_CALL = RTOS_PROF_CALL,
RTOS_DEALLOC_RETURN = RTOS_PROF_RET,
KAL_DEALLOC_RETURN =KAL_PROF_RET,
KAL_ACTIVATE_HISR_CALL = KAL_PROF_CALL,
RTOS_ACTIVATE_HISR_CALL = RTOS_PROF_CALL,
RTOS_ACTIVATE_HISR_RETURN = RTOS_PROF_RET,
KAL_ACTIVATE_HISR_RETURN =KAL_PROF_RET,
KAL_EMUX_TAKE_CALL = KAL_PROF_CALL,
RTOS_EMUX_TAKE_CALL = RTOS_PROF_CALL,
RTOS_EMUX_TAKE_RETURN = RTOS_PROF_RET,
KAL_EMUX_TAKE_RETURN = KAL_PROF_RET,
KAL_EMUX_GIVE_CALL = KAL_PROF_CALL,
RTOS_EMUX_GIVE_CALL = RTOS_PROF_CALL,
RTOS_EMUX_GIVE_RETURN = RTOS_PROF_RET,
KAL_EMUX_GIVE_RETURN = KAL_PROF_RET,
KAL_ACTIVATE_ISR = KAL_PROF_CALL,
KAL_ACTIVATE_ISR_RETURN = KAL_PROF_RET,
MIPS_IRQ_IN = RTOS_PROF_CALL,
MIPS_IRQ_OUT = RTOS_PROF_RET,
} kal_profiling_mapping;
#endif // KAL_PROFILING_H