From: Søren Sandmann Date: Sat, 9 Apr 2005 21:17:24 +0000 (+0000) Subject: Remove debug spew X-Git-Tag: sysprof-0.9~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3c466debfb75e14f0dada23a7988c5addc52a74;p=platform%2Fupstream%2Fsysprof.git Remove debug spew Sat Apr 9 17:04:50 2005 Søren Sandmann * Makefile: Remove debug spew * *: Add copyright notices --- diff --git a/ChangeLog b/ChangeLog index 400bee4..d251012 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Apr 9 17:04:50 2005 Søren Sandmann + + * Makefile: Remove debug spew + + * *: Add copyright notices + Fri Apr 8 21:30:02 2005 Søren Sandmann * TODO: More updates diff --git a/Makefile b/Makefile index 05b629a..4013c14 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ ifeq ($(shell (uname -r | grep 2.6) > /dev/null ; echo -n $$?),0) # if kernel 2.6 $(MODULE).o: $(MODULE).c - echo birnan $(MODCFLAGS) +# echo modcflags $(MODCFLAGS) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules else diff --git a/binfile.c b/binfile.c index 35eea4a..e4bdc54 100644 --- a/binfile.c +++ b/binfile.c @@ -1,3 +1,29 @@ +/* MemProf -- memory profiler and leak detector + * Copyright 1999, 2000, 2001, Red Hat, Inc. + * Copyright 2002, Kristian Rietveld + * + * Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +/* Most interesting code in this file is lifted from bfdutils.c + * and process.c from Memprof, + */ + #include #include "binfile.h" #include @@ -7,13 +33,6 @@ #include #include -/* All interesting code in this file is lifted from bfdutils.c - * and process.c from Memprof, - * - * FIXME: add copyrights - * - */ - static void bfd_nonfatal (const char *string); static void bfd_fatal (const char *string); diff --git a/binfile.h b/binfile.h index 782d639..f26b15b 100644 --- a/binfile.h +++ b/binfile.h @@ -1,3 +1,26 @@ +/* MemProf -- memory profiler and leak detector + * Copyright 1999, 2000, 2001, Red Hat, Inc. + * Copyright 2002, Kristian Rietveld + * + * Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #ifndef BIN_FILE_H #define BIN_FILE_H diff --git a/pixbufs.c b/pixbufs.c deleted file mode 100644 index ae70ae5..0000000 --- a/pixbufs.c +++ /dev/null @@ -1,216 +0,0 @@ -/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ - -#ifdef __SUNPRO_C -#pragma align 4 (stop_profiling) -#endif -#ifdef __GNUC__ -static const guint8 stop_profiling[] __attribute__ ((__aligned__ (4))) = -#else -static const guint8 stop_profiling[] = -#endif -{ "" - /* Pixbuf magic (0x47646b50) */ - "GdkP" - /* length: header (24) + pixel_data (1554) */ - "\0\0\6*" - /* pixdata_type (0x2010002) */ - "\2\1\0\2" - /* rowstride (192) */ - "\0\0\0\300" - /* width (48) */ - "\0\0\0""0" - /* height (48) */ - "\0\0\0""0" - /* pixel_data: */ - "\377\377\377\377\0\367\377\377\377\0\3\377\377\377[\377\377\377\315\377" - "\377\377\354\236\377\377\377\352\3\377\377\377\354\377\377\377\321\377" - "\377\377c\213\377\377\377\0\1\377\377\377^\244\377\377\377\377\1\377" - "\377\377h\212\377\377\377\0\1\377\377\377\317\244\377\377\377\377\1\377" - "\377\377\316\212\377\377\377\0\1\377\377\377\357\202\377\377\377\377" - "\2\247\247\247\377YYY\377\234ccc\377\2ZZZ\377\240\240\240\377\202\377" - "\377\377\377\1\377\377\377\352\212\377\377\377\0\1\377\377\377\360\202" - "\377\377\377\377\1mmm\377\236\0\0\0\377\1ccc\377\202\377\377\377\377" - "\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377" - "\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377" - "\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377" - "\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377" - "\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202" - "\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360" - "\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377" - "\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377" - "\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1oo" - "o\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212" - "\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0" - "\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377" - "\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc" - "\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377" - "\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377" - "\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202" - "\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377" - "\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377" - "\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377" - "\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377" - "\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377" - "\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202" - "\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360" - "\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377" - "\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377" - "\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1oo" - "o\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212" - "\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0" - "\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377" - "\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc" - "\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377" - "\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377" - "\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202" - "\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377" - "\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377" - "\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377" - "\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377" - "\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377" - "\1ccc\377\202\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202" - "\377\377\377\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360" - "\202\377\377\377\377\1ooo\377\236\0\0\0\377\1ccc\377\202\377\377\377" - "\377\1\377\377\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1nnn\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377" - "\377\353\212\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1nn" - "n\377\236\0\0\0\377\1ccc\377\202\377\377\377\377\1\377\377\377\354\212" - "\377\377\377\0\1\377\377\377\355\202\377\377\377\377\2\303\303\303\377" - "\217\217\217\377\234\226\226\226\377\2\220\220\220\377\277\277\277\377" - "\202\377\377\377\377\1\377\377\377\350\212\377\377\377\0\1\377\377\377" - "\276\244\377\377\377\377\1\377\377\377\300\212\377\377\377\0\2\377\377" - "\377@\377\377\377\363\242\377\377\377\377\2\377\377\377\370\377\377\377" - "J\213\377\377\377\0\3\377\377\3773\377\377\377\230\377\377\377\271\236" - "\377\377\377\267\3\377\377\377\271\377\377\377\234\377\377\3779\356\377" - "\377\377\0\2\252\252\252\0```\0\234iii\0\2```\0\243\243\243\0\220\377" - "\377\377\0\1mmm\0\236\0\0\0\0\1ccc\0\215\377\377\377\0\1\377\377\377" - "\10\202\377\377\377\11\1ooo\11\236\0\0\0\11\1ccc\11\202\377\377\377\11" - "\1\377\377\377\10\205\377\377\377\0"}; - - -/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ - -#ifdef __SUNPRO_C -#pragma align 4 (start_profiling) -#endif -#ifdef __GNUC__ -static const guint8 start_profiling[] __attribute__ ((__aligned__ (4))) = -#else -static const guint8 start_profiling[] = -#endif -{ "" - /* Pixbuf magic (0x47646b50) */ - "GdkP" - /* length: header (24) + pixel_data (1932) */ - "\0\0\7\244" - /* pixdata_type (0x2010002) */ - "\2\1\0\2" - /* rowstride (192) */ - "\0\0\0\300" - /* width (48) */ - "\0\0\0""0" - /* height (48) */ - "\0\0\0""0" - /* pixel_data: */ - "\377\377\377\377\0\317\377\377\377\0\2\377\377\377J\377\377\377\275\202" - "\377\377\377\337\3\377\377\377\345\377\377\377\311\377\377\377X\250\377" - "\377\377\0\2\377\377\377Q\377\377\377\373\206\377\377\377\377\1\377\377" - "\377x\247\377\377\377\0\1\377\377\377\314\210\377\377\377\377\1\377\377" - "\377\206\246\377\377\377\0\1\377\377\377\357\202\377\377\377\377\4\260" - "\260\260\377ddd\377\204\204\204\377\364\364\364\377\203\377\377\377\377" - "\1\377\377\377\206\245\377\377\377\0\1\377\377\377\360\202\377\377\377" - "\377\1qqq\377\202\0\0\0\377\2VVV\377\364\364\364\377\203\377\377\377" - "\377\2\377\377\377\212\377\377\377\1\243\377\377\377\0\1\377\377\377" - "\360\202\377\377\377\377\1qqq\377\203\0\0\0\377\2QQQ\377\365\365\365" - "\377\203\377\377\377\377\2\377\377\377\217\377\377\377\1\242\377\377" - "\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\204\0\0\0\377\2" - "KKK\377\360\360\360\377\203\377\377\377\377\2\377\377\377\231\377\377" - "\377\3\241\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377" - "\205\0\0\0\377\2AAA\377\354\354\354\377\203\377\377\377\377\2\377\377" - "\377\241\377\377\377\5\240\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1qqq\377\206\0\0\0\377\2AAA\377\354\354\354\377\203\377\377" - "\377\377\2\377\377\377\241\377\377\377\4\237\377\377\377\0\1\377\377" - "\377\360\202\377\377\377\377\1qqq\377\207\0\0\0\377\2@@@\377\347\347" - "\347\377\203\377\377\377\377\2\377\377\377\244\377\377\377\11\236\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\210\0\0\0\377" - "\2""999\377\343\343\343\377\203\377\377\377\377\2\377\377\377\257\377" - "\377\377\15\235\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1" - "qqq\377\211\0\0\0\377\2""222\377\341\341\341\377\203\377\377\377\377" - "\2\377\377\377\261\377\377\377\15\234\377\377\377\0\1\377\377\377\360" - "\202\377\377\377\377\1qqq\377\212\0\0\0\377\2,,,\377\334\334\334\377" - "\203\377\377\377\377\2\377\377\377\272\377\377\377\21\233\377\377\377" - "\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\213\0\0\0\377\2,,," - "\377\334\334\334\377\203\377\377\377\377\2\377\377\377\272\377\377\377" - "\21\232\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377" - "\214\0\0\0\377\2+++\377\326\326\326\377\203\377\377\377\377\2\377\377" - "\377\274\377\377\377\31\231\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1qqq\377\215\0\0\0\377\2\40\40\40\377\320\320\320\377\203\377" - "\377\377\377\2\377\377\377\311\377\377\377\33\230\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1qqq\377\216\0\0\0\377\2\37\37\37\377" - "\317\317\317\377\203\377\377\377\377\2\377\377\377\311\377\377\377\33" - "\227\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\217" - "\0\0\0\377\2\33\33\33\377\311\311\311\377\203\377\377\377\377\2\377\377" - "\377\317\377\377\377\33\226\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1qqq\377\220\0\0\0\377\2\33\33\33\377\311\311\311\377\203\377" - "\377\377\377\1\377\377\377\235\226\377\377\377\0\1\377\377\377\360\202" - "\377\377\377\377\1qqq\377\221\0\0\0\377\2\22\22\22\377\304\304\304\377" - "\202\377\377\377\377\1\377\377\377\332\226\377\377\377\0\1\377\377\377" - "\360\202\377\377\377\377\1qqq\377\221\0\0\0\377\2""000\377\333\333\333" - "\377\202\377\377\377\377\1\377\377\377\324\226\377\377\377\0\1\377\377" - "\377\360\202\377\377\377\377\1qqq\377\220\0\0\0\377\2:::\377\346\346" - "\346\377\203\377\377\377\377\1\377\377\377\207\226\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1qqq\377\217\0\0\0\377\2BBB\377\354" - "\354\354\377\203\377\377\377\377\2\377\377\377\250\377\377\377\7\226" - "\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\216\0\0" - "\0\377\2FFF\377\356\356\356\377\203\377\377\377\377\2\377\377\377\246" - "\377\377\377\6\227\377\377\377\0\1\377\377\377\360\202\377\377\377\377" - "\1qqq\377\215\0\0\0\377\2PPP\377\356\356\356\377\203\377\377\377\377" - "\2\377\377\377\235\377\377\377\7\230\377\377\377\0\1\377\377\377\360" - "\202\377\377\377\377\1qqq\377\214\0\0\0\377\2ZZZ\377\371\371\371\377" - "\203\377\377\377\377\2\377\377\377\220\377\377\377\1\231\377\377\377" - "\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\213\0\0\0\377\2]]]" - "\377\371\371\371\377\203\377\377\377\377\1\377\377\377\213\233\377\377" - "\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\212\0\0\0\377\2" - "iii\377\374\374\374\377\203\377\377\377\377\1\377\377\377\177\234\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\211\0\0\0\377" - "\1ttt\377\204\377\377\377\377\1\377\377\377t\235\377\377\377\0\1\377" - "\377\377\360\202\377\377\377\377\1qqq\377\210\0\0\0\377\1\203\203\203" - "\377\203\377\377\377\377\2\377\377\377\370\377\377\377i\236\377\377\377" - "\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\207\0\0\0\377\1\213" - "\213\213\377\203\377\377\377\377\2\377\377\377\371\377\377\377^\237\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\206\0\0\0\377" - "\1\216\216\216\377\203\377\377\377\377\2\377\377\377\367\377\377\377" - "Z\240\377\377\377\0\1\377\377\377\360\202\377\377\377\377\1qqq\377\204" - "\0\0\0\377\2\2\2\2\377\230\230\230\377\203\377\377\377\377\2\377\377" - "\377\363\377\377\377Q\241\377\377\377\0\1\377\377\377\360\202\377\377" - "\377\377\1qqq\377\203\0\0\0\377\2\10\10\10\377\242\242\242\377\203\377" - "\377\377\377\2\377\377\377\361\377\377\377L\242\377\377\377\0\1\377\377" - "\377\360\202\377\377\377\377\1qqq\377\202\0\0\0\377\2\15\15\15\377\251" - "\251\251\377\203\377\377\377\377\2\377\377\377\350\377\377\377A\243\377" - "\377\377\0\1\377\377\377\360\202\377\377\377\377\4vvv\377\0\0\0\377\22" - "\22\22\377\261\261\261\377\203\377\377\377\377\2\377\377\377\347\377" - "\377\377:\244\377\377\377\0\1\377\377\377\350\202\377\377\377\377\3\352" - "\352\352\377\325\325\325\377\344\344\344\377\203\377\377\377\377\2\377" - "\377\377\344\377\377\3777\245\377\377\377\0\1\377\377\377\236\207\377" - "\377\377\377\2\377\377\377\336\377\377\377/\204\377\377\377\0\1\376\376" - "\376\0\241\377\377\377\0\2\377\377\377\27\377\377\377\302\205\377\377" - "\377\377\2\377\377\377\317\377\377\377&\203\377\377\377\0\3\364\364\364" - "\0\211\211\211\0\216\216\216\0\242\377\377\377\0\7\377\377\377\14\377" - "\377\377S\377\377\377s\377\377\377r\377\377\377v\377\377\377\\\377\377" - "\377\21\202\377\377\377\0\5\353\353\353\0\214\214\214\0%%%\0\0\0\0\0" - "eee\0\251\377\377\377\0\3\353\353\353\0\212\212\212\0\33\33\33\0\203" - "\0\0\0\0\1fff\0\244\377\377\377\0\6\327\327\327\0\263\263\263\0\267\267" - "\267\0\247\247\247\0ttt\0\31\31\31\0\205\0\0\0\0\1fff\0\244\377\377\377" - "\0\1qqq\0\212\0\0\0\0\1fff\0\241\377\377\377\0\1\377\377\377\10\202\377" - "\377\377\11\1qqq\11\212\0\0\0\11\1fff\11\203\377\377\377\11\2\377\377" - "\377\12\377\377\377\4\217\377\377\377\0"}; - - diff --git a/process.c b/process.c index c9c939a..50fd3bf 100644 --- a/process.c +++ b/process.c @@ -1,3 +1,25 @@ +/* MemProf -- memory profiler and leak detector + * Copyright 1999, 2000, 2001, Red Hat, Inc. + * Copyright 2002, Kristian Rietveld + * + * Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004-2005 Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include #include #include @@ -6,10 +28,6 @@ #include "process.h" #include "binfile.h" -/* FIXME: All the interesting stuff in this file is from memprof - * and copyright Red Hat. - */ - /* FIXME: this should be done with getpagesize() */ #define PAGE_SIZE 4096 diff --git a/process.h b/process.h index d72f6aa..6ad1eba 100644 --- a/process.h +++ b/process.h @@ -1,3 +1,26 @@ +/* MemProf -- memory profiler and leak detector + * Copyright 1999, 2000, 2001, Red Hat, Inc. + * Copyright 2002, Kristian Rietveld + * + * Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #ifndef PROCESS_H #define PROCESS_H diff --git a/profile.c b/profile.c index bcdf82d..6efe980 100644 --- a/profile.c +++ b/profile.c @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/profile.h b/profile.h index a35abb8..edc1c45 100644 --- a/profile.h +++ b/profile.h @@ -1,5 +1,6 @@ -/* MemProf -- memory profiler and leak detector - * Copyright 2002, Soeren Sandmann (sandmann@daimi.au.dk) +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann * * 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 @@ -15,7 +16,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*====*/ #include #include "binfile.h" diff --git a/sfile.c b/sfile.c index 8471abf..d91d5c6 100644 --- a/sfile.c +++ b/sfile.c @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- */ #include diff --git a/sfile.h b/sfile.h index a7abec6..042fe8f 100644 --- a/sfile.h +++ b/sfile.h @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + typedef struct SFormat SFormat; typedef struct SFileInput SFileInput; typedef struct SFileOutput SFileOutput; diff --git a/stackstash.c b/stackstash.c index 5f88ea1..1d1803d 100644 --- a/stackstash.c +++ b/stackstash.c @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include "stackstash.h" typedef struct StackNode StackNode; diff --git a/stackstash.h b/stackstash.h index 690f16d..aa058e1 100644 --- a/stackstash.h +++ b/stackstash.h @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #ifndef STACK_STASH_H #define STACK_STASH_H diff --git a/sysprof-module.c b/sysprof-module.c index 42a0392..f878411 100644 --- a/sysprof-module.c +++ b/sysprof-module.c @@ -1,5 +1,24 @@ /* -*- c-basic-offset: 8 -*- */ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include #ifdef CONFIG_SMP # define __SMP__ diff --git a/sysprof-module.h b/sysprof-module.h index 7480cf5..6d6255e 100644 --- a/sysprof-module.h +++ b/sysprof-module.h @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #ifndef SYSPROF_MODULE_H #define SYSPROF_MODULE_H diff --git a/sysprof.c b/sysprof.c index 96dc9fb..51b6953 100644 --- a/sysprof.c +++ b/sysprof.c @@ -1,3 +1,22 @@ +/* Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, Red Hat, Inc. + * Copyright 2004, 2005, Soeren Sandmann + * + * 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/treeviewutils.c b/treeviewutils.c index 9217ed3..2eee1d2 100644 --- a/treeviewutils.c +++ b/treeviewutils.c @@ -2,7 +2,10 @@ /* MemProf -- memory profiler and leak detector * Copyright 2002, Soeren Sandmann (sandmann@daimi.au.dk) - * Copyright 2003, Red Hat, Inc. + * Copyright 2003, 2004, Red Hat, Inc. + * + * Sysprof -- Sampling, systemwide CPU profiler + * Copyright 2004, 2005, Soeren Sandmann * * 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 diff --git a/treeviewutils.h b/treeviewutils.h index c722990..908a22c 100644 --- a/treeviewutils.h +++ b/treeviewutils.h @@ -2,7 +2,7 @@ /* MemProf -- memory profiler and leak detector * Copyright 2002, Soeren Sandmann (sandmann@daimi.au.dk) - * Copyright 2003, Red Hat, Inc. + * Copyright 2003, 2004, Red Hat, Inc. * * 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 diff --git a/watch.h b/watch.h index eb69c9e..78bac2d 100644 --- a/watch.h +++ b/watch.h @@ -1,3 +1,21 @@ +/* - Library for asynchronous communication + * Copyright (C) 2002 Søren Sandmann (sandmann@daimi.au.dk) + * + * This library 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 2 of the License, or + * (at your option) any later version. + * + * This library 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 library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include /*