Beat Küng
d68dcb9cf7
log_writer_file: increase stack size by 20 bytes
...
Seems to be due to the console buffer.
2019-06-04 11:57:54 +02:00
Beat Küng
721f9f901f
log_writer_file: fix race condition for fast consecutive stop & start calls
2019-05-29 11:41:22 +02:00
Daniel Agar
2ffb49b734
delete px4_includes.h header and update boards/ to use syslog
2019-01-23 18:25:18 -05:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Beat Küng
df559f3042
logger: unlock the mutex for fsync & call fsync only when backend is running
...
- fsync can be a long blocking operation, so we need to make sure the main
logger thread does not block during this time, when it tries to aquire
the mutex
- fixes calling fsync on an invalid file descriptor
2018-11-07 00:08:23 +08:00
Beat Küng
c5d8abff00
log_writer_file: rename argument to avoid shadowing warning
2018-10-26 08:02:42 +02:00
Beat Küng
4fc1c5c4f5
LogWriterFile: split long header messages that exceed the buffer length
...
Some message formats are longer than the 300 bytes. We can split the writes
because we have to wait until they are written anyway.
2018-10-26 08:02:42 +02:00
Beat Küng
d6e820fe67
logger: add mission file to LogWriterFile backend
...
Not used yet, it should not affect anything, except for slight RAM
increase.
2018-10-26 08:02:42 +02:00
Daniel Agar
9551dcb497
logger increase log_writer_file stack 1072 -> 1150
2018-08-07 17:21:15 +02:00
Beat Küng
bda237b368
logger: ensure that fsync is called at least every second
...
In case a log ends abruptly, we will know that we have everything up to the
last second.
A test showed that CPU load and the amount of logging drops are unaffected
by this.
2018-05-18 22:23:32 +02:00
Beat Küng
ebafa5698d
log_writer_file: register hardfault handler before opening the log file
...
hardfault_store_filename() opens and closes a file descriptor, so if we do
it before opening the log file, we need one file descriptor less
2017-08-16 16:46:56 +02:00
Julien Lecoeur
71136dcedf
Log_writer_file: Increase stack size
...
Test flights reported the warning `[load_mon] log_writer_file low on stack! (292 bytes left)`
Increase stack size from 1060 to 1072 (=8 + 1060 rounded to next multiple of 8).
2017-07-18 08:24:37 +02:00
Beat Küng
209f220288
hardfault_log: move hardfault_store_ulog_filename to logger module
2017-07-07 17:06:48 +02:00
Beat Küng
1be089cf0c
BBSRAM: add another partition and store the last ulog path
2017-07-07 17:06:48 +02:00
Beat Küng
8bfa84f73f
log_writer_file: make sure to close the file
...
and avoid doing a loop iteration when the thread is requested to exit
(as it could access _buffer).
2017-05-04 08:44:11 +02:00
Lorenz Meier
65baf99832
Logger hotfix: Allocate buffer on logging
...
This enables to use the RAM normally consumed by the log buffer to be used for calibration and other memory-intense tasks.
These run typically only disarmed when logging is not enabled.
2017-05-03 21:52:04 +02:00
Beat Küng
bfcbe4b6c3
log_writer_file: rename perf counters
...
To be more consistent with the rest of the system
2017-04-01 20:19:52 +02:00
Matthias Grob
bb3b26e00f
logger: adjusted log_writer_file stack size
...
because of messages in the logs
2017-03-16 14:05:15 +01:00
Beat Küng
03dc991188
log_writer_file: adjust stack size
...
Stack size was below threshold of 300 by 8 bytes.
2017-02-04 12:15:59 +01:00
Daniel Agar
e927f3e040
clang-tidy modernize-use-nullptr
2017-02-01 22:15:50 -05:00
Mark Whitehorn
257e236c92
add errno to error message
2016-12-10 12:56:39 +01:00
Beat Küng
cbbee30e48
log_writer_file: add include px4_posix.h (needed for stack size macro)
...
Failed with GCC 6.0.1, don't know why it worked before...
2016-10-24 10:22:48 +02:00
Beat Küng
12ded377d1
refactor logger: add need_reliable_transfer flag, remove write_wait
2016-10-19 13:13:47 +02:00
Beat Küng
1ddddccb81
logger: move thread start/stop logic into LogWriterFile
2016-10-19 13:13:47 +02:00
Beat Küng
ccdaabc7fb
refactor logger: prepare for multiple write backends
2016-10-19 13:13:47 +02:00