Rabin Vincent [Wed, 22 Feb 2012 10:28:00 +0000 (15:58 +0530)]
staging: logger: hold mutex while removing reader
The readers list is traversed under the log->mutex lock
(for example from fix_up_readers()), but the deletion of
elements from this list is not being done under this lock.
Cc: Brian Swetland <swetland@google.com>
Cc: Dima Zavin <dima@android.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:34:28 +0000 (18:34 -0800)]
staging: android: logger: clarify non-update of w_off in do_write_log_from_user
Add comment to explain when w_off is not updated in case of failed second
fragment copy to buffer.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:32:02 +0000 (18:32 -0800)]
staging: android: logger: clarify code in clock_interval
Add commentary, rename the function and make the code easier to read.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:30:09 +0000 (18:30 -0800)]
staging: android: logger: reorder prepare_to_wait and mutex_lock
If mutex_lock waits, it will return in state TASK_RUNNING,
rubbing out the effect of prepare_to_wait().
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 18:37:57 +0000 (10:37 -0800)]
staging: android: logger: simplify and optimize get_entry_len
Make this code slightly easier to read, and eliminate calls
to sub-routines. Some of these were previously optimized away
by the compiler, but one memcpy was not.
In my testing, this makes the code about 20% smaller, and
has no sub-routine calls and no branches (on ARM).
v2 of this patch is, IMHO, easier to read than v1. Compared to
that patch it uses __u8 instead of unsigned char, for
consistency with the __u16 val data type, simplifies the
conditional expression, adds a another comment, and
moves a common statement out of the if.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tim Bird [Wed, 8 Feb 2012 02:26:38 +0000 (18:26 -0800)]
staging: android: logger: Change logger_offset() from macro to function
Convert to function and add log as a parameter, rather than relying
on log in the context of the macro.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Marco Navarra [Thu, 15 Dec 2011 16:57:48 +0000 (17:57 +0100)]
Staging: android: fixed white spaces coding style issue in logger.c
This patch fixes some space-before-tabs warnings found by checkpatch tool on the staging android driver file logger.c
Signed-off-by: Marco Navarra <fromenglish@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
JP Abgrall [Fri, 12 Aug 2011 04:33:35 +0000 (21:33 -0700)]
android: logger: bump up the logger buffer sizes
(port from common android-2.6.39
commit:
11430f16545205c614dd5bd58e4a7ee630fc0f9f)
events: (no change, 256)
main: 64 -> 256
radio: 64 -> 256
system: 64 -> 256
Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
San Mehat [Wed, 24 Feb 2010 00:09:47 +0000 (16:09 -0800)]
android: logger: Add new system log for framework/system log messages
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Colin Cross [Thu, 15 Apr 2010 22:21:51 +0000 (15:21 -0700)]
android-common: Fix slab.h includes for 2.6.34-rc4
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I70de900e1619bacf3b30786969c7b5b124ed8b2d
Corentin Chary [Sat, 28 Nov 2009 08:45:14 +0000 (09:45 +0100)]
staging/android: fix build issues
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I3ed871c7853a409bd40d16ba6ba7a33283e6c2be
Greg Kroah-Hartman [Tue, 12 May 2009 00:00:41 +0000 (17:00 -0700)]
Staging: android: logger: fix up remaining checkpatch warnings
This cleans up the last of the checkpatch warnings in the android logger
driver.
Cc: San Mehat <san@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Robert Love [Sat, 20 Dec 2008 02:02:58 +0000 (18:02 -0800)]
Staging: android: add logging driver
Signed-off-by: Robert Love <rlove@google.com>
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: I8faa961fe84d9a88bade728746a0e396f13037a7
Tizen Infrastructure [Mon, 12 Apr 2021 02:24:46 +0000 (02:24 +0000)]
Initial empty repository
Seung-Woo Kim [Fri, 19 Feb 2021 05:43:43 +0000 (14:43 +0900)]
Support Linux kernel v5.10
To support LTS Kernel version v5.10, fix parameter for
proc_create().
Change-Id: Ie6c94fdc31000455aae5d7648f7a393cb791e89b
Ref: v5.6 commit
d56c0d45f0e2 ("proc: decouple proc from VFS with "struct proc_ops"")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 15 Jan 2021 03:05:07 +0000 (12:05 +0900)]
Makefile: support cross compile
For local build, support cross compile.
Change-Id: I04c850e246e12b6816da25743ac2e2274adbe1af
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Konrad Kuchciak [Fri, 18 Dec 2020 09:28:57 +0000 (10:28 +0100)]
Release 6.4.0
Change-Id: I61a1b7b4f93d656ad209da4aff31d6d7f32fe85e
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Seung-Woo Kim [Tue, 15 Dec 2020 10:43:51 +0000 (19:43 +0900)]
Support Linux kernel earilier version than v4.9
From Linux kernel v4.9, seq_put_decimal_ll() changes its delimiter
argument to const char * instead of char. Support older version.
Change-Id: I1e6b74aad5b536cd6aade0b8f1b74613e20309b8
Ref: v4.9 commit
75ba1d07fd6a ("seq/proc: modify seq_put_decimal_[u]ll to take a const char *, not char")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 11 Dec 2020 04:21:38 +0000 (13:21 +0900)]
Support Linux kernel earilier version than v4.11
From Linux kernel 4.11, sched header is splited and cputime_t is
fixed as u64. Before the kernel version, do not use splitter
headers and use cputime_t for task_cputime_adjusted().
Change-Id: Iac5d4e1d89366c54a59cc3092afd56f2df01918b
Ref: v4.11 commit
1050b27c52f6 ("sched/headers: Move cputime functionality from <linux/sched.h> and <linux/cputime.h> into <linux/sched/cputime.h>")
Ref: v4.11 commit
c3edc4010e9d ("sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>")
Ref: v4.11 commit
5613fda9a503 ("sched/cputime: Convert task/group cputime to nsecs")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 15 Dec 2020 06:49:50 +0000 (15:49 +0900)]
Support linux kernel earlier than 4.17 for security_cred_getsecid()
Earlier than Linux v4.17, there was no security_cred_getsecid()
and it is used to get secid for task. For the earlier kernel, use
security_task_getsecid() instead.
Change-Id: I7a6284adf4f316efb124a5659a1458adc0b85d1f
Ref: v4.17 commit
3ec30113264a ("security: Add a cred_getsecid hook")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 15 Dec 2020 05:59:47 +0000 (14:59 +0900)]
Report task io only when CONFIG_TASK_IO_ACCOUNTING is enabled
If kernel does not have CONFIG_TASK_IO_ACCOUNTING, then it is not
possbile to support task io usage. Reporting task io only when
kernel has CONFIG_TASK_IO_ACCOUNTING, otherwise just report 0.
Change-Id: I9b55c9bb85ae3b8900c04564481de7cef249289b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Konrad Kuchciak [Fri, 3 Jul 2020 10:05:36 +0000 (12:05 +0200)]
Release 6.3.1
Change-Id: I0312e33d9d31af85816ecab1d0f3719449ce376d
Seung-Woo Kim [Wed, 1 Jul 2020 02:05:44 +0000 (11:05 +0900)]
Support Linux kernel v5.4
To support rpi4 kernel based on Linux kernel v5.4, add wrapper for
changed function name.
With the Linux mainline commit
9285ec4c8b61 ("timekeeping: Use
proper clock specifier names in functions") in v5.3, function
ktime_get_boot_ns() is changed to ktime_get_boottime_ns().
Change-Id: I80e00592adea9e888daaef035f2332e5e7528eef
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
9285ec4c8b61d4930a575081abeba2cd4f449a74
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Kunhoon Baik [Tue, 16 Jun 2020 03:18:35 +0000 (12:18 +0900)]
Add Arch Limitation for armv7l and aarch64
Change-Id: Ia66330800bf7b922e024ed5afae33743b004073a
Kunhoon Baik [Tue, 16 Jun 2020 02:04:31 +0000 (11:04 +0900)]
Enable 64bit
Tizen will support 64 bit binary officially.
Now, Kernel also support 64bit kernel headers
(Related patches)
- https://review.tizen.org/gerrit/#/c/platform/kernel/linux-rpi/+/235603/
- https://review.tizen.org/gerrit/#/c/platform/kernel/linux-rpi/+/235563/
- https://review.tizen.org/gerrit/#/c/platform/kernel/linux-rpi/+/235998/
:
According to the support, this patch supports stability monitor 64 bit kernel driver.
Change-Id: Ie15a455a1eaf82579a69cce9106b324401d3cc69
Seung-Woo Kim [Mon, 30 Mar 2020 06:16:08 +0000 (15:16 +0900)]
packaging: add to build with rpi4 kernel
In tizen, rpi platform image supports both rpi3 and rpi4. So add
to build with rpi4 kernel to support rpi4 kernel.
Additionaly, provide stability-monitor-kernel-module
virtual package instead of bare kernel file.
Change-Id: I708213069744b0f405676b2705b584acfaca0ec1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Seung-Woo Kim [Mon, 30 Mar 2020 06:11:34 +0000 (15:11 +0900)]
Fix to use kernel module with kernel release version
Kernel module has its own kernel release version and at runtime.
`uname -r` will report the version. Fix to use kernel module with
the kernel release version.
Change-Id: Ifd26c29ce84591a9e9ba46a7d64361a3e20e4824
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Seung-Woo Kim [Mon, 30 Mar 2020 05:02:54 +0000 (14:02 +0900)]
build: add modules_install
To install kernel modules with its release version path, add build
for modules_install.
Change-Id: Idcb945be287e43eb2f66cefa06849b6e352115a9
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Seung-Woo Kim [Mon, 30 Mar 2020 06:05:38 +0000 (15:05 +0900)]
packaging: add clean
Change-Id: Iac95f38ed76f92da7bb55ef9d3f98d6cd457c218
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Konrad Kuchciak [Tue, 18 Feb 2020 08:04:13 +0000 (09:04 +0100)]
Release 6.0.1
Change-Id: I2725d40965b7ba493f960293d39b04cd0a048873
Michal Bloch [Mon, 17 Feb 2020 10:23:25 +0000 (11:23 +0100)]
Advance to Digital Age
The FSF address used in the license boilerplate text is no longer
correct since their offices have relocated. Rather than introduce
the new mailing address which will inevitably change again in the
future, use the website address which is more permanent.
The main COPYING document still has the old address, but I am afraid
to change it because that one doubles as a legal document.
Change-Id: I86c6d6978d2a633fda8d21398b23b6d76b0daf54
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Konrad Kuchciak [Fri, 14 Feb 2020 12:30:08 +0000 (13:30 +0100)]
Add blacklist parameter
Blacklist parameter allows to filter out processes
with the specified SMACK label. Up to 10 comma separated
labels may be specified.
Change-Id: Ifba07c610d02b6214086ab666caac0fa5eb2b019
Konrad Kuchciak [Fri, 6 Dec 2019 11:09:29 +0000 (12:09 +0100)]
Fix license comment
Change-Id: I857df1652046fbaef26e959cbd2dd28ffc4834a5
Konrad Kuchciak [Wed, 27 Nov 2019 07:13:38 +0000 (08:13 +0100)]
Release 5.5.1
Change-Id: Id68765fc7b948707170e83f2f51ed874087a90d4
Kunhoon Baik [Wed, 27 Nov 2019 06:09:21 +0000 (15:09 +0900)]
Fix License Issue
This git contains the kernel driver for stability monitor for RPI3 device.
The driver's license is GPL-2.0+ not Apache
Change-Id: I2bd1d2ab129269d0d4e2f0f29c68a2b2668e6758
Konrad Kuchciak [Wed, 18 Sep 2019 08:00:28 +0000 (10:00 +0200)]
Explicitly provide proc-tsm.ko
Change-Id: I03b66f7b4979d62597433299392dbbfc767f856f
Konrad Kuchciak [Wed, 18 Sep 2019 07:59:10 +0000 (09:59 +0200)]
Add manifest
Change-Id: Ia245f285b203fce4da749fc5d0d2ee6f3465d663
Konrad Kuchciak [Mon, 9 Sep 2019 10:07:52 +0000 (12:07 +0200)]
Add kernel module sources from stability-monitor
Change-Id: I5f377a6210996c2a4a3840f32d10337ffef55ae1