📄 ppp_trc.h
字号:
/*****************************************************************************
* 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) 2005
*
* 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:
* ---------
* PPP_TRC.H
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file includes the trace database for catcher log of PPP task.
*
* Author:
* -------
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef _PPP_TRC_H
#define _PPP_TRC_H
#ifndef GEN_FOR_PC
#ifndef _STACK_CONFIG_H
#error "stack_config.h should be included before nvram_trc.h"
#endif
#else
#include "kal_trace.h"
#endif /* ~GEN_FOR_PC */
#ifndef _KAL_TRACE_H
#error "kal_trace.h should be included before nvram_trc.h"
#endif /* ~_KAL_TRACE_H */
BEGIN_TRACE_MAP(MOD_PPP)
/*
* TRACE_FUNC trace class
*/
/* -----------------------------ppp_create.c ------------------------------- */
TRC_MSG(FUNC_PPP_START_BASE_TIMER,"ppp_start_base_timer()")
TRC_MSG(FUNC_PPP_STOP_BASE_TIMER,"ppp_stop_base_timer()")
/* ---------------------------- ppp_main.c -------------------------------- */
TRC_MSG(FUNC_PPP_TIMER_EXPIRY_HDLR,"ppp_timer_expiry_hdlr()")
TRC_MSG(FUNC_PPP_MAIN,"ppp_main()")
/* ---------------------------- ppp_read_in.c ------------------------------ */
TRC_MSG(FUNC_PPP_INPUT_ALLOC,"ppp_input_alloc()")
TRC_MSG(FUNC_PPP_INPUT_DEALLOC,"ppp_input_dealloc()")
TRC_MSG(FUNC_PPP_FRAME_DECODE,"ppp_frame_decode()")
TRC_MSG(FUNC_PPP_INPUT,"ppp_input()")
/* ---------------------------- ppp_write_out.c ---------------------------- */
TRC_MSG(FUNC_PPP_OUTPUT_ALLOC,"ppp_output_alloc()")
TRC_MSG(FUNC_PPP_OUTPUT_DEALLOC,"ppp_output_dealloc()")
TRC_MSG(FUNC_PPP_FRAME_ENCODE,"ppp_frame_encode()")
TRC_MSG(FUNC_PPP_OUTPUT,"ppp_output()")
/* ---------------------------- ppp_fsm.c --------------------------------- */
TRC_MSG(FUNC_FSM_PKT_ALLOC,"fsm_pkt_alloc()")
TRC_MSG(FUNC_FSM_PKT_FREE,"fsm_pkt_free()")
TRC_MSG(FUNC_FSM_START_TIMER,"fsm_start_timer()")
TRC_MSG(FUNC_FSM_CANCEL_TIMER,"fsm_cancel_timer()")
TRC_MSG(FUNC_FSM_SEND,"fsm_Send(): %Mppp_fsm_code_enum id:0x%01x")
TRC_MSG(FUNC_FSM_SEND_CONFREQ,"fsm_SendConfReq()")
TRC_MSG(FUNC_FSM_SEND_TERMREQ,"fsm_SendTermReq()")
TRC_MSG(FUNC_FSM_SEND_TERMACK,"fsm_SendTermAck()")
TRC_MSG(FUNC_FSM_SEND_PROTOCOLREJ,"fsm_SendProtocolRej()")
TRC_MSG(FUNC_FSM_SEND_PAPACK,"fsm_SendPapAck()")
TRC_MSG(FUNC_FSM_SEND_CHAPRSP,"fsm_SendChapRsp()")
TRC_MSG(FUNC_FSM_INIT,"fsm_Init()")
TRC_MSG(FUNC_FSM_UP,"fsm_Up()")
TRC_MSG(FUNC_FSM_DOWN,"fsm_Down()")
TRC_MSG(FUNC_FSM_OPEN,"fsm_Open()")
TRC_MSG(FUNC_FSM_CLOSE,"fsm_Close()")
TRC_MSG(FUNC_FSM_TIMEOUT,"fsm_Timeout()")
TRC_MSG(FUNC_FSM_RCVCONFREQ,"fsm_RcvConfReq()")
TRC_MSG(FUNC_FSM_RCVCONFACK,"fsm_RcvConfAck()")
TRC_MSG(FUNC_FSM_RCVCONFNAKREJ,"fsm_RcvConfReq()")
TRC_MSG(FUNC_FSM_RCVTERMREQ,"fsm_RcvTermReq()")
TRC_MSG(FUNC_FSM_RCVTERMACK,"fsm_RcvTermAck()")
TRC_MSG(FUNC_FSM_RCVCODEREJ,"fsm_RcvCodeRej()")
TRC_MSG(FUNC_FSM_RCVPROTOCOLREJ,"fsm_RcvProtocolRej()")
TRC_MSG(FUNC_FSM_INPUT,"fsm_Input()")
TRC_MSG(FUNC_PPP_AUTH,"ppp_Auth()")
TRC_MSG(FUNC_PPP_AUTH_TIMEOUT,"ppp_auth_Timeout()")
TRC_MSG(FUNC_PPP_AUTH_STARTTIMER,"ppp_auth_start_timer()")
TRC_MSG(FUNC_PPP_AUTH_CANCEL_TIMER,"ppp_auth_cancel_timer()")
TRC_MSG(FUNC_PPP_UP,"ppp_Up()")
TRC_MSG(FUNC_PPP_DOWN,"ppp_Down()")
TRC_MSG(FUNC_PPP_OPEN,"ppp_Open()")
TRC_MSG(FUNC_PPP_CLOSE,"ppp_Close()")
TRC_MSG(FUNC_PPP_INITIAL,"ppp_Initial()")
TRC_MSG(FUNC_PPP_DEINITIAL,"ppp_Deinitial()")
TRC_MSG(FUNC_PPP_RESET,"ppp_Reset()")
/* ----------------------------- ppp_lcp.c ---------------------------------- */
TRC_MSG(FUNC_LCP_IRC,"lcp_irc()")
TRC_MSG(FUNC_LCP_LOWLAYERUP,"lcp_Lowlayerup()")
TRC_MSG(FUNC_LCP_LOWLAYERDOWN,"lcp_Lowlayerdown()")
TRC_MSG(FUNC_LCP_TLU,"lcp_tlu()")
TRC_MSG(FUNC_LCP_TLD,"lcp_tld()")
TRC_MSG(FUNC_LCP_TLS,"lcp_tls()")
TRC_MSG(FUNC_LCP_TLF,"lcp_tlf()")
TRC_MSG(FUNC_LCP_RCONFREQ,"lcp_rconfreq()")
TRC_MSG(FUNC_LCP_RCONFACK,"lcp_rconfack()")
TRC_MSG(FUNC_LCP_RCONFNAK,"lcp_rconfnak()")
TRC_MSG(FUNC_LCP_RCONFREJ,"lcp_rconfrej()")
TRC_MSG(FUNC_LCP_ROTHERS,"lcp_rothers()")
TRC_MSG(FUNC_LCP_SCONFREQ,"lcp_sconfreq()")
TRC_MSG(FUNC_LCP_INIT,"lcp_Init()")
TRC_MSG(FUNC_LCP_OPEN,"lcp_Open()")
TRC_MSG(FUNC_LCP_CLOSE,"lcp_Close()")
TRC_MSG(FUNC_AUTH_INIT,"auth_Init()")
/* ----------------------------- ppp_ipcp.c ---------------------------------- */
TRC_MSG(FUNC_IPCP_IRC,"ipcp_irc()")
TRC_MSG(FUNC_IPCP_LOWLAYERUP,"ipcp_Lowlayerup()")
TRC_MSG(FUNC_IPCP_LOWLAYERDOWN,"ipcp_Lowlayerdown()")
TRC_MSG(FUNC_IPCP_TLU,"ipcp_tlu()")
TRC_MSG(FUNC_IPCP_TLD,"ipcp_tld()")
TRC_MSG(FUNC_IPCP_TLS,"ipcp_tls()")
TRC_MSG(FUNC_IPCP_TLF,"ipcp_tlf()")
TRC_MSG(FUNC_IPCP_RCONFREQ,"ipcp_rconfreq()")
TRC_MSG(FUNC_IPCP_RCONFACK,"ipcp_rconfack()")
TRC_MSG(FUNC_IPCP_RCONFNAK,"ipcp_rconfnak()")
TRC_MSG(FUNC_IPCP_RCONFREJ,"ipcp_rconfrej()")
TRC_MSG(FUNC_IPCP_ROTHERS,"ipcp_rothers()")
TRC_MSG(FUNC_IPCP_SCONFREQ,"ipcp_sconfreq()")
TRC_MSG(FUNC_IPCP_INIT,"ipcp_Init()")
TRC_MSG(FUNC_IPCP_OPEN,"ipcp_Open()")
TRC_MSG(FUNC_IPCP_CLOSE,"ipcp_Close()")
/* ---------------------------- ppp_buff_mgr.c ------------------------------- */
TRC_MSG(FUNC_PPP_ENQUEUE,"ppp_enqueue()")
TRC_MSG(FUNC_PPP_INSQUEUE,"ppp_insqueue()")
TRC_MSG(FUNC_PPP_DEQUEUE,"ppp_dequeue()")
/* ---------------------------- ppp_ext_msg.c ------------------------------- */
TRC_MSG(FUNC_NPDU_FLC_DL_THRES_HIT,"npdu_flc_dl_thres_hit()")
TRC_MSG(FUNC_SND_DATA_RESUME_FOR_PPP,"ppp_npdu_ul_data_resume()")
/* ---------------------------- ppp_csd_ext_msg.c --------------------------- */
TRC_MSG(FUNC_APPDU_FLC_DL_THRES_HIT,"appdu_flc_dl_thres_hit()")
/*
* TRACE_INFO trace class
*/
/* ---------------------------- ppp_lcp.c ----------------------------------- */
TRC_MSG(INFO_LCP_RX_MRU, "\tLOCAL Request MRU: %d")
TRC_MSG(INFO_LCP_RX_ACCM, "\tLOCAL Request ACCM: 0x%08x")
TRC_MSG(INFO_LCP_RX_PAP, "\tLOCAL Request PAP")
TRC_MSG(INFO_LCP_RX_CHAP,"\tLOCAL Request CHAP")
TRC_MSG(INFO_LCP_RX_MAGIC, "\tLOCAL Request Magic Number: 0x%08x")
TRC_MSG(INFO_LCP_RX_PFC,"\tLOCAL Request PFC")
TRC_MSG(INFO_LCP_RX_ACFC,"\tLOCAL Request ACFC")
TRC_MSG(INFO_LCP_RX_UNKNOWN,"\tLOCAL Request Unknow LCP opt: 0x%02x")
TRC_MSG(INFO_LCP_TX_MRU, "\tREMOTE Request MRU: %d")
TRC_MSG(INFO_LCP_TX_ACCM, "\tREMOTE Request ACCM: 0x%08x")
TRC_MSG(INFO_LCP_TX_PAP, "\tREMOTE Request PAP")
TRC_MSG(INFO_LCP_TX_CHAP,"\tREMOTE Request CHAP")
TRC_MSG(INFO_LCP_TX_MAGIC, "\tREMOTE Request Magic Number: 0x%08x")
TRC_MSG(INFO_LCP_TX_PFC,"\tREMOTE Request PFC")
TRC_MSG(INFO_LCP_TX_ACFC,"\tREMOTE Request ACFC")
TRC_MSG(INFO_LCP_TX_UNKNOWN,"\tREMOTE Request Unknown LCP opt: 0x%02x")
/* ---------------------------- ppp_ipcp.c ---------------------------------- */
/* ---------------------------- ppp_read_in.c ------------------------------- */
TRC_MSG(INFO_FRAMER_DECODE_TRUE,"\tGood Frame Received!")
TRC_MSG(INFO_FRAMER_DECODE_FALSE,"\tBad CRC! Frame Dropped!")
TRC_MSG(INFO_FRAMER_DECODE_TOO_LARGE,"\tFrame too large! Dropped!")
TRC_MSG(INFO_FRAMER_DECODE_SUSPEND,"\tFrame Decoder Suspended!")
/* ---------------------------- ppp_write_out.c ----------------------------- */
/*
* TRACE_STATE trace class
*/
TRC_MSG(STATE_PPP,"PPP change states: %Mppp_state_enum -> %Mppp_state_enum")
TRC_MSG(STATE_PPP_FSM,"%Mppp_fsm_idx_enum change states: %Mppp_fsm_state_enum -> %Mppp_fsm_state_enum")
/*
* TRACE_ERROR trace class
*/
/* --------------------------- ppp_read_in.c ------------------------------- */
TRC_MSG(ERROR_IN_ACFC,"ppp_input(): ACFC error! Packet Dropped!")
TRC_MSG(ERROR_IN_PFC,"ppp_input(): PFC error! Packet Dropped!")
TRC_MSG(ERROR_IN_IPCP_WRONG_STATE,"ppp_input(): Receive IPCP pkt in wrong PPP state:%Mppp_state_enum")
TRC_MSG(ERROR_IN_MESSAGE,"Message (ID:%Mmsg_type) should not be received in state (%Mppp_state_enum)")
/* --------------------------- ppp_write_out.c ------------------------------ */
/* --------------------------- ppp_fsm.c ---------------------------------- */
TRC_MSG(ERROR_PPP_FSM_STATE,"State transfer error in %Mppp_fsm_idx_enum -> %Mppp_state_enum")
TRC_MSG(ERROR_PPP_TIMER_STATE,"%Mppp_type_enum -> %Mppp_fsm_idx_enum : Timer has been canceled!")
/* ---------------------------- ppp_csd_ext_msg.c --------------------------- */
TRC_MSG(ERROR_TCPIP_ALIGNMENT,"csd_data_ind error in ACFC & PFC negotiation")
/*
* TRACE_GROUP trace class
*/
END_TRACE_MAP(MOD_PPP)
#endif /* ~_PPP_TRC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -