+Sat Apr 9 17:04:50 2005 Søren Sandmann <sandmann@redhat.com>
+
+ * Makefile: Remove debug spew
+
+ * *: Add copyright notices
+
Fri Apr 8 21:30:02 2005 Søren Sandmann <sandmann@redhat.com>
* TODO: More updates
# if kernel 2.6
$(MODULE).o: $(MODULE).c
- echo birnan $(MODCFLAGS)
+# echo modcflags $(MODCFLAGS)
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
else
+/* 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 <glib.h>
#include "binfile.h"
#include <bfd.h>
#include <fcntl.h>
#include <stdio.h>
-/* 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);
+/* 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
+++ /dev/null
-/* 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"};
-
-
+/* 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 <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#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
+/* 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
+/* 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 <glib.h>
#include <stdlib.h>
#include <string.h>
-/* 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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*====*/
#include <glib.h>
#include "binfile.h"
+/* 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 <stdarg.h>
+/* 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;
+/* 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;
+/* 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
/* -*- 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 <linux/config.h>
#ifdef CONFIG_SMP
# define __SMP__
+/* 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
+/* 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 <stdio.h>
#include <gtk/gtk.h>
#include <stdlib.h>
/* 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
/* 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
+/* - 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 <glib.h>
/*