user3342616
user3342616

Reputation: 31

How to add a system call to get the count of a particular system call when process invokes it in XV6 OS

Can some one help me in adding a system call called getcount(system call) to XV6? which has an argument system call. when ever a system call is made by the process it should increase the count and should keep track of the count. after the completion of process it should be displayed.

Upvotes: 2

Views: 4167

Answers (1)

Serapheim
Serapheim

Reputation: 66

This is a duplicate question. Look here.

It has been asked and answered by the same person who asked the question. It is a valid way but since this sounds like a homework question I would encourage you to try and come up with another way of doing it. I know there is one because I have done it myself.

Here , is also another stackoverflow question and its answers that could prove useful to you.

Good Luck!

Upvotes: 1

Related Questions