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)
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
Added an example. 0186e119fe7dc68c32446151d0785147e654bb62 Catalin(ux) M. BOIE 2007-10-10 20:37:33
First import. 38d1bf362511d2f70728da41959a02ec894bf2b7 Catalin(ux) M. BOIE 2007-10-10 20:22:39
Commit 6a3022a0d34219e27365953204462945a4b80664 - Delete some leftovers from previous build system. Updated README and TODO. configure switched to duilder.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2007-10-22 08:42
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2007-10-22 08:42
Parent(s): dc8248b184aa7c0d149360020a6ace559d0f891c
Signer:
Signing key:
Signing status: N
Tree: 893bbadd273da61e9d8e84d61182b928f0b10a13
File Lines added Lines deleted
Makefile.head 0 29
Makefile.tail 0 18
README 4 1
TODO 1 0
configure 2 123
githelper 0 14
File Makefile.head deleted (index cbbab79..0000000)
1 export PRJ := @PRJ@
2 export VER := @VER@
3 export REV := @REV@
4 export DESTDIR
5
6 export ETC := @ETC@
7 export SBIN := @SBIN@
8
9 export I_ETC := $(DESTDIR)/$(ETC)
10 export I_SBIN := $(DESTDIR)/$(SBIN)
11 export I_LOG := $(DESTDIR)/var/log/$(PRJ)
12 export I_INC := $(DESTDIR)/usr/include
13 export I_LIB := $(DESTDIR)/usr/lib
14
15 # DB stuff
16 export DB_SUPPORT := @DB_SUPPORT@
17 # PG
18 export PG_FOUND := @PG_FOUND@
19 export PG_INC := @PG_INC@
20 export PG_LIB := @PG_LIB@
21
22 # GIT stuff
23 export GIT_PATH := @GIT_PATH@
24
25 .PHONY: xxx_all
26 xxx_all: @MAKEFILE_TARGETS@
27
28 # HEAD END #
29
File Makefile.tail deleted (index 5904c54..0000000)
1
2 # TAIL START #
3
4 dist: clean
5 @echo "Generate tarball..."
6 cd .. && rm -f $(PRJ)-$(VER) && ln -s $(PRJ) $(PRJ)-$(VER)
7 tar czhvf $(PRJ)-$(VER).tar.gz \
8 --exclude $(PRJ)-$(VER).tar.gz \
9 --exclude-from PROJECT_EXCLUDE \
10 -C .. $(PRJ)-$(VER)
11 rm -f ../$(PRJ)-$(VER)
12 @echo "Build SRPM..."
13 rpmbuild -ts $(PRJ)-$(VER).tar.gz
14 @echo "Copy to my repository..."
15 mv /usr/src/redhat/SRPMS/$(PRJ)-$(VER)-$(REV)* ../dinorepo/fedora/SRPMS/
16 rm -f $(PRJ)-$(VER).tar.gz
17 @echo "Generate GIT tree for HTTP transport..."
18 ./githelper "$(PRJ)" "$(GIT_PATH)"
File README changed (mode: 100644) (index 9e2513a..91a98f2)
1 Example:
1
2
3 Example for pi:
4
2 5 # pi 2967 # pi 2967
3 6 fd offset file fd offset file
4 7 0 0 /dev/null 0 0 /dev/null
File TODO changed (mode: 100644) (index 593a1f3..895afb2)
1 1 [ ] Use taskstats (netlink) to get statistics! [ ] Use taskstats (netlink) to get statistics!
2 2 [ ] Take care of wrap-around [ ] Take care of wrap-around
3 [ ] More stuff in README file
3 4 [ ] [ ]
File configure changed (mode: 100755) (index c8b2855..e13a57b)
1 #!/bin/sh
1 #!/bin/bash
2 2
3 if [ ! -r "PROJECT" ]; then
4 echo "ERRRO: You must have a PROJECT file in the current directory!"
5 exit 1
6 fi
7
8 PRJ="`cat PROJECT`"
9
10 if [ -r "PROJECT_VER" ]; then
11 VER="`cat PROJECT_VER`"
12 else
13 VER="0.1.0"
14 echo "${VER}" > PROJECT_VER
15 fi
16
17 if [ -r PROJECT_REV ]; then
18 REV=`cat PROJECT_REV`
19 else
20 REV="1"
21 echo ${REV} > PROJECT_REV
22 fi
23
24 if [ -r PROJECT_GIT ]; then
25 GIT_PATH=`cat PROJECT_GIT`
26 fi
27
28 echo "PRJ=${PRJ}, VER=${VER}, REV=${REV}, GIT_PATH=${GIT_PATH}"
29
30 ETC="/etc"
31 BIN="/usr/bin"
32 SBIN="/usr/sbin"
33 LOG="/var/log/${PRJ}"
34 INC="/usr/include"
35 LIB="/usr/lib"
36
37 while [ "${1}" != "" ]; do
38 VAR="`echo ${1} | cut -d'=' -f1`"
39 VAL="`echo ${1} | cut -d'=' -f2`"
40 case ${VAR} in
41 --sysconfdir)
42 ETC="${VAL}"
43 ;;
44 --bindir)
45 BIN="${VAL}"
46 ;;
47 --sbindir)
48 SBIN="${VAL}"
49 ;;
50 --includedir)
51 INC="${VAL}"
52 ;;
53 --libdir)
54 LIB="${VAL}"
55 ;;
56 esac
57 shift
58 done
59
60 DB_SUPPORT=0
61
62 echo -n "Search for PostgreSQL..."
63 PG_FOUND=0
64 PG_VERSION="`pg_config --version`"
65 if [ -z "${PG_VERSION}" ]; then
66 echo " not found!"
67 else
68 echo " found version ${PG_VERSION}!"
69 PG_FOUND=1
70 PG_INC="${DB_INC} -I`pg_config --includedir`"
71 PG_LIB="${DB_INC} -L`pg_config --libdir` -lpq"
72 DB_SUPPORT=1
73 fi
74
75 echo "Find out targets for Makefile..."
76 if [ -r PROJECT_TARGETS ]; then
77 MAKEFILE_TARGETS="`cat PROJECT_TARGETS`"
78 fi
79
80
81 # generic stuff
82 echo "s#@PRJ@#${PRJ}#g" >> tmp.sed
83 echo "s#@VER@#${VER}#g" >> tmp.sed
84 echo "s#@REV@#${REV}#g" >> tmp.sed
85 echo "s#@ETC@#${ETC}#g" >> tmp.sed
86 echo "s#@BIN@#${BIN}#g" >> tmp.sed
87 echo "s#@SBIN@#${SBIN}#g" >> tmp.sed
88 echo "s#@LOG@#${LOG}#g" >> tmp.sed
89 echo "s#@INC@#${INC}#g" >> tmp.sed
90 echo "s#@LIB@#${LIB}#g" >> tmp.sed
91 # PG stuff
92 echo "s#@PG_VERSION@#${PG_VERSION}#g" >> tmp.sed
93 echo "s#@PG_FOUND@#${PG_FOUND}#g" >> tmp.sed
94 echo "s#@PG_INC@#${PG_INC}#g" >> tmp.sed
95 echo "s#@PG_LIB@#${PG_LIB}#g" >> tmp.sed
96 # DB stuff
97 echo "s#@DB_SUPPORT@#${DB_SUPPORT}#g" >> tmp.sed
98 # GIT stuff
99 echo "s#@GIT_PATH@#${GIT_PATH}#g" >> tmp.sed
100 # makefile stuff
101 echo "s#@MAKEFILE_TARGETS@#${MAKEFILE_TARGETS}#g" >> tmp.sed
102
103
104 echo "Build Makefile..."
105 sed --file tmp.sed Makefile.head > Makefile
106 if [ -r Makefile.in ]; then
107 sed --file tmp.sed Makefile.in >> Makefile
108 fi
109 sed --file tmp.sed Makefile.tail >> Makefile
110
111
112 echo "Generate .spec file..."
113 sed --file tmp.sed ${PRJ}.spec.in > ${PRJ}.spec
114
115
116 if [ -r config.h.in ]; then
117 echo "Generate config.h file..."
118 sed --file tmp.sed config.h.in > config.h
119 fi
120
121
122 rm -f tmp.sed
123
124 echo "Done. Run make."
3 ./duilderx
File githelper deleted (index 4acffda..0000000)
1 #!/bin/sh
2
3 PRJ="${1}"
4 GIT_PATH="${2}"
5
6 echo "Generate GIT tree for HTTP transport..."
7 if [ ! -d "${GIT_PATH}/${PRJ}.git" ]; then
8 git-clone --bare . "${GIT_PATH}/${PRJ}.git"
9 chmod a+x "${GIT_PATH}/${PRJ}.git/hooks/post-update"
10 echo "${PRJ}" > "${GIT_PATH}/${PRJ}.git/description"
11 else
12 # --force?
13 git-push -v --all --tags "${GIT_PATH}/${PRJ}.git"
14 fi
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