README threadcpu ================ About ----- $ tools/threadcpu -h threadcpu shows CPU usage of threads in user% and system% usage: threadcpu [-h] [-s seconds] [-p path-to-jstack] options: -h display this help page -s measuring interval in seconds, default: 10 -p path to JRE jstack, default: /usr/bin/jstack example usage: threadcpu -s 30 -p /opt/java/default/bin/jstack 2>/dev/null|sort -n|tail -n 12 output columns: user percent system percent PID/NID [ JVM thread name OR (process name) ] Configure --------- $ make menuconfig Or just edit/write .config.auto. Build ----- $ make Install ------- $ make install Or for local install: $ make prefix=/path/to/my/local/installation install Or for building a package: $ make DESTDIR=/tmp/fakeroot install Create archive -------------- $ make tgz Create RPM package ------------------ Try this target: $ make rpm Alternatively copy spec file and archive to the appropriate rpmbuild dirs and call rpmbuild manually. Create deb package ------------------ First create an archive. Then unpack it, cd to it and run debuild. Example: $ tar xzf threadcpu_20180914.orig.tar.gz $ cd threadcpu-20180914 $ debuild