debian/0000755000000000000000000000000012263006462007167 5ustar debian/changelog0000644000000000000000000000074012263006462011042 0ustar fatrace (0.6-1) unstable; urgency=medium * New upstream release: - power-usage-report: Fix output parsing for PowerTOP 2.5. (LP: #1265142) * Add autopkgtests for fatrace and power-usage-report. * Bump Standards-Version to 3.9.5 (no changes necessary). -- Martin Pitt Tue, 07 Jan 2014 15:19:58 +0100 fatrace (0.5-1) unstable; urgency=low * Initial release. (Closes: #705193) -- Martin Pitt Fri, 12 Apr 2013 17:18:20 +0200 debian/compat0000644000000000000000000000000212263006462010365 0ustar 9 debian/control0000644000000000000000000000204712263006462010575 0ustar Source: fatrace Section: utils Priority: optional Build-Depends: debhelper (>= 9) Maintainer: Martin Pitt Homepage: https://launchpad.net/fatrace Standards-Version: 3.9.5 Vcs-Git: git://git.debian.org/git/collab-maint/fatrace.git Vcs-Browser: http://git.debian.org/?p=collab-maint/fatrace.git;a=summary XS-Testsuite: autopkgtest Package: fatrace Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: python3, powertop Description: report system wide file access events fatrace reports file access events from all running processes. Its main purpose is to find processes which keep waking up the disk unnecessarily and thus prevent some power saving. . This package also contains a "power-usage-report" tool, which uses fatrace and powertop to build a textual report from one minute of measuring power usage and file accesses. This does not take any arguments or requires any interactivity, so is very simple to use and serves as a starting point for bug reports or optimizing a particular installation. debian/copyright0000644000000000000000000000114212263006462011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fatrace Upstream-Contact: Martin Pitt Source: https://launchpad.net/fatrace/+download Files: * Copyright: 2012, 2013 Canonical Ltd. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . The full text of the GPL is distributed as in /usr/share/common-licenses/GPL-3 on Debian systems. debian/rules0000755000000000000000000000015512263006462010250 0ustar #!/usr/bin/make -f %: dh "$@" override_dh_auto_install: make install PREFIX=/usr DESTDIR=debian/fatrace debian/source/0000755000000000000000000000000012263006462010467 5ustar debian/source/format0000644000000000000000000000001412263006462011675 0ustar 3.0 (quilt) debian/tests/0000755000000000000000000000000012263006462010331 5ustar debian/tests/control0000644000000000000000000000021112263006462011726 0ustar Tests: fatrace Depends: @ Restrictions: needs-root Tests: power-usage-report Depends: @, powertop Restrictions: needs-root allow-stderr debian/tests/fatrace0000755000000000000000000000105012263006462011660 0ustar #!/bin/sh set -euC LOG=$ADTTMP/fatrace.log echo "starting fatrace..." fatrace -s 2 -o $LOG & sleep 1 echo "read a file..." head /etc/passwd > /dev/null echo "waiting for fatrace..." wait echo "checking log..." check_log() { if ! grep -q "$1" $LOG; then echo "$1 not found in log:" >&2 echo "===================" >&2 cat $LOG >&2 echo "===================" >&2 exit 1 fi } # accessing the "head" binary check_log "RC\?O\? /usr/bin/head$" # head accessing /etc/passwd check_log "RC\?O\? /etc/passwd$" debian/tests/power-usage-report0000755000000000000000000000055712263006462014035 0ustar #!/bin/sh set -euC OUT=`power-usage-report` check_log() { if ! echo "$OUT" | grep -q "$1"; then echo "$1 not found in log:" >&2 echo "===================" >&2 cat $LOG >&2 echo "===================" >&2 exit 1 fi } # this is just a simple smoketest, but guards against bugs like LP#1265142 check_log "== Wakeups ==" debian/watch0000644000000000000000000000012012263006462010211 0ustar version=3 http://launchpad.net/fatrace/+download .*/fatrace-([0-9.]+)\.tar\.bz2