summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-12-07 20:43:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2007-12-07 20:46:57 +0000
commit15176c0fddca6792a6ea6dc71946953746f52815 (patch)
tree6168422766b368a8236de7dd0bc03f2cb3e6954b
parentcb35eb4b421cc9a26e53296f49e3922a0aa5e5c7 (diff)
Add my copyright to the minibfd having made substantial changes.
-rw-r--r--src/minibfd/binfile.c50
-rw-r--r--src/minibfd/binfile.h52
-rw-r--r--src/minibfd/binparser.c43
-rw-r--r--src/minibfd/binparser.h46
-rw-r--r--src/minibfd/elfparser.c47
-rw-r--r--src/minibfd/elfparser.h47
6 files changed, 170 insertions, 115 deletions
diff --git a/src/minibfd/binfile.c b/src/minibfd/binfile.c
index f03baca..f8e38a4 100644
--- a/src/minibfd/binfile.c
+++ b/src/minibfd/binfile.c
@@ -1,24 +1,32 @@
-/* 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, 2006, 2007, 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ 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, 2006, 2007, Soeren Sandmann
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
/* Most interesting code in this file is lifted from bfdutils.c
* and process.c from Memprof,
diff --git a/src/minibfd/binfile.h b/src/minibfd/binfile.h
index e8550d5..6ac1a17 100644
--- a/src/minibfd/binfile.h
+++ b/src/minibfd/binfile.h
@@ -1,25 +1,33 @@
-/* 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ 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
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
#ifndef BIN_FILE_H
#define BIN_FILE_H
diff --git a/src/minibfd/binparser.c b/src/minibfd/binparser.c
index cef1807..ec7c797 100644
--- a/src/minibfd/binparser.c
+++ b/src/minibfd/binparser.c
@@ -1,20 +1,29 @@
-/* Sysprof -- Sampling, systemwide CPU profiler
- * Copyright 2006, 2007, 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ Sysprof -- Sampling, systemwide CPU profiler
+ Copyright 2006, 2007, Soeren Sandmann
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/src/minibfd/binparser.h b/src/minibfd/binparser.h
index bb135a7..a642f86 100644
--- a/src/minibfd/binparser.h
+++ b/src/minibfd/binparser.h
@@ -1,20 +1,29 @@
-/* Sysprof -- Sampling, systemwide CPU profiler
- * Copyright 2006, 2007, 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ Sysprof -- Sampling, systemwide CPU profiler
+ Copyright 2006, 2007, Soeren Sandmann
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
#ifndef BINPARSER_H
#define BINPARSER_H
@@ -114,6 +123,7 @@ enum {
e_shnum,
e_shstrndx
};
+
enum {
sh_name = 0,
sh_type,
@@ -126,6 +136,7 @@ enum {
sh_addralign,
sh_entsize
};
+
enum {
st_name = 0,
st_info,
@@ -134,6 +145,7 @@ enum {
st_value,
st_size
};
+
BinRecord * bin_parser_create_record (BinParser *parser,
const BinField *fields);
gsize bin_record_get_size (BinRecord *record);
diff --git a/src/minibfd/elfparser.c b/src/minibfd/elfparser.c
index bbe698f..bcf40d5 100644
--- a/src/minibfd/elfparser.c
+++ b/src/minibfd/elfparser.c
@@ -1,24 +1,29 @@
-/* odin
- * Copyright 2007 Chris Wilson
- *
- * Based on:
- * Sysprof -- Sampling, systemwide CPU profiler
- * Copyright 2006, 2007, 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ Sysprof -- Sampling, systemwide CPU profiler
+ Copyright 2006, 2007, Soeren Sandmann
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
#include <stdlib.h>
#include <string.h>
#include <elf.h>
diff --git a/src/minibfd/elfparser.h b/src/minibfd/elfparser.h
index 1ccc0f4..cef38bd 100644
--- a/src/minibfd/elfparser.h
+++ b/src/minibfd/elfparser.h
@@ -1,20 +1,33 @@
-/* Sysprof -- Sampling, systemwide CPU profiler
- * Copyright 2006, 2007, 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.
- */
+/*
+ This file is part of odin, a memory profiler with fragmentation analysis.
+
+ Copyright (C) 2007 Chris Wilson <chris@chris-wilson.co.uk>
+
+ Based on:
+ MemProf -- memory profiler and leak detector
+ Copyright 1999, 2000, 2001, Red Hat, Inc.
+ Copyright 2002, Kristian Rietveld
+
+ Sysprof -- Sampling, systemwide CPU profiler
+ Copyright 2006, 2007, Soeren Sandmann
+
+
+ odin 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.
+
+ odin 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 odin. If not, see <http://www.gnu.org/licenses/>/
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
#ifndef ELFPARSER_H
#define ELFPARSER_H