4ab84b5dc1 
								
							
								 
							
						 
						
							
							
								
								thermald: common min date ( #28457 )  
							
							... 
							
							
 
							
							* thermald: common min date
* add to release files
old-commit-hash: d96361970b 
							
						 
						
							2 years ago  
				
					
						
							
							
								 
						
							
							
								c4a75225e8 
								
							
								 
							
						 
						
							
							
								
								params: specify path using PARAMS_ROOT ( #28257 )  
							
							... 
							
							
 
							
							* Add PARAMS_ROOT env var
* Change getenv type signature
* Use getenv default_val
old-commit-hash: b43a875ba2 
							
						 
						
							2 years ago  
				
					
						
							
							
								 
						
							
							
								3ff040d52c 
								
							
								 
							
						 
						
							
							
								
								params: cleanup old params that aren't defined ( #28017 )  
							
							... 
							
							
 
							
							* delete files that are not defined in the keys
* assert after create file
* remove util::remove_files_in_dir
* cleanup
* fix up test
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 10a1b8b7b1 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								725e0665df 
								
							
								 
							
						 
						
							
							
								
								common: add new class OpenPilotPrefix ( #26753 )  
							
							... 
							
							
 
							
							* new class OpenPilotPrefix
* move random_string to util
* rename file
* style
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d8254e959 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								461206de1c 
								
							
								 
							
						 
						
							
							
								
								boardd: SPI support ( #26374 )  
							
							... 
							
							
 
							
							* spi handle
* put usb back
* handle eintr
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ba9a5107b 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								389558776e 
								
							
								 
							
						 
						
							
							
								
								params: remove all files if call clearAll with the ParamKeyType.ALL key. ( #26000 )  
							
							... 
							
							
 
							
							* remove all files in dir
* fix test case name
old-commit-hash: 8dbb25e683 
							
						 
						
							3 years ago  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								dd7c226097 
								
							
								 
							
						 
						
							
							
								
								util: move all functions into util namespace ( #23203 )  
							
							... 
							
							
 
							
							old-commit-hash: 9decd3d8a2 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								669ed5ff2b 
								
							
								 
							
						 
						
							
							
								
								Put journal and nvme stats in bootlog ( #22849 )  
							
							... 
							
							
 
							
							* Run commands and put output in bootlog
* log nvme
* fix indent
* cereal without event
* use regular array
old-commit-hash: fa0cbe5d40 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								7ff2217c8b 
								
							
								 
							
						 
						
							
							
								
								util: remove function to_hex ( #22792 )  
							
							... 
							
							
 
							
							old-commit-hash: ff33ca3413 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a602b4a1a0 
								
							
								 
							
						 
						
							
							
								
								util:: remove unused funtion base_name ( #22759 )  
							
							... 
							
							
 
							
							old-commit-hash: 8da3cd3cdd 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								ebffd5f3ad 
								
							
								 
							
						 
						
							
							
								
								util: add safe write functions ( #22160 )  
							
							... 
							
							
 
							
							* add safe write functions
* log error
* bzfile safe_fopen&safe_flush
* update test_case
* trigger ci
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 652c42da2c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								25cfa2b65a 
								
							
								 
							
						 
						
							
							
								
								tici: affine loggerd to efficiency cores ( #22581 )  
							
							... 
							
							
 
							
							old-commit-hash: 84de248fa7 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								48b7754ab5 
								
							
								 
							
						 
						
							
							
								
								fix: util::read_files_in_dir does not always return a correct result ( #21883 )  
							
							... 
							
							
 
							
							* fix bug
* use de->d_type==DT_REG
* Revert "use de->d_type==DT_REG"
This reverts commit ecb38c823083710b14ee 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								4c17c06799 
								
							
								 
							
						 
						
							
							
								
								Handle EINTR for all syscalls that can return it ( #21948 )  
							
							... 
							
							
 
							
							old-commit-hash: f02c8d0e2c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								16c727b65c 
								
							
								 
							
						 
						
							
							
								
								fix: util::file_exists will return false on no permissions ( #21880 )  
							
							... 
							
							
 
							
							* fix bug
* add test case
old-commit-hash: 3a7959b5ff 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								94d534afea 
								
							
								 
							
						 
						
							
							
								
								hw.h: move Hardware-related paths to namespace Path ( #21826 )  
							
							... 
							
							
 
							
							* refactor getenv and path
* apply review
old-commit-hash: fefc70b4ca 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c40edd4b56 
								
							
								 
							
						 
						
							
							
								
								qt/util: new function getDongleId ( #21810 )  
							
							... 
							
							
 
							
							* new function getDongleId
* return std::optional
old-commit-hash: 073b96e5d1 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								31ea9413bb 
								
							
								 
							
						 
						
							
							
								
								util/read_files_in_dir: return map by value ( #21815 )  
							
							... 
							
							
 
							
							old-commit-hash: 11ffbc6936 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								32cde15035 
								
							
								 
							
						 
						
							
							
								
								bump date in time_valid check  
							
							... 
							
							
 
							
							old-commit-hash: 86630effcf 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								f03ca47c9c 
								
							
								 
							
						 
						
							
							
								
								util.cc: refactor read_file ( #21350 )  
							
							... 
							
							
 
							
							old-commit-hash: ac71384a28 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								28a9781c51 
								
							
								 
							
						 
						
							
							
								
								util::read_file: fix reading from sysfs and add test case ( #21325 )  
							
							... 
							
							
 
							
							* add sysfs test case
* Revert "util.cc: refactor read_file (#21321 )"
This reverts commit 2a9ba3e867e4ba8ea8818a5be24807301a945f17.
old-commit-hash: d90d9b2280 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0ef41b3e94 
								
							
								 
							
						 
						
							
							
								
								util.cc: refactor read_file ( #21321 )  
							
							... 
							
							
 
							
							* mode read & open once
* change return statement for better readibility
* apply reviews
* can't open with ate flag
old-commit-hash: 8d5c61eefe 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								2476a66cd9 
								
							
								 
							
						 
						
							
							
								
								Revert "util.cc: refactor read_file ( #21295 )"  
							
							... 
							
							
 
							
							This reverts commit 32dd5c2454e3f3fca028dacd24bc4758e1134295.
old-commit-hash: 7dec206437 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b83e0f87a8 
								
							
								 
							
						 
						
							
							
								
								util.cc: refactor read_file ( #21295 )  
							
							... 
							
							
 
							
							* mode read & open once
* change return statement for better readibility
* apply reviews
* Update selfdrive/common/util.cc
* fix
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 190a845505 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								6bfc7f4ca5 
								
							
								 
							
						 
						
							
							
								
								common/util.cc: add unit test, fix bug in util::read_file ( #21251 )  
							
							... 
							
							
 
							
							* add test case for util
* fix bug in read_file
* gitignore test_util
* better test
* referer
* more
* more test
* REQUIRE size
* apply reviews
* only test binary
* simplify the test
* read  non-permission
* debug print
* remove /etc/shadow
* test read directory
* Update selfdrive/common/tests/test_util.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a873a23e0d 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								196f96f057 
								
							
								 
							
						 
						
							
							
								
								UI: check if dongle id is valid before calling API ( #21275 )  
							
							... 
							
							
 
							
							old-commit-hash: e85fa7f1c9 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								147b355dde 
								
							
								 
							
						 
						
							
							
								
								add space after function name and if statement ( #21225 )  
							
							... 
							
							
 
							
							old-commit-hash: e4e669bb0f 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								51cf285c31 
								
							
								 
							
						 
						
							
							
								
								Passing arguments by reference ( #21205 )  
							
							... 
							
							
 
							
							old-commit-hash: ee46672d3c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								497472932a 
								
							
								 
							
						 
						
							
							
								
								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
old-commit-hash: 65e0b1e699 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								badc577e1d 
								
							
								 
							
						 
						
							
							
								
								read_files_in_dir: closedir before return ( #20903 )  
							
							... 
							
							
 
							
							old-commit-hash: c08ee575f8 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								8b785f4744 
								
							
								 
							
						 
						
							
							
								
								store all files in /sys/fs/pstore in bootlog ( #20875 )  
							
							... 
							
							
 
							
							* store all files in /sys/fs/pstore in bootlog
* whitespace
* fix bootlog test
old-commit-hash: 4742f55749 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								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 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								829afdfb87 
								
							
								 
							
						 
						
							
							
								
								ate sets failbit on some platforms  
							
							... 
							
							
 
							
							old-commit-hash: d90136c1d0 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								6f27d70605 
								
							
								 
							
						 
						
							
							
								
								fix reading procfs files  
							
							... 
							
							
 
							
							old-commit-hash: 6f21993915 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								7534abdd50 
								
							
								 
							
						 
						
							
							
								
								util.cc: reduce two read_file functions into one ( #20655 )  
							
							... 
							
							
 
							
							* no need to malloc one extra byte
* combine two read_file into a faster one
* cleanup #include
* use resize
* apply suggestions from review
* space
* rebase master
old-commit-hash: fe2f63849a 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								4d6c98aa6b 
								
							
								 
							
						 
						
							
							
								
								Add watchdog check to manager ( #20277 )  
							
							... 
							
							
 
							
							* this should work but doesnt
* Only offroad
* works
* make it work offorad
* reduce diff
* cleanup
* need util
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a94ba4fb8b 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								4c1919f41e 
								
							
								 
							
						 
						
							
							
								
								merge utilpp.h into util.h ( #19710 )  
							
							... 
							
							
 
							
							old-commit-hash: 595830135b 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								1089f8fa8f 
								
							
								 
							
						 
						
							
							
								
								fix build warning ( #2365 )  
							
							... 
							
							
 
							
							* fix build warning
* Update selfdrive/common/util.c
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0bbd080a04 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								f92c30b164 
								
							
								 
							
						 
						
							
							
								
								fix build warnings ( #2355 )  
							
							... 
							
							
 
							
							* fix build warnings
* cython fixes
* cleanup transformations build
* little more
old-commit-hash: 96b637737b 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								ef8b6d20fb 
								
							
								 
							
						 
						
							
							
								
								add function write_file() ( #2181 )  
							
							... 
							
							
 
							
							* add function write_file()
* handle EAGIN & EWOULDBLOCK
* don't  handle errno
old-commit-hash: 6476207009 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								e5f5cdaccf 
								
							
								 
							
						 
						
							
							
								
								tici: fix set_realtime_priority ( #2124 )  
							
							... 
							
							
 
							
							* cleanup and pin modeld to core 5
* Unused import
old-commit-hash: 5c058140ed 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								ebf60a16ad 
								
							
								 
							
						 
						
							
							
								
								use malloc ( #1674 )  
							
							... 
							
							
 
							
							old-commit-hash: b678449707 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								ebed52527b 
								
							
								 
							
						 
						
							
							
								
								Reduce scheduler latency for realtime processes ( #1638 )  
							
							... 
							
							
 
							
							* WIP: reduce boardd and other lags
* Copypasta fault
* Silence spurious startup warning
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071c 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								69678ee181 
								
							
								 
							
						 
						
							
							
								
								calloc an extra byte in read_file  
							
							... 
							
							
 
							
							old-commit-hash: f19d25dd8d 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								189c815e8f 
								
							
								 
							
						 
						
							
							
								
								selfdrive/common  
							
							... 
							
							
 
							
							old-commit-hash: 368a956b96 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								81dd5a50cf 
								
							
								 
							
						 
						
							
							
								
								root commit  
							
							... 
							
							
 
							
							old-commit-hash: 6c33a5c1f3 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								fa4b6f33d1 
								
							
								 
							
						 
						
							
							
								
								openpilot v0.7.1 release  
							
							... 
							
							
 
							
							old-commit-hash: 8da8b6135c 
							
						 
						
							6 years ago