Giter Site home page Giter Site logo

wangxiaoq / dump-phys-addr Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 2 KB

The module is used to dump all the physical addresses(page frames) used by a process. It takes a command line parameter to specify which process to dump.

Makefile 20.10% C 79.90%

dump-phys-addr's Introduction

Dump Physical Address of A Process

Wang Xiaoqiang[email protected] Distributed & Embedded System Lab DSLab

The module is used to dump all the physical addresses(page frames) used by a process. It taskes a command line parameter to specified which process to dump.

Usage

    1. make
    2. sudo insmod dump-phys.ko task_name="your_process_name"
    3. dmesg
    4. make uninstall

Example

For the step 2. we can give a example:

sudo insmod dump-phys.ko task_name="init"

The command above dumps the physical addresses of process "init". Then use:

dmesg

Part of the output is as follows:

[72240.260786] linear address: 0xb7552000, physical address: not alloc
[72240.260790] linear address: 0xb7553000, physical address: 0x7e7ce000
[72240.260794] linear address: 0xb7554000, physical address: 0x7e7cf000
[72240.260797] linear address: 0xb7555000, physical address: not alloc
[72240.260801] linear address: 0xb7556000, physical address: not alloc
[72240.260805] linear address: 0xb7557000, physical address: not alloc
[72240.260808] linear address: 0xb7558000, physical address: not alloc
[72240.260812] linear address: 0xb7559000, physical address: not alloc
[72240.260816] linear address: 0xb755a000, physical address: not alloc
[72240.260820] linear address: 0xb755b000, physical address: 0x7dc96000
[72240.260823] linear address: 0xb755c000, physical address: not alloc
[72240.260827] linear address: 0xb755d000, physical address: not alloc
[72240.260831] linear address: 0xb755e000, physical address: 0x7e409000
[72240.260835] linear address: 0xb755f000, physical address: 0x7e40a000

Each item in the output represents a pair of page and page frame addresses.

LICENSE

This program is under the license of GPL v2.

dump-phys-addr's People

Contributors

wangxiaoq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.