Commit Graph

18 Commits

Author SHA1 Message Date
Dean Lee 6c0939f51b logcatd_android.cc: fix repeating the same messages (#23713)
* fix repeating the same message

* cleanup

* use blocking mode

* check duplicate msg in test
old-commit-hash: ee85e7026aefc6769a850c7cf1ce9a2f81b6402b
2022-02-05 16:02:45 -08:00
Adeeb Shihadeh daa3432d01 logcat: include all logs since boot (#23692)
old-commit-hash: 5a9657cad5e5f4c140c1bf1c3a35b11a0cf11eb1
2022-02-02 11:33:06 -08:00
Dean Lee 01eb405677 put logcat in bootlog (#23217)
* put logcat in boot log

* continue

* use std::unique_ptr

* Revert "use std::unique_ptr"

This reverts commit c671f8ca7160691791bade508c4a8eb5cdb73fb8.
old-commit-hash: f042962933837dbe612d4eb0f9bf5c0a0e0fb6f3
2021-12-14 11:54:54 -08:00
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: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
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: ec414e2eb1e27eac04582ffbdc88f8022bfb34cc
2021-05-04 22:00:11 -07:00
Adeeb Shihadeh 532d19427c bump cereal
old-commit-hash: 8a280fbb8eb433fbfe0fc43254c9cbdaceedbab6
2021-05-03 20:47:11 -07:00
Adeeb Shihadeh 5bc05ad36b android logcatd fixes + better test (#20036)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: bb0f91791a0da06253b666dc3410b220697b72bb
2021-02-07 17:29:52 -08:00
Comma Device d295eb68f9 fix logcatd after bugfix
old-commit-hash: 366292a059eee602bc8bd8768730c1bdfb8004ac
2021-02-03 22:57:34 -08:00
Dean Lee cb9b7c44c1 logcatd: fix bug: subsequent reads after the first always return empty (#19994)
* refactor logcatd

* cleanup

* rename logger_list to loggers

* apply review

* little cleaner

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1b140bdbcad52b939a21346d67471cae760cd64b
2021-02-03 22:24:05 -08:00
Adeeb Shihadeh 88566ec71c logcatd bugfix + tests (#19689)
* hack to exit cleanly

* move the hack

* add test

* run in ci

* unused

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d4d5820190836d32089c3e79a2e47a02e7ce36
2021-02-01 15:15:29 -08:00
Dean Lee 57c4099b7c Fix loggcatd: removed duplicate call to android_logger_list_free (#19903)
old-commit-hash: 1e9e7264fade9bf324cea46b3b065a2f5fa389a6
2021-01-24 14:37:12 -08:00
Dean Lee 4c1919f41e merge utilpp.h into util.h (#19710)
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Comma Device e4502623ad logcatd_android: use sleep_for instead of usleep
old-commit-hash: 61bc7f73faf70522dd2c3177d6f53ed3ff3e1af4
2021-01-06 13:04:08 -08:00
Dean Lee 5e557ed96d 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
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00
Adeeb Shihadeh 3b2d64fddb make android logcat exit cleanly (#19666)
* make android logcat exit cleanly

* clean up cpu usage script

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a399ec530d5cbd7fbc842881af48559176a10568
2021-01-05 15:10:55 -08:00
Adeeb Shihadeh 5bbe4f3d52 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>
old-commit-hash: ffa7e0cbdb0859751685caae1321d3ccf732fed9
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh ac3422fc0f message builder (#2161)
* use custom MessageBuilder from cereal

* use MesageBuilder.toBytes

* bump cereal

* unused

* another one

* fix ui msg

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 4d5733924a2fdd8a3bbaf5f48869ac744b983401
2020-09-12 21:48:15 -07:00
Willem Melching 55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae7882a6a8eee0086b9c612c1d276814
2020-08-26 17:09:23 +02:00