Commit Graph

35 Commits (master)

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

* cleanup

* use blocking mode

* check duplicate msg in test
2022-02-05 16:02:45 -08:00
Adeeb Shihadeh 5a9657cad5
logcat: include all logs since boot (#23692) 2022-02-02 11:33:06 -08:00
Willem Melching fe0f9aaa4f test_logcatd_android.py: catch unicode decode error 2022-01-17 11:33:26 +01:00
Dean Lee f2c17bbcde
logcatd: fix sd_journal_seek_tail doesn't go to end (#23319)
* fix sd_journal_seek_tail doesn't go to end

* add comment
2022-01-04 12:14:29 +01:00
Dean Lee f042962933
put logcat in bootlog (#23217)
* put logcat in boot log

* continue

* use std::unique_ptr

* Revert "use std::unique_ptr"

This reverts commit c671f8ca71.
2021-12-14 11:54:54 -08:00
grekiki 6951b3271d
Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-03 22:57:19 -08:00
Dean Lee e4e669bb0f
add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Dean Lee 65e0b1e699
Cleanup util.h (#20849)
* cleanup util.h

* fix build error:omx_encoder.cc:408: undefined reference to do_exit

* fix build error

* rebase master

* move helper functions back to util

* ExitHandleHelper->ExitHandlerHelper

* std::clamp

* struct ExitHandlerHelper to class

* rebase master

* cleanup

* restore ExitHandler

* prefer cassert
2021-06-01 16:53:12 +02:00
Dean Lee 0495426535
Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
2021-05-17 10:31:31 +02:00
Dean Lee 7222d0f20d
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>
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh ec414e2eb1
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>
2021-05-04 22:00:11 -07:00
Adeeb Shihadeh 8a280fbb8e bump cereal 2021-05-03 20:47:11 -07:00
Adeeb Shihadeh 9151f55e5d
android logcatd test reliability (#20284)
* android logcatd test reliability

* remove that

* more fix

Co-authored-by: Comma Device <device@comma.ai>
2021-03-08 16:47:28 -08:00
Adeeb Shihadeh bb0f91791a
android logcatd fixes + better test (#20036)
Co-authored-by: Comma Device <device@comma.ai>
2021-02-07 17:29:52 -08:00
Comma Device 366292a059 fix logcatd after bugfix 2021-02-03 22:57:34 -08:00
Dean Lee 1b140bdbca
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>
2021-02-03 22:24:05 -08:00
Dean Lee 91504176e4
Don't call function in assert (#19997) 2021-02-02 13:18:11 +01:00
Adeeb Shihadeh 49d4d58201
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>
2021-02-01 15:15:29 -08:00
Dean Lee 1e9e7264fa
Fix loggcatd: removed duplicate call to android_logger_list_free (#19903) 2021-01-24 14:37:12 -08:00
Dean Lee 595830135b
merge utilpp.h into util.h (#19710) 2021-01-10 14:57:32 -08:00
Comma Device 61bc7f73fa logcatd_android: use sleep_for instead of usleep 2021-01-06 13:04:08 -08:00
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
2021-01-05 20:19:53 -08:00
Adeeb Shihadeh a399ec530d
make android logcat exit cleanly (#19666)
* make android logcat exit cleanly

* clean up cpu usage script

Co-authored-by: Comma Device <device@comma.ai>
2021-01-05 15:10:55 -08:00
Dean Lee 6104e4c09e
simplify logcatd (#19640)
* simplify logcatd

* add assert

* revert opendbc

* revert opendbc
2021-01-04 16:48:04 +01:00
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>
2020-12-29 22:32:03 -08:00
Willem Melching a4ccfcffe8
Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

* Add include for usleep
2020-10-13 16:01:07 +02:00
Adeeb Shihadeh 4d5733924a
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>
2020-09-12 21:48:15 -07:00
Willem Melching 5782efe3ae
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
2020-08-26 17:09:23 +02:00
Willem Melching ab5af232b2
Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
2020-05-21 16:04:33 -07:00
Dean Lee 75abfe28d5
fix wrong order of cleanup calls (#1461) 2020-05-03 08:28:10 -07:00
Willem Melching 45410ee8a8 Fix linter and compiler 2020-03-20 16:28:14 -07:00
Willem Melching c818f1df37 rename event name instead of service 2020-03-20 16:11:27 -07:00
Willem Melching 196b28e311 fix androidLogEntry socket name 2020-03-20 15:59:48 -07:00
Willem Melching 12ff088b42 Fix kernel logging in logcatd, fixes #957 2020-03-17 16:35:39 -07:00
George Hotz da079d47d7 logcatd, loggerd, mapd, modeld, proclogd 2020-01-17 11:20:17 -08:00