Change-Id: I79b36df983a3e59afddb1dd08c0ad825196ef8c4
extern __thread unsigned long gSTrace;
+int is_profil_allowed = 0;
volatile int profil_turned_on = 0;
volatile int profil_thread_on = 0;
u_long low_pc, high_pc;
static struct sigaction oact;
static struct itimerval otimer;
+ if(is_profil_allowed != 1)
+ return 0;
+
if(mode == 0)
{
if(profil_turned_on == 0)
{
low_pc = lowpc;
high_pc = highpc;
+ is_profil_allowed = 1;
pthread_mutex_init(&profil_log_mutex, NULL);
probeBlockStart();