ligd
23f948aa7f
syslog: add CPU id to system when open CONFIG_SMP
...
Change-Id: Ie8aaf44583ff4146b79b1392d1410b31806a81e8
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-01 18:26:20 +08:00
Jiuzhu Dong
d78b1ff5b3
ramlog: fix compile break
...
Change-Id: I03afb41790dbba1d3290c566b099fe511771de3c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-06-29 16:56:35 +08:00
Jiuzhu Dong
05d9dc5682
syslog: fix crash when print localtime by syslog
...
N/A
Enable
CONFIG_LIBC_LOCATIME=y
CONFIG_SYSLOG_TIMESTAMP_FORMATTED=y
CONFIG_SYSLOG_TIMESTAMP_LOCALTIME=y
CONFIG_SYSLOG_TIMESTAMP_REALTIME=y
Change-Id: I322830e0818237a7eb65a158a6a0dea8f9da9b6c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 95f97277caf827e145275a1a3b6d82a4535c8c4d)
2021-06-23 10:28:35 +08:00
Jiuzhu Dong
2e6932316e
syslog/ramlog_channel: fix log confusion when multi task writing together
...
N/A
Change-Id: I2a17a81028862ccdd3936862e2548f93c4837ae1
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit a96a9ef5279f50f7fb7fb262cb2b1cd5285f2d8b)
2021-06-17 22:02:39 +08:00
Jiuzhu Dong
90abae1b91
syslog/default_channel: fix log confusion when multi task writing together
...
N/A
Change-Id: I3ef830c437bd9631272a300e309b88c84fdaa275
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 74d9cb80b38109392029206f66f6b8af63229bbc)
2021-06-17 22:01:41 +08:00
Xiang Xiao
8b26671c40
syslog/ramlog: Remove the duplication of \n->\r\n conversion
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5497f3ab40a55c5c08ba893e1186b93915cef03a
2021-06-17 21:52:54 +08:00
Jiuzhu Dong
f0ba04eb2b
syslog/ramlog: write zero for the overwrite area
...
N/A
Change-Id: I8f8d8c53e77ee9d916cb97ea7cd3e988fbbe9ad2
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 4d8124a28048ea7ba7717d999553028e5384d631)
2021-06-07 10:09:52 +08:00
Jiuzhu Dong
47f09e2a18
syslog/intbuf: output log when syslog interrupt buffer is full
...
N/A
instead of adding overrun memssage:"[truncated]\n" to the end.
Change-Id: Ie27cdf0ca902d9ba203619a95162f01222e371c5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-06-04 13:46:45 +08:00
Xiang Xiao
3c33d253b4
drivers/syslog: Remove emergstream implementation and caller
...
since emergstream always call syslog_force, but syslog_force is designed
for the interrupt context, and then doesn't mean any emergency thing.
On the other hand, emergstream has other bad side effect:
1.Can't output to file or dev channel
2.Can't work well with the interrupt buffer
Change-Id: I1c7af74f82da93ffa4ebe0e6ac25634aeb73a890
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-06-04 13:46:41 +08:00
Jiuzhu Dong
78f4220106
syslog: set default value for SYSLOG_DEFAULT based on the usage of other syslog channels.
...
N/A
Change-Id: I702a7e3d4fee2f17419a8b7e184b2646b871b64a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-25 15:22:10 +08:00
Jiuzhu Dong
418923540d
syslog/ramlog: initialize g_sysdev based on the current ramlog buffer
...
N/A
by ramlog_initbuf();
Algorithm: Scan the entire ramlog buffer, the position of the head
is the first byte is not empty and second byte is empty. The position
of the tail is the first byte is empty and second byte is not empty.
Change-Id: Ieb9161bd670481cd335e9a901287cd5e589f0849
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 22:28:11 +08:00
Jiuzhu Dong
e318b040f8
syslog/syslog_channel: fix compile warning
...
N/A
syslog/syslog_channel.c: In function ‘syslog_default_putc’:
syslog/syslog_channel.c:139:10: warning: implicit declaration of function ‘up_putc’ [-Wimplicit-function-declaration]
139 | return up_putc(ch);
| ^~~~~~~
Change-Id: I30f607c000fefc6a1189397e6ae2320c562a67ec
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 22:04:25 +08:00
Jiuzhu Dong
bd10e5716d
syslog/ramlog: save ramlog to fixed section
...
N/A
we can reload ramlog after hot reboot.
Change-Id: Iee7c105a2358075302121d6bf0047bc54d07e9a6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 20:06:38 +08:00
Jiuzhu Dong
d2e9d1bf02
syslog: fix bug for support multi syslog channel
...
N/A
Change-Id: I6d8b5bce8071f11b1903fe1fa0fe8dbc34bf3a09
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 20:03:37 +08:00
Jiuzhu Dong
36a0dae82a
syslog: support ramlog, up_putc, rpmsg_syslog coexist
...
N/A
Change-Id: Ia58c7e195da7ad48f3018a131a78b2f01f94e741
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 11:04:39 +08:00
Jiuzhu Dong
639c2c5cb2
syslog/Kconfig: support config multi syslog channel
...
N/A
delete choice for select syslog log device
Change-Id: Ifc02e687526506afac46febec375062949869356
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 795f2d56dad1f30fd23ae1868226ee8379fd4f93)
2021-05-12 13:08:40 +08:00
Jiuzhu Dong
788e409cb7
driver/syslog: add config SYSLOG_RPMSG_SERVER_NAME to
...
N/A
specified the name of remote proc(rpmsg server)
Change-Id: Ie270d651071e87a40a80ab489597ae18db9814f0
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:22:28 +08:00
liuhaitao
dc639b2b59
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507
...
Change-Id: I4bb3a61356be2b4a77ccfe45390b15e68a376dd6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-07 20:46:07 +08:00
Jiuzhu Dong
6b78e90fc1
syslog/ramlog: get ramlog size by ioctl
...
N/A
Change-Id: I092334f3247c6c13f3be35169f192bd0777435ef
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-04-25 14:22:05 +08:00
Fotis Panagiotopoulos
3543ac95bf
syslog_device: Device is re-opened in case of failure.
2021-04-10 06:47:44 -05:00
Fotis Panagiotopoulos
ee7276e7a7
syslog: syslog_device ops are handled internally by the driver.
2021-04-09 08:02:38 -05:00
Fotis Panagiotopoulos
ac7feda1bc
syslog: Proper uninit of syslog_device.
2021-04-07 08:38:53 -05:00
Fotis Panagiotopoulos
c4a9a35fb9
syslog: Fix in syslog_intbuffer flushing.
2021-04-06 10:26:55 -05:00
Fotis Panagiotopoulos
1dee243e29
syslog: Added multi device support in syslog_device.
2021-04-06 07:32:23 -05:00
Alin Jerpelea
08e5378b11
NuttX: Gregory Nutt: update licenses to Apache
...
Several licenses were missed in the initial work
David Sidrane has submitted the ICLA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-03 04:20:31 -07:00
Alin Jerpelea
0f41c3c555
NuttX: Pierre-Noel Bouteville: update licenses to Apache
...
Pierre-Noel Bouteville has submitted the ICLA and we can migrate the licenses
to Apache.
David Sidrane has submitted the ICLA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Fotis Panagiotopoulos
f13adbe4bb
Added support for multiple syslog channels.
2021-03-23 21:35:22 -07:00
Matias N
cf8521e6de
syslog: add option to prefix process name
2021-03-11 19:40:48 -03:00
Gustavo Henrique Nihei
330eff36d7
sourcefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
Fotis Panagiotopoulos
d02b63d6ed
Re-arranged syslog fields.
2021-03-09 00:53:28 +08:00
chao.an
413405fb6e
drivers/syslog: Prepend Process ID to syslog message
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-09 00:53:22 +08:00
Fotis Panagiotopoulos
fb8b50c300
Added color output to syslog.
2021-03-09 00:53:16 +08:00
Fotis Panagiotopoulos
0acea9c4a4
Added printing of log priority in syslog.
2021-03-09 00:53:07 +08:00
Fotis Panagiotopoulos
5c4ee27398
Added formatted timestamps in syslog.
2021-03-09 00:52:59 +08:00
chao.an
4b5f6b138e
Revert "drivers/syslog: Prepend Process ID to syslog message"
...
This reverts commit 0cd3389459 .
2021-03-09 00:52:51 +08:00
Alin Jerpelea
ccff570e6f
drivers: nxstyle fixes
...
nxstyle fixes to pass the CI.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Alin Jerpelea
e5b6305f4a
drivers: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
ligd
0d24582fe0
syslog_rpmsg: fix system crash when open CONFIG_SCHED_HAVE_PARENT
...
Reason:
nx_start use syslog at every early time event the idle thread not
full setup, then syslog_rpmsg -> work_queue -> work_signal ->
nxsig_kill -> rtcb is NULL -> crash
Fix:
sched work_queue after is_rpmsg_ept_ready() is true
Change-Id: I225469ff2526e4b810bf3e23473b55d57e64a1ff
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-03-03 19:08:15 -08:00
ligd
f4df6ab356
syslog_rpmsg: fix system crash when open CONFIG_SCHED_HAVE_PARENT
...
Reason:
nx_start use syslog at every early time event the idle thread not
full setup, then syslog_rpmsg -> work_queue -> work_signal ->
nxsig_kill -> rtcb is NULL -> crash
Fix:
sched work_queue after is_rpmsg_ept_ready() is true
Change-Id: I225469ff2526e4b810bf3e23473b55d57e64a1ff
2021-01-26 11:12:41 +08:00
Fotis Panagiotopoulos
eabb2fbf38
Re-arranged syslog fields.
2021-01-18 05:37:55 -08:00
chao.an
efe236ba84
drivers/syslog: Prepend Process ID to syslog message
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-16 18:38:18 -08:00
Fotis Panagiotopoulos
cb78dadc4b
Added color output to syslog.
2021-01-16 16:17:16 -08:00
Fotis Panagiotopoulos
946443e190
Added printing of log priority in syslog.
2021-01-16 08:56:24 -08:00
Fotis Panagiotopoulos
c11413a258
Added formatted timestamps in syslog.
2021-01-14 07:55:22 -06:00
chao.an
0cd3389459
drivers/syslog: Prepend Process ID to syslog message
...
Change-Id: I999045034a29acb06f39710436c06b427c543b00
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-14 11:56:12 +08:00
YAMAMOTO Takashi
f8d6a85f90
drivers/syslog/vsyslog.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Xiang Xiao
f99719e260
Move note driver from drivers/syslog to drivers/note
...
it's better to put the note transport layer into a common folder
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-07 11:54:10 +08:00
Xiang Xiao
b5f429c88b
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-22 17:37:21 -06:00
Xiang Xiao
ae356001cf
Change all files come from Xiaomi/Pinecone to Apache License 2.0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-22 17:37:21 -06:00