--- kerneltop-0.8.orig/kerneltop.c +++ kerneltop-0.8/kerneltop.c @@ -84,7 +84,7 @@ #define ROW_DATA 4 // first row of function/usage data #define ROW_MESSAGE 1 -#define S_LEN 128 +#define S_LEN 1024 #define OUTPUT_SIZE 512 #define DEF_NUMLINES 20 /* lines */ --- kerneltop-0.8.orig/debian/compat +++ kerneltop-0.8/debian/compat @@ -0,0 +1 @@ +4 --- kerneltop-0.8.orig/debian/kerneltop.1 +++ kerneltop-0.8/debian/kerneltop.1 @@ -0,0 +1,43 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH KERNELTOP 1 "May 27, 2004" +.SH NAME +kerneltop \- shows linux kernel function usage in a style like top +.SH SYNOPSIS +.B kerneltop +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B kerneltop +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBkerneltop\fP shows linux kernel function usage in a style like top +(modules are not included), it is derived from readprofile. +.SH OPTIONS +.TP +.B \-m +Set the (default = "/boot/System.map"). +.TP +.B \-p +Set the (default = "/proc/profile"). +.TP +.B \-l +Set number of lines to print (def. = 20; max = 100). +.TP +.B \-s +Set sleep time in seconds (def. = 1). +.TP +.B \-t +Set threshold of number of ticks to print (def. = 1). +A function must have this many ticks to be printed. +.TP +.B \-u +Print unsorted (skip the sort). +.TP +.B \-V +Print version and exit. +.SH AUTHOR +This manual page was written by Gustavo Franco , +for the Debian project (but may be used by others). --- kerneltop-0.8.orig/debian/control +++ kerneltop-0.8/debian/control @@ -0,0 +1,16 @@ +Source: kerneltop +Section: devel +Priority: optional +Maintainer: Gustavo Franco +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: kerneltop +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: shows linux kernel function usage in a style like top + kerneltop shows linux kernel function information usage (modules + not included) like top do for process, and is derived from + readprofile. + . + It needs profiling enabled on kernel and on boot time. --- kerneltop-0.8.orig/debian/copyright +++ kerneltop-0.8/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Gustavo Franco on +Thu, 27 May 2004 09:53:05 -0400. + +It was downloaded from http://www.xenotime.net/linux/kerneltop/ + +Upstream Authors: Alessandro Rubini (rubini@ipvvis.unipv.it) and + Randy Dunlap . + + +Copyright: +Copyright (C) 1994,1996 Alessandro Rubini (rubini@ipvvis.unipv.it) +Copyright (C) 2002,2004 Randy Dunlap + + This package 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; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- kerneltop-0.8.orig/debian/dirs +++ kerneltop-0.8/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- kerneltop-0.8.orig/debian/changelog +++ kerneltop-0.8/debian/changelog @@ -0,0 +1,21 @@ +kerneltop (0.8-2+squeeze1) stable; urgency=low + + * Non-maintainer upload. + * Increase size of mapfile line buffer from 128 to 1024 (closes: #607309). + Thanks to Marcin Szewczyk for the bug report. + + -- Jakub Wilk Wed, 09 Mar 2011 17:27:00 +0100 + +kerneltop (0.8-2) unstable; urgency=low + + * debian/copyright: + - copyright holder information added, thanks Justin (Closes #290192) + + -- Gustavo Franco Sun, 30 Jan 2005 22:07:42 -0200 + +kerneltop (0.8-1) unstable; urgency=low + + * Initial Release (at debconf4). (Closes: #250963) + + -- Gustavo Franco Thu, 27 May 2004 09:53:05 -0400 + --- kerneltop-0.8.orig/debian/README.Debian +++ kerneltop-0.8/debian/README.Debian @@ -0,0 +1,7 @@ +kerneltop for Debian +-------------------- + +You will need to check if you have profiling support enabled on your kernel +(the current debian 2.4 is ok) and boot your system with `profile=1`. + + -- Gustavo Franco , Sun, 30 Jan 2005 22:07:42 -0200 --- kerneltop-0.8.orig/debian/rules +++ kerneltop-0.8/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp -p kerneltop $(CURDIR)/debian/kerneltop/usr/bin + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman debian/kerneltop.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure