Author: marek
Date: 2010-06-25 23:59:18 +0200 (Fri, 25 Jun 2010)
New Revision: 1726
Modified:
trunk/batman-adv/main.c
Log:
batman-adv: fix early debugfs deinitialization
The debugfs files are initialized at load time only but would get
deinitialized when the module changed in it deactivate (sleeping)
state. As a consequence the debugfs files are not accessible
anymore.
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>
Modified: trunk/batman-adv/main.c
===================================================================
--- trunk/batman-adv/main.c 2010-06-24 15:57:29 UTC (rev 1725)
+++ trunk/batman-adv/main.c 2010-06-25 21:59:18 UTC (rev 1726)
@@ -144,6 +144,7 @@
{
deactivate_module();
+ debugfs_destroy();
unregister_netdevice_notifier(&hard_if_notifier);
hardif_remove_interfaces();
@@ -209,7 +210,6 @@
hna_global_free();
synchronize_net();
- debugfs_destroy();
synchronize_rcu();
atomic_set(&module_state, MODULE_INACTIVE);
The tag, GregKH-20100625 has been created
at f2204f0631662cc7431fb06c7897ac58df8e4b89 (commit)
- Shortlog ------------------------------------------------------------
commit f2204f0631662cc7431fb06c7897ac58df8e4b89
Merge: 89b7f22 9ec2d8f
Author: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Date: Fri Jun 25 23:08:01 2010 +0200
Merge branch 'maint' into linux
Conflicts:
drivers/staging/batman-adv/Makefile
drivers/staging/batman-adv/Makefile.kbuild
drivers/staging/batman-adv/compat.h
-----------------------------------------------------------------------
--
linux integration
Author: marek
Date: 2010-06-24 17:57:29 +0200 (Thu, 24 Jun 2010)
New Revision: 1725
Modified:
trunk/batctl/main.h
Log:
batctl: adapting source version to revised versioning scheme
The new versioning scheme looks like this:
* the trunk will simply be named "devel" followed by a revision number
* the upcoming release branch will be "maint" followed by a revision
number
* the releases will carry their respective names (e.g. 2010.0.0)
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>
Modified: trunk/batctl/main.h
===================================================================
--- trunk/batctl/main.h 2010-06-24 15:57:28 UTC (rev 1724)
+++ trunk/batctl/main.h 2010-06-24 15:57:29 UTC (rev 1725)
@@ -21,6 +21,6 @@
-#define SOURCE_VERSION "0.3.0-alpha" /*put exactly one distinct word inside the string like "0.3-pre-alpha" or "0.3-rc1" or "0.3" */
+#define SOURCE_VERSION "devel" /*put exactly one distinct word inside the string like "0.3-pre-alpha" or "0.3-rc1" or "0.3" */
#define SOCKET_PATH "batman_adv/bat0/socket"
Author: marek
Date: 2010-06-24 17:57:28 +0200 (Thu, 24 Jun 2010)
New Revision: 1724
Modified:
trunk/batman-adv/main.h
Log:
batman-adv: adapting source version to revised versioning scheme
The new versioning scheme looks like this:
* the trunk will simply be named "devel" followed by a revision number
* the upcoming release branch will be "maint" followed by a revision
number
* the releases will carry their respective names (e.g. 2010.0.0)
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>
Modified: trunk/batman-adv/main.h
===================================================================
--- trunk/batman-adv/main.h 2010-06-24 15:36:27 UTC (rev 1723)
+++ trunk/batman-adv/main.h 2010-06-24 15:57:28 UTC (rev 1724)
@@ -30,7 +30,7 @@
#define DRIVER_DESC "B.A.T.M.A.N. advanced"
#define DRIVER_DEVICE "batman-adv"
-#define SOURCE_VERSION "0.3.0-alpha"
+#define SOURCE_VERSION "devel"
/* B.A.T.M.A.N. parameters */
Author: marek
Date: 2010-06-24 17:36:27 +0200 (Thu, 24 Jun 2010)
New Revision: 1723
Modified:
trunk/batman-adv/Makefile
trunk/batman-adv/Makefile.kbuild
Log:
batman-adv: Add support for git revision string
The Makefile tries to find a version number which describes the state of
the version somebody compiles. Currently this can only be a subversion
revision. This must also be done for git as it is used to prepare the
actual releases.
The revision string consists of 4 parts:
1. last annotated tag name
2. number of commits inbetween last tag name and this commit
3. shortened sha1 sum of the commit
4. indicator whether the files where modified
The first part is only shown when there was a tag before the commit or
the current commit was tagged. Part two and three is only shown when the
current commit is not tagged. The indicator is also only shown when the
files were modified.
This should make it quite easy understandable for humans and still makes
it possible to find the commit in the repository using standard git
tools (for that purpose the "-dirty" string must be ommited).
A full example would be v2010.0.0-25-gdc3f30c-dirty
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batman-adv/Makefile
===================================================================
--- trunk/batman-adv/Makefile 2010-06-24 15:36:26 UTC (rev 1722)
+++ trunk/batman-adv/Makefile 2010-06-24 15:36:27 UTC (rev 1723)
@@ -29,17 +29,25 @@
export KERNELPATH
-REVISION= $(shell if [ -d .svn ]; then \
- if which svn > /dev/null; then \
- svn info | grep "Rev:" | sed -e '1p' -n | awk '{print $$4}'; \
- fi; \
- else \
- if [ -d ~/.svk ]; then \
- if which svk > /dev/null; then \
- echo $$(svk info | grep "Mirrored From" | awk '{print $$5}'); \
- fi; \
- fi; \
- fi)
+REVISION= $(shell if [ -d .svn ]; then \
+ if which svn > /dev/null; then \
+ echo rv$$(svn info | grep "Rev:" | sed -e '1p' -n | awk '{print $$4}'); \
+ else \
+ echo "[unknown]"; \
+ fi; \
+ elif [ -d .git ]; then \
+ if which git > /dev/null; then \
+ echo $$(git describe --always --dirty 2> /dev/null); \
+ else \
+ echo "[unknown]"; \
+ fi; \
+ elif [ -d ~/.svk ]; then \
+ if which svk > /dev/null; then \
+ echo rv$$(svk info | grep "Mirrored From" | awk '{print $$5}'); \
+ else \
+ echo "[unknown]"; \
+ fi; \
+ fi)
NUM_CPUS = $(shell nproc 2> /dev/null || echo 1)
Modified: trunk/batman-adv/Makefile.kbuild
===================================================================
--- trunk/batman-adv/Makefile.kbuild 2010-06-24 15:36:26 UTC (rev 1722)
+++ trunk/batman-adv/Makefile.kbuild 2010-06-24 15:36:27 UTC (rev 1723)
@@ -28,7 +28,7 @@
# EXTRA_CFLAGS += -DCONFIG_BATMAN_ADV_DEBUG
ifneq ($(REVISION),)
-EXTRA_CFLAGS += -DREVISION_VERSION=\"r$(REVISION)\"
+EXTRA_CFLAGS += -DREVISION_VERSION=\"$(REVISION)\"
endif
obj-m += batman-adv.o
Author: marek
Date: 2010-06-24 17:36:26 +0200 (Thu, 24 Jun 2010)
New Revision: 1722
Modified:
trunk/batctl/Makefile
Log:
batctl: Add support for git revision string
The Makefile tries to find a version number which describes the state of
the version somebody compiles. Currently this can only be a subversion
revision. This must also be done for git as it is used to prepare the
actual releases.
The revision string consists of 4 parts:
1. last annotated tag name
2. number of commits inbetween last tag name and this commit
3. shortened sha1 sum of the commit
4. indicator whether the files where modified
The first part is only shown when there was a tag before the commit or
the current commit was tagged. Part two and three is only shown when the
current commit is not tagged. The indicator is also only shown when the
files were modified.
This should make it quite easy understandable for humans and still makes
it possible to find the commit in the repository using standard git
tools (for that purpose the "-dirty" string must be ommited).
A full example would be v2010.0.0-15-g154f68a-dirty
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batctl/Makefile
===================================================================
--- trunk/batctl/Makefile 2010-06-24 15:22:06 UTC (rev 1721)
+++ trunk/batctl/Makefile 2010-06-24 15:36:26 UTC (rev 1722)
@@ -47,23 +47,27 @@
BINARY_NAME = batctl
SOURCE_VERSION_HEADER = main.h
-REVISION = $(shell if [ -d .svn ]; then \
- if which svn > /dev/null; then \
- svn info | grep "Rev:" | sed -e '1p' -n | awk '{print $$4}'; \
- else \
- echo "[unknown]"; \
- fi ; \
+REVISION= $(shell if [ -d .svn ]; then \
+ if which svn > /dev/null; then \
+ echo rv$$(svn info | grep "Rev:" | sed -e '1p' -n | awk '{print $$4}'); \
else \
- if [ -d ~/.svk ]; then \
- if which svk > /dev/null; then \
- echo $$(svk info | grep "Mirrored From" | awk '{print $$5}'); \
- else \
- echo "[unknown]"; \
- fi; \
- fi; \
- fi)
+ echo "[unknown]"; \
+ fi; \
+ elif [ -d .git ]; then \
+ if which git > /dev/null; then \
+ echo $$(git describe --always --dirty 2> /dev/null); \
+ else \
+ echo "[unknown]"; \
+ fi; \
+ elif [ -d ~/.svk ]; then \
+ if which svk > /dev/null; then \
+ echo rv$$(svk info | grep "Mirrored From" | awk '{print $$5}'); \
+ else \
+ echo "[unknown]"; \
+ fi; \
+ fi)
-REVISION_VERSION =\"\ rv$(REVISION)\"
+REVISION_VERSION =\"\ $(REVISION)\"
BAT_VERSION = $(shell grep "^\#define SOURCE_VERSION " $(SOURCE_VERSION_HEADER) | sed -e '1p' -n | awk -F '"' '{print $$2}' | awk '{print $$1}')
FILE_NAME = $(PACKAGE_NAME)_$(BAT_VERSION)-rv$(REVISION)_$@
Author: marek
Date: 2010-06-24 17:03:14 +0200 (Thu, 24 Jun 2010)
New Revision: 1720
Modified:
trunk/batctl/Makefile
Log:
batctl:Use nproc to get number of available processors
The current way of getting the number of cpus uses different assumptions which
may or may not be true in the future:
* /proc/cpuinfo exists
* cpuinfo provides a list of all processing units
* all processing units are available for the current process and its childs
* the word 'processor' is only used in the cpu index and 'model name' lines
* cpu index is strict monotonic increasing
* lowest cpu index is 0 and highest cpu index is n-1 (n is the number of
processing units)
At least the number of available processing units for the current process can
be shown to be wrong. on current systems by assigning a singe cpu to a process
and its childs:
$ numactl --physcpubind=0 nproc
1
$ numactl --physcpubind=0 sh -c 'NUM_CPUS=`cat /proc/cpuinfo | grep -v "model name" | grep processor | tail -1 | awk -F" " '\''{print $$3}'\''`;echo `expr $NUM_CPUS + 1`'
4
nproc is part of coreutils since version 8.1. On systems without nproc it will
just assume that a single processing unit is available.
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batctl/Makefile
===================================================================
--- trunk/batctl/Makefile 2010-06-24 15:03:13 UTC (rev 1719)
+++ trunk/batctl/Makefile 2010-06-24 15:03:14 UTC (rev 1720)
@@ -67,7 +67,7 @@
BAT_VERSION = $(shell grep "^\#define SOURCE_VERSION " $(SOURCE_VERSION_HEADER) | sed -e '1p' -n | awk -F '"' '{print $$2}' | awk '{print $$1}')
FILE_NAME = $(PACKAGE_NAME)_$(BAT_VERSION)-rv$(REVISION)_$@
-NUM_CPUS = $(shell NUM_CPUS=`cat /proc/cpuinfo | grep -v 'model name' | grep processor | tail -1 | awk -F' ' '{print $$3}'`;echo `expr $$NUM_CPUS + 1`)
+NUM_CPUS = $(shell nproc 2> /dev/null || echo 1)
all:
Author: marek
Date: 2010-06-24 17:03:13 +0200 (Thu, 24 Jun 2010)
New Revision: 1719
Modified:
trunk/batman-adv/Makefile
Log:
batman-adv: Use nproc to get number of available processors
The current way of getting the number of cpus uses different assumptions which
may or may not be true in the future:
* /proc/cpuinfo exists
* cpuinfo provides a list of all processing units
* all processing units are available for the current process and its childs
* the word 'processor' is only used in the cpu index and 'model name' lines
* cpu index is strict monotonic increasing
* lowest cpu index is 0 and highest cpu index is n-1 (n is the number of
processing units)
At least the number of available processing units for the current process can
be shown to be wrong. on current systems by assigning a singe cpu to a process
and its childs:
$ numactl --physcpubind=0 nproc
1
$ numactl --physcpubind=0 sh -c 'NUM_CPUS=`cat /proc/cpuinfo | grep -v "model name" | grep processor | tail -1 | awk -F" " '\''{print $$3}'\''`;echo `expr $NUM_CPUS + 1`'
4
nproc is part of coreutils since version 8.1. On systems without nproc it will
just assume that a single processing unit is available.
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batman-adv/Makefile
===================================================================
--- trunk/batman-adv/Makefile 2010-06-21 13:30:31 UTC (rev 1718)
+++ trunk/batman-adv/Makefile 2010-06-24 15:03:13 UTC (rev 1719)
@@ -41,7 +41,7 @@
fi; \
fi)
-NUM_CPUS = $(shell NUM_CPUS=`cat /proc/cpuinfo | grep -v 'model name' | grep processor | tail -1 | awk -F' ' '{print $$3}'`;echo `expr $$NUM_CPUS + 1`)
+NUM_CPUS = $(shell nproc 2> /dev/null || echo 1)
include $(PWD)/Makefile.kbuild
Author: marek
Date: 2010-06-21 15:30:31 +0200 (Mon, 21 Jun 2010)
New Revision: 1718
Removed:
branches/batctl-maint/
Log:
batctl: the batctl-maint branch was moved into the git repository
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>