Adeeb Shihadeh
1ca1d7a673
increase loggerd per-cycle service limit to 200
...
old-commit-hash: f71a03f967
3 years ago
Adeeb Shihadeh
f8146db9b9
loggerd: don't let a single service clog up the main thread
...
old-commit-hash: baf1a77ca2
3 years ago
Willem Melching
3b8daea061
Clear loggerd locks once on boot ( #23060 )
...
* add test for clear_locks
* move to bootlog
* simplify test
old-commit-hash: a2f32fd3e1
3 years ago
Dean Lee
7f0beef092
loggerd: add test case for trigger_rotate ( #23038 )
...
* test rotate
* remove global LoggerdState
old-commit-hash: 1d323e0fd6
3 years ago
Dean Lee
987f87cc0e
loggerd: split loggerd.cc into three files
...
old-commit-hash: 75dd0d6296
3 years ago
Adeeb Shihadeh
35bfdce477
loggerd: trigger rotate on frame id instead of frame count ( #22848 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ea761cbbd5
4 years ago
Mayfield
43e1903073
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e
4 years ago
Dean Lee
c401d7aff3
loggerd: fix concurrency issues in sync encoders ( #22590 )
...
* sync_encoders
* add variable camera_synced
* cleanup
old-commit-hash: 18caf3535b
4 years ago
Adeeb Shihadeh
bb7751fdb0
don't set core affinity on PC ( #22706 )
...
old-commit-hash: 5b331fd6f5
4 years ago
Willem Melching
0f77dd4506
loggerd: set encodeIdx.valid if frame id is correct ( #22634 )
...
* loggerd: set encodeIdx.valid if frame id is correct
* check valid flag in test
* test cleanup
* bump cereal
old-commit-hash: 89f311714c
4 years ago
Adeeb Shihadeh
b773f6711c
loggerd: always run encoders ( #22649 )
...
* loggerd: always run encoders
* fix raw logger
* bump loggerd cpu usage
old-commit-hash: 76bd932cf5
4 years ago
Adeeb Shihadeh
25cfa2b65a
tici: affine loggerd to efficiency cores ( #22581 )
...
old-commit-hash: 84de248fa7
4 years ago
Willem Melching
4844f8196d
remove loggerd todo about encodeIdx decimation
...
old-commit-hash: 377fe84948
4 years ago
Willem Melching
e49dd50f98
Disable encoder sync logic if only one rotate camera present ( #22107 )
...
* disable sync logic if only one rotate camera
* consistent brackets
old-commit-hash: 48035e9535
4 years ago
Willem Melching
60e7e09127
Ensure that first segment starts with all cameras on the same frameId ( #22096 )
...
* test that segment starts with the same frame id
* improve test
* add sync logic
* atomic max
* review comments
old-commit-hash: a93271a518
4 years ago
Dean Lee
ecf3ee7603
loggerd: create encoder threads from cameras_logged ( #21875 )
...
old-commit-hash: d9baaf7eb9
4 years ago
Adeeb Shihadeh
277bd43b15
Revert "tici: give loggerd rt priority ( #21503 )"
...
This reverts commit 0a50cf851e79342cf3db01033bc91516c504cbea.
old-commit-hash: 54a4eeb0fc
4 years ago
Adeeb Shihadeh
5c1d1ebe76
tici: give loggerd rt priority ( #21503 )
...
* give loggerd rt priority
* assert
* little more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7e2752c878
4 years ago
Willem Melching
ae4f3c98d5
refactor loggerd: trigger rotate in encoder thread ( #21860 )
...
* trigger rotate in eoncode thread
* rotate in time
* lgtm
* dcam trigger rotate on C3
* check trigger rotate field
* Use >=
* add rotator thread
* set cnt to 0
* test encodeIdx is increasing across segments
* test both segmentId and encodeId
* fix encodeIdx
* no thread needed
* add log for failed to encode
* stricter C3 test, dont check start encodeId on C2 dcam
* only update last_camera_seen_tms when considered for rotate
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: a39873872d
4 years ago
Willem Melching
f8edcd64c4
loggerd: power failure print sync done
...
old-commit-hash: dd128f5916
4 years ago
Adeeb Shihadeh
d31397b84b
segment regen ( #21148 )
...
* start seg regen
* send vipc
* fix up some paths
* set fp
* fix no entries
* engages
* seperate camera procs
* send real frames
* regen test routes
* nice argparser
* fix valgrind test
* move that
* fix that
old-commit-hash: 4a1aec27ef
4 years ago
Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
4 years ago
Willem Melching
80ec32bcf3
loggerd: put signal in end of route sentinel ( #21025 )
...
old-commit-hash: 6e22f16ddb
4 years ago
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
4 years ago
Willem Melching
78bf4f5867
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54
4 years ago
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaa
4 years ago
Dean Lee
e0282ced49
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
old-commit-hash: 757d2923d2
4 years ago
Adeeb Shihadeh
55a9ec8a93
set nice values for non RT processes ( #20812 )
...
* set nice values for non RT processes
* builds
* fix qcom build
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ec414e2eb1
4 years ago
Adeeb Shihadeh
532d19427c
bump cereal
...
old-commit-hash: 8a280fbb8e
4 years ago
Adeeb Shihadeh
467811edf1
log encodeIdx packets in qlog ( #20738 )
...
old-commit-hash: 9813c0ddbd
4 years ago
Dean Lee
405df8b165
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f6
4 years ago
Willem Melching
c64d818341
use class AlignedBuffer ( #20388 )
...
* use class AlignedBuffer from cereal (#20343 )
* AlignedBuffer
* move AlignedBuffer to cereal/messaging.hpp
* rename function aligned to get
* use overloaded function AlignedBuffer:: get(Message *)
* use AlignedBuffer
Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: 0a88304e8d
4 years ago
Willem Melching
d61654abc3
Revert "use class AlignedBuffer from cereal ( #20343 )"
...
This reverts commit df9e836779af0c145efc933b88bbc94f59f2b378.
old-commit-hash: e3ad952902
4 years ago
Dean Lee
4c02da3f0a
use class AlignedBuffer from cereal ( #20343 )
...
* AlignedBuffer
* move AlignedBuffer to cereal/messaging.hpp
* rename function aligned to get
* use overloaded function AlignedBuffer:: get(Message *)
old-commit-hash: 7aa379e123
4 years ago
ZwX1616
46840807fa
up tici hevc bitrate ( #20093 )
...
* 2x tici bitrate
* update test
* clean up
old-commit-hash: e2044ca5a2
4 years ago
Willem Melching
a98a06c1f8
loggerd: clean exit on SIGPWR ( #20100 )
...
* loggerd: clean exit on SIGPRW
* no SIGPWR on macos
old-commit-hash: d3dfb47d0e
4 years ago
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46
4 years ago
Greg Hogan
d59a13e22a
adjust qcamera quality ( #20066 )
...
* better ts
* fix test
old-commit-hash: 1cd9105e96
4 years ago
Dean Lee
6e63be3a01
loggerd: remove the segment variable from encoders ( #20034 )
...
old-commit-hash: 1fad5216ea
4 years ago
Dean Lee
33495e4368
loggerd: small cleanup ( #19864 )
...
old-commit-hash: 16e259cadf
4 years ago
Dean Lee
da9b0e8baa
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
old-commit-hash: e6783f4d9f
4 years ago
Dean Lee
b0552a1985
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
old-commit-hash: 79e05965c4
4 years ago
Adeeb Shihadeh
a65cef0b31
loggerd: remove vipc arg from encode frame
...
old-commit-hash: 1ed77847fe
4 years ago
Adeeb Shihadeh
cfdeda3393
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>
old-commit-hash: d4489fbf91
4 years ago
Adeeb Shihadeh
5362097b37
fix loggerd after bootlog split ( #19840 )
...
* fix loggerd after bootlog split
* logger handles that
* unused
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e64049ea4
4 years ago
Dean Lee
57b1b4c456
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
old-commit-hash: f973c56a36
4 years ago
Dean Lee
92c11baefb
loggerd: make sure to print one statistics every 1000 times ( #19803 )
...
old-commit-hash: d085adb9ec
4 years ago
Dean Lee
603a21c1f4
loggerd: do not LOGW twice when logger.part == 0 ( #19795 )
...
* fix LOGW
* space
old-commit-hash: caf87c25dd
4 years ago
Willem Melching
a04de5683e
RecordFront remove ifdef ( #19773 )
...
old-commit-hash: 10790304c9
4 years ago