文件名称:Homework_mm
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:6kb
-
已下载:3次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现三个功能
1:打印所有当前进程占用的内存的起始地址+结束地址
2:输入虚拟地址,打印物理地址
3:改变一个变量的值(通过虚拟地址及物理地址)-Write a module that is called mtest
• When module loaded, module will create a proc fs entry /proc/mtest
• /proc/mtest will accept 3 kind of input
“listvma” will print all vma of current process in the format of
start-addr end-addr permission
e.g
0x10000 0x20000 rwx
0x30000 0x40000 r—
“findpage addr” will find va->pa translation of address in current process’s
mm context and print it. If there is not va->pa translation, prink “tranlsation
not found”
“writeval addr val” will change an unsigned long size content in current
process’s virtual address into val. Note module should write to identity
mapping address of addr and verify it from userspace address addr.
• All the print can be done with printk and check result with dmesg.
1:打印所有当前进程占用的内存的起始地址+结束地址
2:输入虚拟地址,打印物理地址
3:改变一个变量的值(通过虚拟地址及物理地址)-Write a module that is called mtest
• When module loaded, module will create a proc fs entry /proc/mtest
• /proc/mtest will accept 3 kind of input
“listvma” will print all vma of current process in the format of
start-addr end-addr permission
e.g
0x10000 0x20000 rwx
0x30000 0x40000 r—
“findpage addr” will find va->pa translation of address in current process’s
mm context and print it. If there is not va->pa translation, prink “tranlsation
not found”
“writeval addr val” will change an unsigned long size content in current
process’s virtual address into val. Note module should write to identity
mapping address of addr and verify it from userspace address addr.
• All the print can be done with printk and check result with dmesg.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Makefile
mtest.c
t.c
test
test.c
mtest.c
t.c
test
test.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
