Adeeb Shihadeh
54f1b00447
Log git source commit ( #34749 )
...
* Log git source commit
* strip
* fix trim
* no trim
2 months ago
Dean Lee
9ec54f59c6
loggerd: switch logging from raw file format to zstd compressed files ( #34549 )
...
* switch logging from raw file format to zstd compressed files
* more zst suffix
* compress bootlog
* remove class RawFile
* Optimize ZstdFileWriter by adding input caching
* use ZSTD_compressStream2
* cleanup
* LOG_COMPRESSION_LEVEL=10
* space
* add zst suffix to LOGS_SIZE_RATE
3 months ago
Dean Lee
0bdad1fee0
loggerd: direct Initialize params instead of copy ( #33622 )
...
Direct Initialize Instead of Copy
7 months ago
Dean Lee
0147c559c0
loggerd/logger.cc: use std::stoul instead of std::stol ( #32133 )
...
old-commit-hash: 99285ef1f2
1 year ago
Dean Lee
fc1d2edf81
loggerd/logger.cc: fix typo ( #32134 )
...
old-commit-hash: cad7b96c3a
1 year ago
Adeeb Shihadeh
9735cf2eb6
timeless routes ( #31119 )
...
* timeless route
* update sort
* update test
* fix param name
old-commit-hash: 7cfc571f56
1 year ago
Adeeb Shihadeh
df6154b591
log git commit date ( #31490 )
...
* log git commit date
* unix ts
* fix
* bump cereal
* cleanup
old-commit-hash: 0723c2bc5f
1 year ago
Adeeb Shihadeh
35c9578c5e
fix bootlog count ( #31319 )
...
old-commit-hash: cbd46802b0
1 year ago
Adeeb Shihadeh
048629564e
bootlog: remove timestamp from filename ( #31187 )
...
* bootlog: remove timestamp from filename
* revert route
* test
* revert that
* fix loggerd test
old-commit-hash: 2504341070
1 year ago
Adeeb Shihadeh
972650f0eb
remove dashcam branch ( #31081 )
...
* remove dashcam branch
* fix
* more cleanup
* remove param
* one more
old-commit-hash: 7cd9568423
1 year ago
Dean Lee
00e5f37d2a
loggerd: c++ LoggerState ( #25869 )
...
* c++ LoggerState
* trigger ci
* trigger ci
* merge master
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3527c1da67
1 year ago
Adeeb Shihadeh
eeecc35e0b
loggerd: add wall time to initData ( #30251 )
...
* loggerd: add wall time to initData
* bump cereal
* fix
old-commit-hash: f616dd77a1
2 years ago
Dean Lee
97e9d55588
cpplint: `build/include_what_you_use` ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2 years ago
Dean Lee
434a7c3505
logger: use reference in range based loop ( #28894 )
...
old-commit-hash: f1a1456f27
2 years ago
Adeeb Shihadeh
3689bd2e77
loggerd: log HW-specific extras ( #28084 )
...
* loggerd: log HW-specific extras
* fix value
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e24d28fd45
2 years ago
Adeeb Shihadeh
3a968c67e1
loggerd: move to system/ ( #27534 )
...
old-commit-hash: 94eb215980
2 years ago
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
3 years ago
Adeeb Shihadeh
fe89c4d6ab
loggerd: log all disk space usage in initData ( #25455 )
...
* bootlog: log all disk space usage
* not just agnos
* move to initData
* cleanup
old-commit-hash: aa32ea0f64
3 years ago
Dean Lee
16898dee68
logger.cc: remove unused function append_property ( #24966 )
...
remove append_property
old-commit-hash: 461f747247
3 years ago
Willem Melching
753045c73d
less TICI when not needed ( #24698 )
...
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2
3 years ago
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
3 years ago
Willem Melching
be08693d5c
delay bz2 compression from logging to uploading ( #24392 )
...
* remove log_name
* log without compression
* fix tests
* remove extension for bootlog
* another test fix
* uploader compresses
* also compress in athena
* only compress qlog
* more generic check in do_upload
* fix bootlog compression
* lower loggerd cpu usage
* dont link against bz2
* set core affinity to little cluster
* handle old files
old-commit-hash: 77a6f3d034
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
3 years ago
Adeeb Shihadeh
ef2106ebd2
move lock clearing to uploader ( #23826 )
...
* move lock clearing to uploader
* test case
old-commit-hash: 3243d1a81e
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
0afe7d74bc
util: add new function create_directories with unit tests ( #21871 )
...
* util::create_directories
* check bool ret
* don't assume mask
* rename with_umask to no_umask
* remove umask
* rebase master
* rebase master
* 0755
old-commit-hash: 1f39d8cee6
4 years ago
Dean Lee
0fac38e34f
LoggerState: test cases ( #21855 )
...
* test multiple threads writing to log
* fix typo
* use util::getenv
* check INIT_DATA and SENTINEL
* test END_OF_SEGMENT
* add comment
* test multiple threads logging and rotation
* cleanup
* update
* LoggerHandle:quick fix
* cleanup
* revert test_loggerd.py
* refactor test case
* check lock file
* check refcnt after close
* test_runner.cc
d
* int eixt_signal
old-commit-hash: 935cbd3139
4 years ago
Willem Melching
6f92abc815
Less open file permissions ( #21922 )
...
* Less open file permissions
* add test back
* remove params test for permissions
* remove umask
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dddab597bc
4 years ago
Dean Lee
f65c7e7418
capnp:Text::Reader: use implicit conversion from string ( #21980 )
...
old-commit-hash: c6a34dd9f7
4 years ago
George Hotz
17867a1122
loggerd: implement DONT_LOG flag ( #21832 )
...
* implement DONT_LOG flag
* better typing
old-commit-hash: 8354cfc53c
4 years ago
Dean Lee
7fed9b0c0c
logger.cc/logger_build_init_data(): reuse params_map ( #21811 )
...
* faster log params
* Update selfdrive/loggerd/logger.cc
* fix build
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: fecdf16f6b
4 years ago
Dean Lee
31ea9413bb
util/read_files_in_dir: return map by value ( #21815 )
...
old-commit-hash: 11ffbc6936
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
Adeeb Shihadeh
295d18ad11
log OS version in initData ( #20979 )
...
old-commit-hash: ec976b3b44
4 years ago
Dean Lee
5609f32cee
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
old-commit-hash: 0495426535
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
Dean Lee
b12a444bdd
Params: move keys from cython to cc ( #20814 )
...
* move keys from cython to cc
* consistency
* passes tests
* more consistency
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 27d3f820bf
4 years ago
Adeeb Shihadeh
532d19427c
bump cereal
...
old-commit-hash: 8a280fbb8e
4 years ago
Adeeb Shihadeh
3e4eb2e343
handle unregistered devices ( #20728 )
...
* handle unregistered devices
* cleanup
* no uploader or athena
* clean up
old-commit-hash: 1786d04239
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
e5d066bc14
write params in initData as Data
...
old-commit-hash: 511cb2680f
4 years ago
Dean Lee
60aa7b9d96
Logger: added function logger_get_route_name ( #19995 )
...
* added function logger_get_route_name
* remove empty line
old-commit-hash: 1588a6f0ac
4 years ago
Dean Lee
bc3b705a5b
mv logger_build_boot to bootlog.cc ( #19996 )
...
old-commit-hash: 678c149246
4 years ago
Dean Lee
926c3d6fd7
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
old-commit-hash: ef6d1aeaaa
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
Willem Melching
4fd576e7f7
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
old-commit-hash: 87119aebe2
4 years ago