Dean Lee
1fad5216ea
loggerd: remove the segment variable from encoders ( #20034 )
4 years ago
Dean Lee
1588a6f0ac
Logger: added function logger_get_route_name ( #19995 )
...
* added function logger_get_route_name
* remove empty line
4 years ago
Dean Lee
678c149246
mv logger_build_boot to bootlog.cc ( #19996 )
4 years ago
Dean Lee
aa37e95341
OmxEncoder: use c++ mutex&condition_variable ( #19786 )
...
* use c++ mutex&condition_variable
* rebase
* cleanup includes&use while
* remove include pthread.h
4 years ago
Dean Lee
ef6d1aeaaa
Logger: new class BZFile ( #19959 )
...
* add class BZFile
* inline
* cleanup includes
* stack bzfile
* log first error
* remove assert
* rename log_err to err_logged
* assert in destructor
* LOGE
* don't assert statement
* assert error of fclose
4 years ago
Dean Lee
9a9641a296
OMXEncoder: remove pthread_mutex_t lock from member variables ( #19948 )
...
* remove mutex
* rebase master
4 years ago
Dean Lee
16e259cadf
loggerd: small cleanup ( #19864 )
4 years ago
Adeeb Shihadeh
20a2bfdd31
Revert "OmxEncoder: new function set_state, set and wait state changed ( #19906 )"
...
This reverts commit 36a596eb1e
.
4 years ago
Dean Lee
36a596eb1e
OmxEncoder: new function set_state, set and wait state changed ( #19906 )
...
* free buffers after state is loaded
* set_data_blocking
* fix indentation
* Empty commit,trigger Build
4 years ago
Willem Melching
5693773ae1
fix safequeue import
4 years ago
Dean Lee
e6783f4d9f
remove cqueue, use class SafeQueue ( #19774 )
...
* class SafeQueue
* cleanup includes
* space
* add timeout
use try_poll
* add function empty() & size()
* class SafeQueue
* add timeout
use try_poll
* add function empty() & size()
* rebase master
* rebase master
* for loop
* fix bug
4 years ago
Dean Lee
79e05965c4
bootlog: fix dangling pointer problem in logger_build_boot ( #19942 )
...
* fix dangling pointer problem
* logger_build_init_data() has same problem
* return kj::Array<capnp::byte>
* Revert "return kj::Array<capnp::byte>"
This reverts commit 4df4685bfc
.
* Empty commit,trigger Build
* fix each segment in a route having a different initial logMonoTime
4 years ago
Adeeb Shihadeh
ea74f558f4
Revert "OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )"
...
This reverts commit 8f00813089
.
4 years ago
Adeeb Shihadeh
0411015103
fix up encoder test for tici rotation ( #19941 )
...
* fix encoder test
* revert for c2
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
8f00813089
OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )
...
* add calls to OMX_Init()&OMX_Deinit()
* fix indentation
4 years ago
Willem Melching
87119aebe2
Put bootlog in own folder ( #19939 )
...
* put bootlog in own folder
* fix uploader
* remove print statements
* update test
* remove comment
* also write initddata
* remove sentinels from test
4 years ago
Adeeb Shihadeh
9f2088e2c3
make loggerd rotation test more reliable
4 years ago
Adeeb Shihadeh
810ed30cab
more tici tests in jenkins ( #19908 )
...
* run loggerd tests on tici
* boardd loopback
* fix up seg length
* this doesn't add more coverage
4 years ago
Adeeb Shihadeh
1ed77847fe
loggerd: remove vipc arg from encode frame
4 years ago
Adeeb Shihadeh
d4489fbf91
OMX encoder stability ( #19758 )
...
* cleanup test first
* wait for other encoder threads
* fixes initial crash
* no print
* unused
* fix up tests
* need that
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
a5be02c2c7
OmxEncoder: set s->of to nullptr after close ( #19814 )
4 years ago
Adeeb Shihadeh
2e64049ea4
fix loggerd after bootlog split ( #19840 )
...
* fix loggerd after bootlog split
* logger handles that
* unused
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
f973c56a36
loggerd: split bootlog to a separate program ( #19831 )
...
* bootlog
* blank lines
* move file_exists to util.h
* src = ['loggerd.cc']
* log_init_data
* Revert "src = ['loggerd.cc']"
This reverts commit 18a587023d
.
* add bootlog to .gitignore
* use s->has_qlog instead of true
* add blank lines & remove extern C
4 years ago
Willem Melching
f3db94a0c4
Linux tombstones: add stacktrace and upload ( #19737 )
...
* Add stacktrace to tombstones
* make sentry output prettier
* Refactor
* Generate upload filename
* Actually move file
* Fix spaces
* copy and upload
* dont delete just yet
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
d085adb9ec
loggerd: make sure to print one statistics every 1000 times ( #19803 )
4 years ago
Dean Lee
e04cecd169
OmxEncoder: use std::vector to keep buffer ( #19807 )
4 years ago
Dean Lee
caf87c25dd
loggerd: do not LOGW twice when logger.part == 0 ( #19795 )
...
* fix LOGW
* space
4 years ago
Dean Lee
0592c326ed
OmxEncoder: use macro to check error ( #19785 )
4 years ago
Willem Melching
10790304c9
RecordFront remove ifdef ( #19773 )
4 years ago
Adeeb Shihadeh
5221450f2d
loggerd: another rotation test ( #19742 )
...
* another rotation test
* make encoder test fast
* fix pc
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
92e4f04873
Loggerd for PC ( #19730 )
4 years ago
Adeeb Shihadeh
a1c7f19fe4
Video Encoder abstraction ( #19729 )
4 years ago
Adeeb Shihadeh
87e8ef1fca
loggerd: fix double encoder open ( #19703 )
...
* fix double encoder open/close
* simplify rotation
* clean up
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
72bb55247c
replace std::this_thread::sleep_for with util::sleep_fo ( #19717 )
4 years ago
Dean Lee
595830135b
merge utilpp.h into util.h ( #19710 )
4 years ago
Adeeb Shihadeh
6b0890f128
loggerd: fix use after free and memory leaks ( #19695 )
...
* fix use after free and memory leaks
* cleanup
* fix typo
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
fb496c692a
VisionIPC 2.0 ( #19641 )
...
* Squashed vipc
* Update release files
* Remove else
* add visionipc to release files
* use poller in vipc receive
* opencl framework instead of lib on macos
* Fix camera webcam
* Fix opencl on mac in ui
* more webcam fixes
* typo in ui sconsfile
* Use cur_yuv_buf
* visionbuf c++ class
* Camera qcom was still using visionbuf_allocate
* Turn loggerd back on
* fix snapshot
* No build needed
* update test camerad
* no more release callback
* make encoder c++
* Revert "no more release callback"
This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.
* fix exit handlers
* No need to check errno
* move release callback call
* s/VIPCBufExtra/VisionIpcBufExtra/g
* use non blocking connect
* ui use non blocking connect
* Lower condition variable wait time
* Snapshot cleanup
* bump cereal
* bump cereal
4 years ago
Adeeb Shihadeh
206d072bb4
loggerd cleanup ( #19668 )
4 years ago
Adeeb Shihadeh
af81190cfc
loggerd tests ( #19671 )
4 years ago
Adeeb Shihadeh
e3d2f0c88c
fix race condition with encoder thread
4 years ago
Dean Lee
86fe2d1697
common exit handler ( #19661 )
...
* common signal handle
* fix typo
* rename to ExitHandler
* remove include signal.h
* remove include csignal
* rename variable exit to v
* rebase master
4 years ago
Adeeb Shihadeh
54679cea58
tici loggerd fixes ( #19622 )
...
* fix encoder exit when encoder is uninitialized
* cleanup
* more cleanup
* more cleanup
* little more
* ptr
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
c1cf0882bd
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
4 years ago
Dean Lee
041fbbf725
refactor qlog_counter ( #19626 )
4 years ago
Adeeb Shihadeh
59d7c5e64a
move to github container registry + CI speedup ( #19621 )
4 years ago
Adeeb Shihadeh
ffa7e0cbdb
manager tests + make all processes exit cleanly ( #19595 )
...
* manager tests
* logcatd exits cleanly
* sigint
* boardd
* multiple dbus connections hangs for some reason
* clocksd proclogd
* network type from thermal
* fix tests
* fix android logcatd
* fix mac
* fix mac proclogd
* move on device athena tests
* build first
* build first
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
8674b023ba
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
4 years ago
Adeeb Shihadeh
a2c6fdd14c
Revert "Handle python-dbus not installed"
...
This reverts commit 25054cdc05
.
4 years ago
ZwX1616
1c21fc100d
qcom2 init hevc tier correctly ( #19496 )
...
* qcom2 init tier correctly
* need to cast
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
25054cdc05
Handle python-dbus not installed
4 years ago