Assignment 3 - 2022
Team 1: blocked processes in blocking_device Read and experiment phase 3 work in http://linux-kernel-lab.blogspot.com/2018/06/blocking-device.html Make the pid of all processes blocked in blocking_device visible in /sys/show_blocked. Test it. You may run "read_test &" as many times as you wish. tip: Do you know what is a file in sysfs? It just exports some information from the kernel. In order to create "show_blocked", you do not have to create any additional data structure (such as an array) inside the kernel. You will have to look for the pid of all blocked processes looking some data structure that already exists. Notice that when you have many "read_test" processes waiting for a char, when one char arrives from keyboard, all processes are put to run. Change this behavior, and give one char to just one process, keeping all others blocked. Team 2: systemtap: I/O monitoring You are not using Shibata's work. systemtap is a script language deve