Home
last modified time | relevance | path

Searched refs:panic (Results 1 - 12 of 12) sorted by relevance

/base/hiviewdfx/faultloggerd/tools/panic_maker/
H A Dmain.rs21 use std::{panic, thread};
50 panic!("panic in main thread"); in panic_main()
55 panic!("panic in child thread"); in panic_child()
/base/startup/init/services/modules/reboot/
H A Dreboot.c92 PLUGIN_LOGI("Don't panic in resuce mode!"); in DoRebootPanic()
99 FILE *panic = fopen("/proc/sysrq-trigger", "wb"); in DoRebootPanic() local
100 if (panic == NULL) { in DoRebootPanic()
103 if (fwrite((void *)"c", 1, 1, panic) != 1) { in DoRebootPanic()
104 (void)fclose(panic); in DoRebootPanic()
105 PLUGIN_LOGI("fwrite to panic failed"); in DoRebootPanic()
108 (void)fclose(panic); in DoRebootPanic()
211 AddRebootCmdExecutor("panic", DoRebootPanic); in RebootAdpInit()
212 (void)AddCmdExecutor("panic", DoRebootPanic); in RebootAdpInit()
/base/hiviewdfx/faultloggerd/interfaces/rust/panic_handler/
H A Dlib.rs16 //! panic handler for Rust.
24 use std::panic;
25 use std::panic::PanicInfo;
37 /// panic handler
39 panic::set_hook(Box::new(move |info| { in panic_handler()
97 /// Initializes the panic hook
/base/request/request/services/src/manage/
H A Dnotifier.rs154 panic!("unexpected event: {:?}", info); in ut_notify_progress()
164 panic!("unexpected event: {:?}", info); in ut_notify_progress()
211 panic!("unexpected event: {:?}", info); in ut_notify_pause_resume()
224 panic!("unexpected event: {:?}", info); in ut_notify_pause_resume()
261 panic!("unexpected event: {:?}", info); in ut_notify_remove()
299 panic!("unexpected event: {:?}", info); in ut_notify_completed()
337 panic!("unexpected event: {:?}", info); in ut_notify_failed()
377 panic!("unexpected event: {:?}", info); in ut_notify_pause_resume_completed()
382 panic!("unexpected event: {:?}", info); in ut_notify_pause_resume_completed()
415 panic!("unexpecte in ut_notify_pause_resume_failed()
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/stacktrace_rust/
H A Dmain.rs56 Err(why) => panic!("couldn't create {}: {:?}", display, why), in test_print_trace()
/base/msdp/device_status/rust/data/sys/src/
H A Dplugin_manager.rs35 pub trait IPlugin: Any + Send + Sync + std::panic::RefUnwindSafe {
/base/request/request/services/tests/
H A Dsearch.rs23 Err(_) => panic!("SystemTime before UNIX EPOCH!"), in get_current_timestamp()
/base/security/asset/frameworks/definition/src/
H A Dextension.rs38 panic!("Unexpected data type, it should be bool, uint32 or bytes."); in data_type()
/base/request/request/services/src/
H A Dability.rs70 std::panic::set_hook(Box::new(|info| unsafe { in init()
/base/request/request/services/src/utils/
H A Dmod.rs66 Err(_) => panic!("SystemTime before UNIX EPOCH!"),
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/unittest/
H A Dbbox_detector_unit_test.cpp100 * @tc.steps: step1. construct panic file path in HWTEST_F()
101 * @tc.steps: step2. Analysis panic event in HWTEST_F()
107 "panic+0x1cc/0x3dc", in HWTEST_F()
/base/request/request/test/rustest/src/
H A Dlib.rs392 panic!("http status code is {}", info.status); in check_correct()
560 _ => panic!("Invalid SubscribeType value"), in take_value()

Completed in 6 milliseconds