博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月17日

摘要: 介绍:NAMExentrace - capture Xen trace buffer dataSYNOPSISxentrace[OPTIONS] [FILE]DESCRIPTIONxentraceis used to capture trace buffer data from Xen. The data is output in the following binary format (host endian): CPU(uint)TSC(u64)EVENT(u32)D1D2D3D4D5(allu32)Where CPU is the processor number, TSC is the 阅读全文

posted @ 2012-01-17 18:21 algorithmer 阅读(441) 评论(0) 推荐(0)

摘要: 简介libxenctrl是一个C库,它提供了一些简单易用的API,使用户程序可以方便的和Hypervisor进行通信。它的工作原理很简单,封装了dom0中的/proc/xen/privcmd,/dev/xen/evtchn以及/dev/xen/gntdev提供的IOCTL接口。Ø编程步骤:²/proc/xen/privcmd1.xc_interface_open()打开/proc/xen/privcmd,获得文件描述符。2.xc_sysctl()填充xen_sysctl结构体,发送ioctl请求。3.xc_interface_close()关闭1中打开的文件描述符。 阅读全文

posted @ 2012-01-17 18:03 algorithmer 阅读(400) 评论(0) 推荐(0)

摘要: 使用:1.初始化假设你的源代码目录为proj,执行以下步骤可以建立初始的repository$ cd proj$ hg init //生成repository$ hg add /fullpath/filename //加入文件或者$ hg addremove //加入可识别的文件,去除其他文件$ hg commit //生成你的代码的第一个版本执行此命令会让hg调用vi,这时你可以键入一些关于当前提交内容的一些信息,然后保存退出,这个版本就行程了。2.版本以后每当你改动文件后都可以使用hg commit命令来生成一个新的版本$ hg parent //查看当前的版本$ hg log //查看所 阅读全文

posted @ 2012-01-17 18:01 algorithmer 阅读(3684) 评论(0) 推荐(0)