catalinux / pwatch (public) (License: GPLv3) (since 2016-03-01) (hash sha1)
Set of tools to analyze what a process is doing. 'io' command is used to see who is doing I/O.
List of commits:
Subject Hash Author Date (UTC)
Warn if user has a not enough recent kernel and refuse to work. 3687f3965abc6aa66bbde34a7fd53795874aaa69 Catalin(ux) M. BOIE 2007-10-30 09:52:32
No need to have Changelog in git. 2b04dcd1a0a428722ae2ec490eb0ccab93a74e75 Catalin(ux) M. BOIE 2007-10-24 09:33:42
Added GIT_COMMIT stuff. e724fe6003c3e7d30f5d9f78a9ff8ae4fc958fc4 Catalin(ux) M. BOIE 2007-10-24 09:29:43
duilder should be in git repository. eb90b4b59cb3ab9dfb2d5fe3f06561110f2bca98 Catalin(ux) M. BOIE 2007-10-24 08:48:45
Added more info. b91dc05444309ef93aa3c5dc2890fbe4bcbaf82d Catalin(ux) M. BOIE 2007-10-24 08:48:27
Removed duilder from .gitignore. fb32de1325e3719c8214ac3dd4be099a66a2d36f Catalin(ux) M. BOIE 2007-10-24 08:47:33
Switch to new duilder variables. 2ad644f672ced83758a19dda33b8f23abbf60cc5 Catalin(ux) M. BOIE 2007-10-23 02:51:46
Added a new screenshot. 3cc31df36f6a78e2d17b727f9f272f9dec9f32f5 Catalin(ux) M. BOIE 2007-10-23 02:12:56
Remove link to pi. Will come back later. b98ac41d7695e2f497c69dba49ea21e3a86cf66a Catalin(ux) M. BOIE 2007-10-22 09:58:55
Exclude some auto generated files. 64b475e4b06788fb481538cf3b4d6a4c4bcedb4c Catalin(ux) M. BOIE 2007-10-22 08:59:38
Removed some leftovers. f373c6bf966de7d7318b93e75414cdadfd6e8603 Catalin(ux) M. BOIE 2007-10-22 08:56:59
Correct instalation stuff. 9caf660f3d5104028cbab81de17cf23cb3203c24 Catalin(ux) M. BOIE 2007-10-22 08:56:40
Added duilder conf file. 9db23c7c2c165d448027a818266116e313194d4c Catalin(ux) M. BOIE 2007-10-22 08:56:08
Some basic corrections. 81113acb04179336164c68c384449c1a88c4e5e1 Catalin(ux) M. BOIE 2007-10-22 08:55:31
Quiet make commands. e49c4c156f9054cad6a3c28aa77cb70da404b538 Catalin(ux) M. BOIE 2007-10-22 08:54:35
Real switch to duilder build system. 13da5d88af6419a70442c0735c4ea26b25deee21 Catalin(ux) M. BOIE 2007-10-22 08:44:00
Delete some leftovers from previous build system. Updated README and TODO. configure switched to duilder. 6a3022a0d34219e27365953204462945a4b80664 Catalin(ux) M. BOIE 2007-10-22 08:42:15
Updated help page. dc8248b184aa7c0d149360020a6ace559d0f891c Catalin(ux) M. BOIE 2007-10-22 08:40:35
Lot of code refactoring. 238eb5aa9eb0cbfde29d6ecc2ff33d6aeaf1146f Catalin(ux) M. BOIE 2007-10-19 11:45:39
Added iotop. 86ff5e827428f0d51e0e495f6a7aeff97dad191b Catalin(ux) M. BOIE 2007-10-18 19:33:01
Commit 3687f3965abc6aa66bbde34a7fd53795874aaa69 - Warn if user has a not enough recent kernel and refuse to work.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2007-10-30 09:52
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2007-10-30 09:52
Parent(s): 2b04dcd1a0a428722ae2ec490eb0ccab93a74e75
Signer:
Signing key:
Signing status: N
Tree: fca5317c4106c09ad6ea626251c26f7edf2a6204
File Lines added Lines deleted
src/iotop.c 6 0
src/pwatch_proc.c 19 0
src/pwatch_proc.h 2 0
File src/iotop.c changed (mode: 100644) (index 7b66134..e0b5eea)
... ... int main(int argc, char *argv[])
243 243 unsigned int page = 0, max_pages = 1; unsigned int page = 0, max_pages = 1;
244 244 unsigned int last_line; unsigned int last_line;
245 245
246 if (pwatch_counters_avail() == -1) {
247 fprintf(stderr, "Counters are not available."
248 " Please use a more recent kernel.\n");
249 return 1;
250 }
251
246 252 while (1) { while (1) {
247 253 int option_index = 0; int option_index = 0;
248 254
File src/pwatch_proc.c changed (mode: 100644) (index 492ba7e..afad049)
13 13
14 14 static unsigned int pwatch_version = 0; static unsigned int pwatch_version = 0;
15 15
16 /*
17 * Check if fdinfo folder is available
18 * Returns 0 if yes, -1 if no
19 */
20 int pwatch_counters_avail(void)
21 {
22 DIR *d;
23 char dir[128];
24
25 snprintf(dir, sizeof(dir), "/proc/%d/fdinfo", getpid());
26 d = opendir(dir);
27 if (!d)
28 return -1;
29
30 closedir(d);
31
32 return 0;
33 }
34
16 35 /* /*
17 36 * Load info about a fd * Load info about a fd
18 37 */ */
File src/pwatch_proc.h changed (mode: 100644) (index d45ac3d..a1347da)
... ... struct pwatch_proc {
31 31 }; };
32 32
33 33
34 extern int pwatch_counters_avail(void);
35
34 36 extern struct pwatch_proc *pwatch_proc_get(struct pwatch_proc *head, extern struct pwatch_proc *pwatch_proc_get(struct pwatch_proc *head,
35 37 const pid_t pid); const pid_t pid);
36 38
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/pwatch

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/pwatch

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/pwatch

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main