xprofile-md.h
来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· C头文件 代码 · 共 52 行
H
52 行
/* * xprofile-md.h * Interface functions to the profiling code * * Copyright (c) 2001 University of Utah and the Flux Group. * All rights reserved. * * @JANOSVM_CONFIG_I386_LINUX_LICENSE@ */#ifndef __i386_linux_xprofile_md_h#define __i386_linux_xprofile_md_h/* * Unfortunately, I can't get linux to export a symbol to the gmonparam * structure (it doesn't link for some reason)... So we can't get any early * recordings. */static inline struct gmonparam *getGmonParam(void){ return 0;}#define _MCOUNT_DECL _mcount#define _KAFFE_OVERRIDE_MCOUNT_DEF void _MCOUNT_DECL __P((uintp frompc, uintp selfpc))#if (__GNUC__ < 2) || (__GNUC_MINOR__ < 9)#define _KAFFE_OVERRIDE_MCOUNT \void mcount(void) \{ \ uintp selfpc, frompc; \\ asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \ asm("movl (%%ebp),%0" : "=r" (frompc)); \ frompc = ((uintp *)frompc)[1]; \ _mcount(frompc, selfpc); \}#else#define _KAFFE_OVERRIDE_MCOUNT \void mcount(void) \{ \ uintp selfpc, frompc; \\ asm("movl (%%esp),%0" : "=r" (selfpc)); \ asm("movl 4(%%ebp),%0" : "=r" (frompc)); \ _mcount(frompc, selfpc); \}#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?