Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fixed _GNU_SOURCE define, thanks to Clemens Fischer; other cosmetic fixes. | a839853469ea6f7aef5d7478ec4951e562ea368f | Catalin(ux) M. BOIE | 2010-11-16 20:31:52 |
Output bytes with more resolution. | 9186e62898ca1e255df9e88483829f300eec82b2 | Catalin(ux) M. BOIE | 2010-11-05 19:47:30 |
Cosmetic changes. | 1d0900baccc34cd5aceb1cb8d137cbb0c2dc676d | Catalin(ux) M. BOIE | 2010-11-05 19:47:19 |
Show also parameters after command. | 1e1644c7a23ad0ba9cf7f5e387c94c96e1c46863 | Catalin(ux) M. BOIE | 2010-11-05 19:46:50 |
More TODO items added. | 59f76d064266361dab046e343f96c821685580fc | Catalin(ux) M. BOIE | 2010-11-05 19:42:46 |
Duilder updates. | aea4172fc5ea31cddd55c9285b9241162b117760 | Catalin(ux) M. BOIE | 2010-10-30 22:08:44 |
Bump up the version to 0.0.5. | da39ad57b4b30f50ffe98fcd33b57a2c3391631f | Catalin(ux) M. BOIE | 2010-10-29 22:40:03 |
Cosmetic changes. | f55a262fa0efcb167a545adaa94c7dd82b2b34a5 | Catalin(ux) M. BOIE | 2010-10-29 22:38:33 |
no need for get_sort_by. | 8a80cc2fd4cfbba04420d130cea890087290e675 | Catalin(ux) M. BOIE | 2010-10-29 21:29:29 |
Show the name of the program in the first line. | 6a1cec9f2a9e028d254f8edbdd7dd30a8871f300 | Catalin(ux) M. BOIE | 2010-10-29 21:20:07 |
Exclude anon_inotify files. | 82d8aba0844c8adb0ab25be667fe30496efbc2fc | Catalin(ux) M. BOIE | 2010-10-29 21:13:49 |
Ignore Changelog*. | 6292255f489b3e8f71e690bd0c8a0f49e6dbc26e | Catalin(ux) M. BOIE | 2010-10-29 19:29:33 |
Do not export git tree and do not push it. | 4a18c42a27b68c53039957376f5c92ac65bedec2 | Catalin(ux) M. BOIE | 2010-10-27 21:09:47 |
Added duilder's RELEASE_SCRIPT. | 3962ddb7984b78d191f5babd0f95700d09c02ca5 | Catalin(ux) M. BOIE | 2010-10-27 21:08:58 |
Added .gitignore for src dir. | 775ff1c070d95b0ce381a8bcf591f5094d57e764 | Catalin(ux) M. BOIE | 2010-10-27 20:57:06 |
Dump to file the speed also. | d605c72b495ac7fc3f30d744e5f1eb8778efa3b8 | Catalin(ux) M. BOIE | 2010-10-27 20:38:46 |
More TODO entries. | df3c39a3c34ce849de7c2436b94a54f24972cbe5 | Catalin(ux) M. BOIE | 2010-10-27 20:38:12 |
Cosmetic. | c6e4a188d756a080eaa2d0a6e9f8e680b3c95083 | Catalin(ux) M. BOIE | 2010-10-27 20:36:27 |
Allow exit using upper 'q'. | dd46e260882ca2cb2edb949f1ad2341d4f94cdb8 | Catalin(ux) M. BOIE | 2009-10-30 23:01:36 |
TODO in. | 06e0185b6e8d363c397fb0ba1e1d5dc40b23b226 | Catalin(ux) M. BOIE | 2010-10-29 19:35:27 |
File | Lines added | Lines deleted |
---|---|---|
Makefile.in | 1 | 1 |
src/io.c | 2 | 0 |
src/pwatch.c | 3 | 3 |
src/pwatch.h | 8 | 4 |
src/pwatch_com.h | 1 | 0 |
src/pwatch_nl.c | 2 | 1 |
src/pwatch_nl.h | 6 | 4 |
src/pwatch_proc.c | 2 | 0 |
src/pwatch_proc.h | 2 | 2 |
File Makefile.in changed (mode: 100644) (index 996bb8c..d6d6d85) | |||
1 | 1 | export CC := gcc | export CC := gcc |
2 | 2 | export INCS += -I. -I$(PWD)/ | export INCS += -I. -I$(PWD)/ |
3 | 3 | export CFLAGS += -ggdb3 -Wall -Wextra -pedantic -Wno-long-long -pipe \ | export CFLAGS += -ggdb3 -Wall -Wextra -pedantic -Wno-long-long -pipe \ |
4 | -Wswitch-enum -D_GNU_SOURCE -O0 #-O2 | ||
4 | -Wswitch-enum -O0 #-O2 | ||
5 | 5 | ||
6 | 6 | ||
7 | 7 | .PHONY: all | .PHONY: all |
File src/io.c changed (mode: 100644) (index 88399b1..31dc66a) | |||
1 | #include "pwatch_com.h" | ||
2 | |||
1 | 3 | #include <stdio.h> | #include <stdio.h> |
2 | 4 | #include <string.h> | #include <string.h> |
3 | 5 | #include <stdlib.h> | #include <stdlib.h> |
File src/pwatch.c changed (mode: 100644) (index cc99cd2..a052cba) | |||
1 | #include "pwatch.h" | ||
2 | |||
1 | 3 | #include <stdio.h> | #include <stdio.h> |
2 | 4 | #include <sys/types.h> | #include <sys/types.h> |
3 | 5 | #include <sys/stat.h> | #include <sys/stat.h> |
7 | 9 | #include <dirent.h> | #include <dirent.h> |
8 | 10 | #include <fcntl.h> | #include <fcntl.h> |
9 | 11 | ||
10 | #include "pwatch.h" | ||
11 | |||
12 | 12 | ||
13 | 13 | /* | /* |
14 | 14 | * Returns the content of a file | * Returns the content of a file |
... | ... | int pwatch_get_content_text(const char *file, char *buf, const size_t buf_len) | |
57 | 57 | /* | /* |
58 | 58 | * Show nice speed | * Show nice speed |
59 | 59 | */ | */ |
60 | void pwatch_nice_output(char *buf, size_t buf_len, | ||
60 | void pwatch_nice_output(char *buf, const size_t buf_len, | ||
61 | 61 | const unsigned long long value) | const unsigned long long value) |
62 | 62 | { | { |
63 | 63 | unsigned long long new; | unsigned long long new; |
File src/pwatch.h changed (mode: 100644) (index 5f695eb..f3858e2) | |||
1 | #ifndef _pwatch_h_ | ||
2 | #define _pwatch_h_ | ||
1 | #ifndef _PWATCH_H_ | ||
2 | #define _PWATCH_H_ | ||
3 | |||
4 | #include "pwatch_com.h" | ||
5 | |||
6 | #include <unistd.h> | ||
3 | 7 | ||
4 | 8 | enum { | enum { |
5 | 9 | SORT_BY_BYTES_READ, | SORT_BY_BYTES_READ, |
... | ... | extern int pwatch_get_content(const char *file, char *buf, | |
14 | 18 | extern int pwatch_get_content_text(const char *file, char *buf, | extern int pwatch_get_content_text(const char *file, char *buf, |
15 | 19 | const size_t buf_len); | const size_t buf_len); |
16 | 20 | ||
17 | extern void pwatch_nice_output(char *buf, size_t buf_len, | ||
18 | const unsigned long long speed); | ||
21 | extern void pwatch_nice_output(char *buf, const size_t buf_len, | ||
22 | const unsigned long long value); | ||
19 | 23 | ||
20 | 24 | extern void pwatch_flags(char *buf, const size_t buf_len, | extern void pwatch_flags(char *buf, const size_t buf_len, |
21 | 25 | const int flags); | const int flags); |
File src/pwatch_com.h added (mode: 100644) (index 0000000..28ae8e0) | |||
1 | #define _GNU_SOURCE |
File src/pwatch_nl.c changed (mode: 100644) (index 8dcb90a..778690a) | |||
1 | #include "pwatch_nl.h" | ||
2 | |||
1 | 3 | #include <asm/types.h> | #include <asm/types.h> |
2 | 4 | #include <sys/socket.h> | #include <sys/socket.h> |
3 | 5 | #include <linux/genetlink.h> | #include <linux/genetlink.h> |
6 | 8 | #include <stdio.h> | #include <stdio.h> |
7 | 9 | #include <errno.h> | #include <errno.h> |
8 | 10 | ||
9 | #include "pwatch_nl.h" | ||
10 | 11 | ||
11 | 12 | struct train { | struct train { |
12 | 13 | struct nlmsghdr n; | struct nlmsghdr n; |
File src/pwatch_nl.h changed (mode: 100644) (index b729f23..1acefd8) | |||
2 | 2 | * See Documentation/accounting/ for more info | * See Documentation/accounting/ for more info |
3 | 3 | */ | */ |
4 | 4 | ||
5 | #if !_PWATCH_H_ | ||
6 | #define _PWATCH_H 1 | ||
5 | #ifndef _PWATCH_NL_H_ | ||
6 | #define _PWATCH_NL_H 1 | ||
7 | |||
8 | #include "pwatch_com.h" | ||
7 | 9 | ||
8 | 10 | #include <asm/types.h> | #include <asm/types.h> |
9 | 11 | #include <linux/taskstats.h> | #include <linux/taskstats.h> |
13 | 15 | extern unsigned int pwatch_nl_errors; | extern unsigned int pwatch_nl_errors; |
14 | 16 | extern char pwatch_nl_strerror[128]; | extern char pwatch_nl_strerror[128]; |
15 | 17 | ||
16 | extern int pwatch_nl_get_taskstats(unsigned int pid, | ||
17 | struct taskstats *ts); | ||
18 | extern int pwatch_nl_get_taskstats(unsigned int pid, | ||
19 | struct taskstats *ts); | ||
18 | 20 | ||
19 | 21 | #endif | #endif |
File src/pwatch_proc.c changed (mode: 100644) (index 4de35a4..7859d08) | |||
1 | #include "pwatch_com.h" | ||
2 | |||
1 | 3 | #include <stdio.h> | #include <stdio.h> |
2 | 4 | #include <sys/types.h> | #include <sys/types.h> |
3 | 5 | #include <sys/stat.h> | #include <sys/stat.h> |
File src/pwatch_proc.h changed (mode: 100644) (index 95d3235..d6e5a1a) | |||
1 | #ifndef _pwatch_proc_h_ | ||
2 | #define _pwatch_proc_h_ | ||
1 | #ifndef _PWATCH_PROC_H_ | ||
2 | #define _PWATCH_PROC_H_ | ||
3 | 3 | ||
4 | 4 | #include "pwatch.h" | #include "pwatch.h" |
5 | 5 | #include "pwatch_nl.h" | #include "pwatch_nl.h" |