/trusty/user/base/tools/ |
D | test_manifest_compiler.py | 25 log = manifest_compiler.Log() 27 data = manifest_compiler.get_string(config_data, "data", constants, log) 29 self.assertTrue(log.error_occurred()) 35 log = manifest_compiler.Log() 38 data = manifest_compiler.get_string(config_data, "data", constants, log) 40 self.assertFalse(log.error_occurred()) 46 log = manifest_compiler.Log() 48 data = manifest_compiler.get_string(config_data, "data", constants, log) 50 self.assertFalse(log.error_occurred()) 56 log = manifest_compiler.Log() [all …]
|
D | manifest_compiler.py | 321 def get_constant(constants, key, type_, log): argument 327 log.error(f"{key} constant type mismatch, expected type is {type_}") 333 def get_string(manifest_dict, key, constants, log, optional=False, argument 340 log.error(f"Manifest is missing required attribute - {key}") 348 const_value = get_constant(constants, value, type_, log) 352 return coerce_to_string(value, key, log) 355 def coerce_to_string(value, key, log): argument 357 log.error( 365 def get_int(manifest_dict, key, constants, log, optional=False, argument 372 log.error(f"Manifest is missing required attribute - {key}") [all …]
|
/trusty/kernel/lib/memlog/ |
D | memlog.c | 62 struct memlog* log; in memlog_get_by_id() local 63 list_for_every_entry(&log_list, log, struct memlog, entry) { in memlog_get_by_id() 64 if (log->client_id == client_id && log->buf_id == buf_id) { in memlog_get_by_id() 65 return log; in memlog_get_by_id() 76 static void __memlog_write(struct memlog* log, const char* str, size_t len) { in __memlog_write() argument 79 struct log_rb* rb = log->rb; in __memlog_write() 91 offset &= (log->rb_sz - 1); in __memlog_write() 97 static void memlog_write(struct memlog* log, const char* str, size_t len) { in memlog_write() argument 105 __memlog_write(log, &str[i * chunk_size], chunk_size); in memlog_write() 109 __memlog_write(log, &str[i * chunk_size], rem); in memlog_write() [all …]
|
/trusty/user/base/lib/trusty-log/src/ |
D | lib.rs | 21 use log::{Level, Log, Metadata, Record}; 42 type FormatFn = Box<dyn Fn(&log::Record) -> String + Sync + Send>; 58 log_level: log::Level, 67 pub fn with_min_level(mut self, level: log::Level) -> Self { in with_min_level() 74 F: Fn(&log::Record) -> String + Sync + Send + 'static, in format() 104 fn log(&self, record: &Record) { in log() method 139 log::set_logger(global_logger).expect("Could not set global logger"); in init_with_config() 140 log::set_max_level(log_level_filter); in init_with_config()
|
/trusty/user/base/lib/unittest-rust/src/ |
D | lib.rs | 35 use log::{Log, Metadata, Record}; 152 fn log(&self, record: &Record) { in log() method 156 self.stderr_logger.log(record); in log() 179 log::info!("[ {} ] {}", msg, test.name); in print_status() 226 log::info!("[==========] {} tests ran.", total_ran); in on_connect() 228 log::info!("[ PASSED ] {} tests.", passed_tests); in on_connect() 231 log::info!("[ SKIPPED ] {} tests.", skipped_tests); in on_connect() 234 log::info!("[ FAILED ] {} tests.", failed_tests); in on_connect() 264 log::set_logger(&LOGGER).expect("Could not set global logger"); in test_main_static_abort() 265 log::set_max_level(log::LevelFilter::Info); in test_main_static_abort()
|
/trusty/kernel/lib/ubsan/ |
D | ubsan.c | 144 static void log(struct source_location* location, in log() function 214 log(&data->loc, overflow_kind, details); in handle_overflow() 256 log(&data->loc, "negation overflow", details); in UBSAN_HANDLER() 269 log(&data->loc, "pointer_overflow", details); in UBSAN_HANDLER() 296 log(&data->loc, "implicit conversion", details); in UBSAN_HANDLER() 313 log(&data->loc, "invalid builtin usage", details); in UBSAN_HANDLER() 340 log(&data->loc, "type mismatch", details); in UBSAN_HANDLER() 346 log(&data->loc, "hit a supposedly unreachable point", ""); in UBSAN_HANDLER() 353 log(&data->loc, "hit a missing return statement", ""); in UBSAN_HANDLER() 397 log(&data->loc, "shift out of bounds", details); in UBSAN_HANDLER() [all …]
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | lib.rs | 67 log::error!("unknown response cmd: {:?}", resp); in validate_response() 164 log::error!("unexpected handle: {:?}", handle); in deserialize() 171 log::error!("response too small"); in deserialize() 181 log::error!("buffer too short or misaligned"); in deserialize() 188 log::error!("response payload size is not as advertised"); in deserialize() 225 log::error!("Status is not SUCCESS. Actual: {:?}", response.status); in recv_resp() 235 log::error!("response payload is too large to fit into buffer"); in read_payload() 273 log::error!("DICE artifacts buffer must not be empty"); in get_dice_artifacts() 336 log::error!("bcc buffer must not be empty"); in get_bcc() 378 log::error!("cose_sign1 buffer must not be empty"); in sign_data() [all …]
|
/trusty/user/base/lib/unittest-rust/ |
D | rules.mk | 25 $(call FIND_CRATE,log) \ 28 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/rust-hello-world/ |
D | rules.mk | 29 $(call FIND_CRATE,log) \ 31 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/secretkeeper/app/ |
D | rules.mk | 31 $(call FIND_CRATE,log) \ 33 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/rust-hello-world/app/ |
D | rules.mk | 29 $(call FIND_CRATE,log) \ 31 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/hwwsk/ |
D | rules.mk | 30 $(call FIND_CRATE,log) \ 31 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/skel_rust/ |
D | rules.mk | 31 $(call FIND_CRATE,log) \ 34 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/hwcryptohal/server/app/ |
D | rules.mk | 32 $(call FIND_CRATE,log) \ 33 trusty/user/base/lib/trusty-log \
|
D | main.rs | 18 use log::info;
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | lib.rs | 117 log::error!("slot_id cannot be an empty string"); in get_keyslot_data() 122 log::error!("keyslot_data cannot be empty"); in get_keyslot_data() 140 log::error!("unknown response cmd: {:?}", response.cmd); in get_keyslot_data() 147 log::error!( in get_keyslot_data() 181 log::error!("if key context is empty, key buffer must also be empty"); in derive() 189 log::error!("src context length ({:?}) > ({:?})", src.len(), MAX_PAYLOAD_LEN); in derive() 194 log::error!("key buffer length ({:?}) > ({:?})", key_buf.len(), MAX_PAYLOAD_LEN); in derive() 230 log::error!("unknown response cmd: {:?}", response.cmd); in derive() 237 log::error!( in derive() 589 log::error!("response too small to be valid"); in deserialize() [all …]
|
/trusty/user/app/storage/test/storage-unittest-aidl/ |
D | aidl-test-inc.mk | 20 $(call FIND_CRATE,log) \ 26 trusty/user/base/lib/trusty-log \
|
/trusty/kernel/platform/generic-x86_64/rust/src/ |
D | lib.rs | 96 log::error!("search_for_rsdp_bios failed: {error:?}"); in platform_acpi_init_func() 103 log::error!("filed to find mcfg_table: {error:?}"); in platform_acpi_init_func() 112 log::error!( in platform_acpi_init_func()
|
/trusty/user/app/keymint/app/ |
D | rules.mk | 38 $(call FIND_CRATE,log) \ 40 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/secretkeeper/ |
D | rules.mk | 35 $(call FIND_CRATE,log) \ 38 trusty/user/base/lib/trusty-log \
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | rules.mk | 39 $(call FIND_CRATE,log) \ 40 trusty/user/base/lib/trusty-log \
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | lib.rs | 88 log::error!("response too small"); in deserialize() 107 log::error!("unrecognized command request: {:?}", cmd); in deserialize() 148 log::error!("response too small"); in deserialize() 224 log::error!("response too small"); in deserialize() 242 log::error!( in validate_cmd() 354 log::error!("response payload is too large to fit into the buffer"); in create_key() 400 log::error!("response payload is too large to fit into the buffer"); in export_key()
|
/trusty/kernel/platform/generic-x86_64/rust/ |
D | rules.mk | 12 external/rust/crates/log \
|
/trusty/user/base/lib/trusty-log/ |
D | rules.mk | 26 $(call FIND_CRATE,log) \
|
/trusty/user/app/keymint/ |
D | rules.mk | 35 $(call FIND_CRATE,log) \ 40 trusty/user/base/lib/trusty-log \
|