亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? trace.h

?? TRACE的源代碼,在LINUX調試程序要使用的.
?? H
?? 第 1 頁 / 共 2 頁
字號:
    /* now accomplish the prepending of the time and the appending of the newline */    sprintf( newbuf, "%s%s\n", timbuf, msg );    va_start( ap, msg );    vprintf( newbuf, ap );    va_end( ap );    return;}# endif# ifndef  TRACE_USER_FUNCTIONtypedef void (*func_ptr_t)(struct timeval*,int,int,char*,...);static func_ptr_t trace_user_functions[]=TRACE_FUNCTIONS;#  define TRACE_USER_FUNCTION( tv_adr, tid, lvl, msg, params... ) \    /* NOTE THE FUNCTION ARRAY IDX 0 LINES UP WITH MODE/LEVEL IDX 1 */\    do \    {       int	_ii_, lidx;\        lidx = TRACE_TID * traceControl_sp->numberOfFunctions;\        for (_ii_=1; _ii_<traceControl_sp->numberOfFunctions; _ii_++)\        {   if ((traceControl_sp->mode&(1<<_ii_)) && (traceLevel_ip[lidx+_ii_]&(1<<lvl)))\	    { if (trace_user_functions[_ii_-1])\              {   if ((tv_adr)->tv_sec == 0) gettimeofday( tv_adr, 0 );\		  trace_user_functions[_ii_-1](tv_adr,tid,lvl, msg , ## params );\              }\	    }\        }\    } while (0)# endifstatic int			traceControl_fd=0;static int			disabled_level[4]={0};static struct s_traceControl	disabled_control={{0}};/*  This can be a function with no fear of producing "warning: defined, but    not used" because it is referenced from the TRACE macro.*/static inttraceControl_Init( char *name ){	int			fd_map;	int			levelArraySize;	int			levelOffset;	int			sts;	union u_traceIoctl	ioctl_data;    /*  This should assure we do init processing once. Use ReInit to	change name.        Note: first call may return -1 while successive calls will	return 0. */    if (traceControl_sp) return (0);    /* incase anything bad happens... */    traceTID = 0;    traceControl_sp = &disabled_control;    traceLevel_ip   = disabled_level;    traceControl_sp->numberOfFunctions = ( sizeof(disabled_level)					  /sizeof(disabled_level[0]));    traceControl_fd = open( "/proc/trace/control", O_RDONLY );    if (traceControl_fd == -1)    {   perror( "open /proc/trace/control" );	fprintf( stderr, "continueing with disabled tracing\n" );	return (-1);    }    /* get a traceTID via ioctl */    if (name[0] == '\0')    {   /* try TRACE_NAME (which may actually be the same thing [""] */	name = TRACE_NAME;    }    ioctl_data.generic.ptr = name;    sts = ioctl( traceControl_fd, traceIoctl_e_init, &ioctl_data );    traceTID = ioctl_data.generic.num;    fd_map = open( "/proc/trace/map", O_RDONLY );    if (fd_map == -1)    {   perror( "open /proc/trace/map" );	fprintf( stderr, "continueing with disabled tracing\n" );	traceTID = 0;	traceControl_fd = -1;	traceControl_sp = &disabled_control;	traceLevel_ip   = disabled_level;	traceControl_sp->numberOfFunctions = ( sizeof(disabled_level)					      /sizeof(disabled_level[0]));	return (-1);    }    traceControl_sp = (struct s_traceControl *)mmap(  0 /* hint address */						    , sizeof(struct s_traceControl)						    , PROT_READ						    , MAP_SHARED						    , fd_map						    , 0 /* offset */ );    if (traceControl_sp == (void *)-1/*MAP_FAILED*/)    {   perror( "mmap /proc/trace/map" );	fprintf( stderr, "continueing with disabled tracing\n" );	traceTID = 0;	traceControl_fd = -1;	traceControl_sp = &disabled_control;	traceLevel_ip   = disabled_level;	traceControl_sp->numberOfFunctions = ( sizeof(disabled_level)					      /sizeof(disabled_level[0]));	return (-1);    }#   if 0    else    {   void	(*trace_functions[])(struct timeval*,int,int,char*,...)=TRACE_FUNCTIONS;	/*  init up to the lesser of the two:	        traceControl_sp->numberOfFunctions		or the number of initializer in TRACE_FUNCTIONS		NOTE THE FUNCTION ARRAY IDX 0 LINES UP WITH MODE/LEVEL IDX 1	*/	for (sts=1;	     (  (sts<traceControl_sp->numberOfFunctions)	      &&((sts-1)<(int)(sizeof(trace_functions)/sizeof(void*))));	     sts++)	{   (trace_user_functions)[sts-1] = trace_functions[sts-1];	}	/* if traceControl_sp->numberOfFunctions has more, init the rest to NULL	 */	for (;	     (  (sts<traceControl_sp->numberOfFunctions));	     sts++)	{   (trace_user_functions)[sts-1] = NULL;	}    }#   endif    levelArraySize = ( traceControl_sp->numberOfTID		      *traceControl_sp->numberOfFunctions);    /*  NEED TO REORGANIZE STRUCTURE TO REMOVE HARD CODED NUMBER	ref. trace_proc.c:trace_proc_map_mmap() */    levelOffset = 4096;    traceLevel_ip = (int *)mmap(  0 /* hint address */				, levelArraySize * sizeof(int)				, PROT_READ				, MAP_SHARED				, fd_map				, levelOffset );    if (traceLevel_ip == (void *)-1/*MAP_FAILED*/)    {   perror( "mmap level" );	fprintf( stderr, "continueing with disabled tracing\n" );	traceTID = 0;	traceControl_fd = -1;	traceControl_sp = &disabled_control;	traceLevel_ip   = disabled_level;	traceControl_sp->numberOfFunctions = ( sizeof(disabled_level)					      /sizeof(disabled_level[0]));	return (-1);    }    /*  skip past initial	NOTE: it does not work to add this to the offset as mmap page	aligns the returned pointer */    traceLevel_ip += traceControl_sp->numberOfFunctions;    close( fd_map );    return (0);}   /* traceControl_Init *//* to allow a forked process to get a new TID via a new name i.e.   parentName = "This"   forkedName = "This_" */#define traceControl_ReInit( name )	\			({  int	__sts__=0;\			    if (!traceControl_sp)\			    {   traceControl_Init("");\			    }\			    else if (traceControl_fd > 0)\			    {   /* get a traceTID via ioctl */\				union u_traceIoctl	ioctl_data;\				ioctl_data.generic.ptr = name;\				__sts__ = ioctl( traceControl_fd, traceIoctl_e_init, &ioctl_data );\				traceTID = ioctl_data.generic.num;\			    }\			    __sts__;\			})#define traceControl_Mode( new_mode )	\			({  int	old_mode;\			    if (!traceControl_sp) traceControl_Init("");\			    old_mode = traceControl_sp->mode;\			    if (traceControl_fd > 0)\			    {   ioctl( traceControl_fd, traceIoctl_e_modeSet, new_mode );\			    }\			    old_mode;\			})#define traceControl_ModeGet()	\			({  if (!traceControl_sp) traceControl_Init("");\			    traceControl_sp->mode;\			})/* Set bits (i.e. bitwise OR mode with value specified) */#define traceControl_ModeSet( mask )	\			({  int	old_mode, new_mode;\			    if (!traceControl_sp) traceControl_Init("");\			    old_mode = traceControl_sp->mode;\			    new_mode = old_mode | mask;\			    if (traceControl_fd > 0)\			    {   ioctl( traceControl_fd, traceIoctl_e_modeSet, new_mode );\			    }\			    else\			    {   traceControl_sp->mode = new_mode;\			    }\			    old_mode;\			})/* Clr bits (i.e. bitwise AND mode with ones-complement of value specified) */#define traceControl_ModeClr( mask )	\			({  int	old_mode, new_mode;\			    if (!traceControl_sp) traceControl_Init("");\			    old_mode = traceControl_sp->mode;\			    new_mode = old_mode & ~mask;\			    if (traceControl_fd > 0)\			    {   ioctl( traceControl_fd, traceIoctl_e_modeSet, new_mode );\			    }\			    else\			    {   traceControl_sp->mode = new_mode;\			    }\			    old_mode;\			})#define traceControl_Reset()	\			({  if (!traceControl_sp) traceControl_Init("");\			    if (traceControl_fd > 0)\			    {   ioctl( traceControl_fd, traceIoctl_e_reset, 0 );\			    }\			})#define traceControl_PMCGet( which )	\			({   union u_traceIoctl	ioctl_data;\			     if (!traceControl_sp) traceControl_Init("");\			     if (traceControl_fd > 0)\			     {   ioctl_data.pmc.whichIn_cpuidOut = which;\				 ioctl( traceControl_fd, traceIoctl_e_PMCGet, &ioctl_data );\			     }\			     ioctl_data.pmc.pmc_data_val;\			})#define traceControl_PMCRead( which, cpuidOut_ptr )	\			({   union u_traceIoctl	ioctl_data;\			     if (!traceControl_sp) traceControl_Init("");\			     if (traceControl_fd > 0)\			     {   ioctl_data.pmc.whichIn_cpuidOut = which;\				 ioctl( traceControl_fd, traceIoctl_e_PMCGet, &ioctl_data );\			     }\                             *(cpuidOut_ptr) = ioctl_data.pmc.whichIn_cpuidOut;\			     ioctl_data.pmc.pmc_data_val;\			})#define traceControl_LevelSet( func, __mask__ )	\			({  union u_traceIoctl	ioctl_data;\			    if (!traceControl_sp) traceControl_Init("");\			    if (traceControl_fd > 0)\			    {   ioctl_data.generic.num = traceTID;\				ioctl_data.generic.ptr = (void*)func;\				ioctl_data.generic.mask = __mask__;\				ioctl( traceControl_fd, traceIoctl_e_levelSet, &ioctl_data );\			    }\			    else if (func < (sizeof(disabled_level)/sizeof(int)))\			    {   traceLevel_ip[func] = __mask__;\			    }\			})#define traceControl_LevelGet( func )	\			({  int lidx;\			    if (!traceControl_sp) traceControl_Init("");\			    lidx = TRACE_TID * traceControl_sp->numberOfFunctions;\			    traceLevel_ip[lidx+func];\			})#endif	/* of #else for ifdef __KERNEL__ *//*----------------------------------------------------------------------------*/#endif	/* __TRACE_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲亚洲国产日韩| 亚洲欧洲韩国日本视频| 在线综合亚洲欧美在线视频| 一本到不卡精品视频在线观看| 国v精品久久久网| 国产乱子伦一区二区三区国色天香| 毛片一区二区三区| 精品中文字幕一区二区| 精品一区二区三区的国产在线播放| 免费看精品久久片| 麻豆精品精品国产自在97香蕉| 另类小说一区二区三区| 韩国v欧美v亚洲v日本v| 国产成人精品午夜视频免费| 丁香六月综合激情| 91在线一区二区| 日本道精品一区二区三区| 欧美性一区二区| 91精品国产美女浴室洗澡无遮挡| 欧美一级黄色大片| 2021中文字幕一区亚洲| 国产日韩精品一区二区三区| 国产精品美女久久久久aⅴ | 欧美电视剧免费观看| 欧美不卡一二三| 中文字幕久久午夜不卡| 亚洲精品日产精品乱码不卡| 亚洲成a人v欧美综合天堂 | 欧美亚洲一区三区| 5566中文字幕一区二区电影| 精品美女一区二区三区| 欧美国产日韩亚洲一区| 亚洲一区二区四区蜜桃| 日韩—二三区免费观看av| 国产一区三区三区| 日本韩国一区二区三区视频| 51精品视频一区二区三区| 久久久久综合网| 一区二区三区在线免费播放 | 成人中文字幕合集| 欧美视频在线不卡| 欧美精品一区在线观看| 综合久久给合久久狠狠狠97色 | 精品在线你懂的| 99国内精品久久| 欧美xfplay| 亚洲蜜臀av乱码久久精品蜜桃| 肉肉av福利一精品导航| 成人夜色视频网站在线观看| 欧美色男人天堂| 中文字幕高清不卡| 热久久免费视频| 99re成人精品视频| 欧美va在线播放| 亚洲黄色免费网站| 国产iv一区二区三区| 欧美日韩1区2区| 国产精品美女久久久久aⅴ | 麻豆精品久久久| 日本韩国欧美一区| 久久蜜桃一区二区| 婷婷综合久久一区二区三区| 不卡一区二区中文字幕| 日韩免费观看高清完整版| 亚洲免费av在线| 成人一区在线看| 精品日本一线二线三线不卡| 亚洲自拍偷拍欧美| 99精品视频免费在线观看| 久久久影院官网| 日韩av一级片| 欧美三级韩国三级日本三斤| 国产精品久久久久aaaa樱花 | 日韩一区二区免费电影| 亚洲精品国产高清久久伦理二区| 国内精品嫩模私拍在线| 欧美精品在线视频| 亚洲一区二区三区小说| 94-欧美-setu| 中文字幕欧美一| 国产91在线观看丝袜| 精品久久五月天| 蜜桃视频一区二区| 欧美一区二区三区在线视频| 亚洲一区影音先锋| 色悠久久久久综合欧美99| 中文字幕一区免费在线观看| 国产成人小视频| 国产午夜亚洲精品羞羞网站| 久久国产精品99精品国产 | 夜夜亚洲天天久久| 91无套直看片红桃| 亚洲欧美中日韩| 不卡免费追剧大全电视剧网站| 国产欧美一区二区精品仙草咪| 久久99精品久久久久久| 日韩欧美一级特黄在线播放| 日韩一区精品字幕| 91精品国产综合久久香蕉麻豆| 石原莉奈在线亚洲二区| 欧美精品乱人伦久久久久久| 午夜久久福利影院| 欧美性色aⅴ视频一区日韩精品| 亚洲精品国产无天堂网2021| 色欧美日韩亚洲| 亚洲一区二区三区在线播放| 欧美唯美清纯偷拍| 天堂va蜜桃一区二区三区| 欧美精品自拍偷拍| 久久国产三级精品| 国产亚洲女人久久久久毛片| 国产成人超碰人人澡人人澡| 欧美国产一区二区| 色综合久久99| 亚洲福利一二三区| 日韩一区二区在线看| 美国毛片一区二区| 国产午夜久久久久| 99r国产精品| 亚洲国产成人av| 制服丝袜亚洲色图| 精品在线视频一区| 中文字幕中文字幕一区二区| 91视频观看视频| 亚洲网友自拍偷拍| 欧美成人精品3d动漫h| 国产馆精品极品| 18成人在线观看| 555夜色666亚洲国产免| 国产一区二区三区视频在线播放| 亚洲国产岛国毛片在线| 色吊一区二区三区| 奇米精品一区二区三区四区| 精品国产一二三| thepron国产精品| 亚洲成人tv网| 国产亚洲欧美中文| 欧美视频日韩视频| 国产在线精品国自产拍免费| 中文字幕中文乱码欧美一区二区 | 成人免费在线播放视频| 欧美丰满美乳xxx高潮www| 精品亚洲免费视频| 日韩一区日韩二区| 欧美一区二区美女| a级高清视频欧美日韩| 亚洲国产综合视频在线观看| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 亚洲综合色区另类av| 日韩精品中午字幕| eeuss鲁一区二区三区| 五月婷婷综合激情| 欧美韩国一区二区| 欧美一区二区三区在线观看视频| 东方欧美亚洲色图在线| 午夜精品一区二区三区免费视频| 久久久蜜臀国产一区二区| 色8久久人人97超碰香蕉987| 久久99国产乱子伦精品免费| 亚洲欧美日韩精品久久久久| 欧美大片一区二区三区| 色欧美乱欧美15图片| 国产精品综合二区| 日日摸夜夜添夜夜添国产精品| 中文字幕不卡在线观看| 日韩一级成人av| 97精品久久久久中文字幕 | ...av二区三区久久精品| 日韩精品中文字幕一区| 在线观看亚洲精品| 成人动漫中文字幕| 精品一区二区三区免费| 午夜久久久久久电影| 亚洲伦在线观看| 久久精品视频在线免费观看 | 亚洲一级电影视频| 国产精品美女久久久久久2018| 日韩欧美美女一区二区三区| 欧美性猛交xxxx黑人交| 99这里都是精品| 国产综合久久久久久久久久久久| 亚洲成人av电影| 亚洲视频一区二区在线观看| 日本一区二区综合亚洲| 精品国产乱码久久久久久蜜臀| 3d成人h动漫网站入口| 欧美在线免费播放| 日本电影欧美片| 91片黄在线观看| 99re热这里只有精品免费视频| 成人av网站在线| 成人视屏免费看| 国产69精品久久久久毛片| 久久成人免费电影| 蜜桃91丨九色丨蝌蚪91桃色| 天堂久久久久va久久久久| 亚洲第一电影网| 性感美女久久精品| 亚洲资源中文字幕| 亚洲高清在线精品|