GPL headers only into executables and main module
GPL license does not require all files to have the copyright notice and header. To save some space, I removed the headers from all files except the executables and the main Python module.
This commit is contained in:
parent
000e82f258
commit
a49f53e60f
18 changed files with 72 additions and 176 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* malloc_trim_ldp: A ld-preload library that can be used to potentially
|
||||
* save memory (especially for long running larger apps).
|
||||
*
|
||||
* Copyright (C) 2008, 2009 Red Hat, Inc.
|
||||
* Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
* Authors: Phil Knirsch
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python -Es
|
||||
#
|
||||
# Copyright (C) 2012 Red Hat, Inc.
|
||||
# Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
# Authors: Jan Kaluza <jkaluza@redhat.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* varcpuload: Simple tool to create reproducable artifical sustained load on
|
||||
* a machine.
|
||||
*
|
||||
* Copyright (C) 2008, 2009 Red Hat, Inc.
|
||||
* Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
* Authors: Phil Knirsch
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
|
|
|||
|
|
@ -1,23 +1,21 @@
|
|||
#!/usr/bin/stap
|
||||
# Copyright (C) 2008, 2009 Red Hat, Inc.
|
||||
#
|
||||
# Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
# Authors: Phil Knirsch
|
||||
#
|
||||
# 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.
|
||||
# 51 Franklin Street, Fifth Floor
|
||||
# Boston, MA 02110-1301, USA.
|
||||
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
global ifavg, iflast, rtime, interval, duration, histogram
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/stap
|
||||
# Copyright (C) 2008, 2009 Red Hat, Inc.
|
||||
#
|
||||
# Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
# Authors: Phil Knirsch
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
|
|
@ -13,11 +14,8 @@
|
|||
# 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:
|
||||
#
|
||||
# Free Software Foundation, Inc.
|
||||
# 51 Franklin Street, Fifth Floor
|
||||
# Boston, MA 02110-1301, USA.
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
global ifavg, iflast, rtime, interval, duration, histogram
|
||||
|
|
|
|||
|
|
@ -1,4 +1,21 @@
|
|||
#!/usr/bin/stap
|
||||
#
|
||||
# Copyright (C) 2008-2012 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
# ===================================================================
|
||||
# Do this when we have started
|
||||
|
|
|
|||
|
|
@ -1,18 +1,8 @@
|
|||
#!/usr/bin/python -Es
|
||||
#
|
||||
# varnetload: A python script to create reproducable sustained network traffic
|
||||
#
|
||||
# Usage: varnetload [-d delay in milliseconds] [-t runtime in seconds] [-u URL]
|
||||
#
|
||||
# Howto use it:
|
||||
# - In order to effectively use it you need to have a http server in your local
|
||||
# LAN where you can put files.
|
||||
# - Upload a large HTML (or any other kind of file) to the http server.
|
||||
# - Use the -u option of the script to point to that URL
|
||||
# - Play with the delay option to vary the load put on your network. Typical
|
||||
# useful values range from 0 to 500.
|
||||
#
|
||||
# Copyright (C) 2009 Red Hat, Inc.
|
||||
|
||||
# Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
# Authors: Phil Knirsch
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
|
|
@ -26,11 +16,19 @@
|
|||
# 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:
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# Free Software Foundation, Inc.
|
||||
# 51 Franklin Street, Fifth Floor
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# Usage: varnetload [-d delay in milliseconds] [-t runtime in seconds] [-u URL]
|
||||
#
|
||||
# Howto use it:
|
||||
# - In order to effectively use it you need to have a http server in your local
|
||||
# LAN where you can put files.
|
||||
# - Upload a large HTML (or any other kind of file) to the http server.
|
||||
# - Use the -u option of the script to point to that URL
|
||||
# - Play with the delay option to vary the load put on your network. Typical
|
||||
# useful values range from 0 to 500.
|
||||
#
|
||||
|
||||
import time, getopt, sys
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/python -Es
|
||||
#
|
||||
# tuned-adm: A command line utility for switching between user
|
||||
# definable tuning profiles.
|
||||
# tuned: daemon for monitoring and adaptive tuning of system devices
|
||||
#
|
||||
# Copyright (C) 2008-2012 Red Hat, Inc.
|
||||
#
|
||||
|
|
|
|||
5
tuned.py
5
tuned.py
|
|
@ -1,9 +1,8 @@
|
|||
#!/usr/bin/python -Es
|
||||
#
|
||||
# tuned: A simple daemon that performs monitoring and adaptive configuration
|
||||
# of devices in the system
|
||||
# tuned: daemon for monitoring and adaptive tuning of system devices
|
||||
#
|
||||
# Copyright (C) 2008-2011 Red Hat, Inc.
|
||||
# Copyright (C) 2008-2012 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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# tuned: daemon for monitoring and adaptive tuning of system devices
|
||||
#
|
||||
# Copyright (C) 2008-2012 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
__copyright__ = "Copyright 2008-2012 Red Hat, Inc."
|
||||
__license__ = "GPL"
|
||||
__email__ = "power-management@lists.fedoraproject.org"
|
||||
|
|
@ -1,27 +1,10 @@
|
|||
# Copyright (C) 2008-2012 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
__all__ = ["Controller"]
|
||||
|
||||
from tuned import exports
|
||||
import tuned.logs
|
||||
import tuned.exceptions
|
||||
import threading
|
||||
|
||||
__all__ = ["Controller"]
|
||||
|
||||
log = tuned.logs.get()
|
||||
|
||||
class Controller(tuned.exports.interfaces.ExportableInterface):
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2011 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import os
|
||||
import threading
|
||||
import tuned.logs
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2011 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import interfaces
|
||||
import inspect
|
||||
import tuned.patterns
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2011 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import interfaces
|
||||
import decorator
|
||||
import dbus.service
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2011 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
class ExportableInterface(object):
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2011 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import atexit
|
||||
import logging
|
||||
import logging.handlers
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2012 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
__all__ = ["command_set", "command_get"]
|
||||
|
||||
# @command_set("scheduler", per_device=True)
|
||||
|
|
|
|||
|
|
@ -1,20 +1,3 @@
|
|||
# Copyright (C) 2008-2012 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import tuned.logs
|
||||
|
||||
import copy
|
||||
|
|
|
|||
Loading…
Reference in a new issue