LooperPrv.h File Reference

#include <support/Looper.h>
#include <support/Debug.h>
#include <support/ITextStream.h>
#include <support/Locker.h>
#include <support/Parcel.h>
#include <support/Process.h>
#include <support/StdIO.h>
#include <support/TLS.h>
#include <support/Value.h>
#include <support/Vector.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ProfileIPC.h"
#include <AppMgrPrv.h>

Go to the source code of this file.

Classes

struct  binder_call_state
struct  context_entry
struct  remote_host_info

Defines

#define BEGIN_BINDER_CALL()   BeginBinderCall(__ipc_profile_state__)
#define BINDER_BUFFER_MSGS   0
#define BINDER_DEBUG_MSGS   0
#define BINDER_IPC_PROFILE_STATE   binder_call_state __ipc_profile_state__
#define BINDER_REFCOUNT_MSGS   0
#define BINDER_REFCOUNT_RESULT_MSGS   0
#define BINDER_TRANSACTION_MSGS   0
#define FINISH_BINDER_CALL()   FinishBinderCall(__ipc_profile_state__)
#define PRINT_BINDER_IPC_PROFILE()   PrintBinderIPCProfile()
#define RESET_BINDER_IPC_PROFILE()   ResetBinderIPCProfile()
#define SUPPORTS_BINDER_IPC_PROFILING   1

Enumerations

enum  { kSchedulingResumed = 0x00000001 }

Functions

void __initialize_looper_platform (void)
void __stop_looper_platform (void)
void __terminate_looper_platform (void)
void BeginBinderCall (ipc_call_state &state)
void FinishBinderCall (ipc_call_state &state)
void PrintBinderIPCProfile ()
void ResetBinderIPCProfile ()

Variables

SKeyedVector< SString, context_entry > * g_binderContext
SLockerg_binderContextAccess
SLooper::ContextPermissionCheckFunc g_binderContextCheckFunc
void * g_binderContextUserData
char g_ipcProfileDumpPeriod []
char g_ipcProfileEnvVar []
char g_ipcProfileMaxItems []
char g_ipcProfileStackDepth []
char g_ipcProfileSymbols []
BDebugInteger< g_ipcProfileDumpPeriod, 500, 0, 10000 > g_profileDumpPeriod
BDebugCondition< g_ipcProfileEnvVar, 0, 0, 10000 > g_profileLevel
BDebugInteger< g_ipcProfileMaxItems, 10, 1, 10000 > g_profileMaxItems
BDebugInteger< g_ipcProfileStackDepth,
B_CALLSTACK_DEPTH, 1, B_CALLSTACK_DEPTH > 
g_profileStackDepth
BDebugInteger< g_ipcProfileSymbols, 1, 0, 1 > g_profileSymbols
SVector< remote_host_infog_remoteHostInfo
uint16_t g_strongPutQueue [4096]
SStringg_systemDirectory
SLockerg_systemDirectoryLock
uint16_t g_weakPutQueue [4096]


Define Documentation

 
#define BEGIN_BINDER_CALL  )     BeginBinderCall(__ipc_profile_state__)
 

#define BINDER_BUFFER_MSGS   0
 

#define BINDER_DEBUG_MSGS   0
 

#define BINDER_IPC_PROFILE_STATE   binder_call_state __ipc_profile_state__
 

#define BINDER_REFCOUNT_MSGS   0
 

#define BINDER_REFCOUNT_RESULT_MSGS   0
 

#define BINDER_TRANSACTION_MSGS   0
 

 
#define FINISH_BINDER_CALL  )     FinishBinderCall(__ipc_profile_state__)
 

 
#define PRINT_BINDER_IPC_PROFILE  )     PrintBinderIPCProfile()
 

 
#define RESET_BINDER_IPC_PROFILE  )     ResetBinderIPCProfile()
 

#define SUPPORTS_BINDER_IPC_PROFILING   1
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
kSchedulingResumed 


Function Documentation

void __initialize_looper_platform void   ) 
 

void __stop_looper_platform void   ) 
 

void __terminate_looper_platform void   ) 
 

void BeginBinderCall ipc_call_state state  ) 
 

void FinishBinderCall ipc_call_state state  ) 
 

void PrintBinderIPCProfile  ) 
 

void ResetBinderIPCProfile  ) 
 


Variable Documentation

SKeyedVector<SString, context_entry>* g_binderContext
 

SLocker* g_binderContextAccess
 

SLooper::ContextPermissionCheckFunc g_binderContextCheckFunc
 

void* g_binderContextUserData
 

char g_ipcProfileDumpPeriod[]
 

char g_ipcProfileEnvVar[]
 

char g_ipcProfileMaxItems[]
 

char g_ipcProfileStackDepth[]
 

char g_ipcProfileSymbols[]
 

BDebugInteger<g_ipcProfileDumpPeriod, 500, 0, 10000> g_profileDumpPeriod
 

BDebugCondition<g_ipcProfileEnvVar, 0, 0, 10000> g_profileLevel
 

BDebugInteger<g_ipcProfileMaxItems, 10, 1, 10000> g_profileMaxItems
 

BDebugInteger<g_ipcProfileStackDepth, B_CALLSTACK_DEPTH, 1, B_CALLSTACK_DEPTH> g_profileStackDepth
 

BDebugInteger<g_ipcProfileSymbols, 1, 0, 1> g_profileSymbols
 

SVector<remote_host_info> g_remoteHostInfo
 

uint16_t g_strongPutQueue[4096]
 

SString* g_systemDirectory
 

SLocker* g_systemDirectoryLock
 

uint16_t g_weakPutQueue[4096]