GithubHelp home page GithubHelp logo

procfs's Introduction

Source file for the module: p4fs.c
Run make to compile the module
	- The moudle is compiled agains the 4.0.9 kernel provided with the VM (VMWare Player + KVM) @ /home/user/Desktop/VM/linux-4.0.9/
	

Available test files:
	test.c (compile using gcc -o test test.c)
	test_long_running.c (to easily test killing the process by writing to its signal file)

Notes:
====

1. Become root (by running 'su' on target machine) to easily navigate/dump file contents/write signal.
2. remount.sh is added to easily remout the file system.
3. Testing:
	a. Copy the module, test executables and remount.sh to the target (I simply scp the files into the KVM)
	b. Run su to become root
	c. Create directory "/mnt/p4fsdisk"
	d. Go to directory where all the files are copied
	e. Run command "./test 3; ./remount.sh"
		test exe will create a number of processes (15 for input 3) in a hierarchy
		As a result of remounting, the files will be visible in the FS @ /mnt/p4fsdisk
	f. To test signal delivery,
		Run "./test_long_running &" 
			PID will be printed on console
			Run the command
				find /mnt/p4fsdisk/ -name "<PID>.status"
			Use the directory info from the result of find command to write signal to the process' signal file.
4. Some screenshots are availabe in the archive to demonstrate.

procfs's People

Contributors

talhaghaffar avatar

Watchers

James Cloos 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.