/developtools/hiperf/include/ |
H A D | perf_record_format.h | 32 u32 pid = 0; 33 u32 tid = 0; /* if PERF_SAMPLE_TID set */ 37 u32 cpu = 0; 38 u32 res = 0; /* if PERF_SAMPLE_CPU set */ 54 u32 idx = 0; 55 u32 tid = 0; 56 u32 cpu = 0; 57 u32 reserved__ = 0; 74 u32 pid = 0; 75 u32 ti [all...] |
H A D | perf_event_record.h | 179 PerfRecordAuxtrace(u64 size, u64 offset, u64 reference, u32 idx, u32 tid, u32 cpu, u32 pid); 195 PerfRecordMmap(bool inKernel, u32 pid, u32 tid, u64 addr, u64 len, u64 pgoff, 209 PerfRecordMmap2(bool inKernel, u32 pid, u32 tid, u64 addr, u64 len, u64 pgoff, u32 maj, u32 mi [all...] |
H A D | spe_decoder.h | 252 u32 type; 254 u32 op; 255 u32 latency; 297 u32 type;
|
/developtools/hdc/hdc_rust/src/serializer/ |
H A D | native_struct.rs | 22 pub session_id: u32, 30 pub channel_id: u32, 31 pub command_flag: u32, 42 pub data_size: u32, 50 pub session_id: u32, 51 pub data_size: u32, 52 pub package_index: u32, 53 pub data_checksum: u32, 54 pub head_checksum: u32, 62 pub session_id: u32, [all...] |
/developtools/hdc/hdc_rust/src/daemon_lib/ |
H A D | daemon_unity.rs | 36 async fn echo_client(session_id: u32, channel_id: u32, message: &str, level: MessageLevel) { 40 async fn echo_device_mode_result(session_id: u32, channel_id: u32, result: bool, message: &str) { 56 async fn echo_reboot_result(session_id: u32, channel_id: u32, result: bool, message: &str) { 72 async fn echo_root_run_mode_result(session_id: u32, channel_id: u32, result: bool, message: &str) { 83 async fn set_root_run_enable(session_id: u32, channel_id: u32, roo [all...] |
H A D | daemon_app.rs | 44 pub fn new(_session_id: u32, _channel_id: u32) -> Self { in new() 53 type AppTaskMap_ = Arc<Mutex<HashMap<(u32, u32), DaemonAppTask_>>>; 64 pub async fn put(session_id: u32, channel_id: u32, value: DaemonAppTask) { 70 pub async fn exsit(session_id: u32, channel_id: u32) -> bool { 77 pub async fn remove(session_id: u32, channel_id: u32) [all...] |
H A D | shell.rs | 44 session_id: u32, 45 channel_id: u32, 63 async fn shell_channel_close(channel_id: u32, session_id: u32){ 72 pub async fn stop_task(session_id: u32) { 85 pub session_id: u32, 86 pub channel_id: u32, 111 fn init_pty_process(cmd: Option<String>, _channel_id: u32) -> io::Result<PtyProcess> { in init_pty_process() 167 session_id: u32, 168 channel_id: u32, [all...] |
H A D | bridge.rs | 115 fn check_protocol_head(&mut self) -> io::Result<(u32, u32, u32)> { in check_protocol_head() 136 type BridgeMap_ = Arc<RwLock<HashMap<u32, BridgeWriter_>>>; 149 pub async fn put(session_id: u32, data: TaskMessage) { 160 pub async fn send_channel_message(channel_id: u32, buf: Vec<u8>) -> io::Result<()> { 169 u32::to_be_bytes(buf.len() as u32).as_slice(), 183 pub async fn start(id: u32, wr: BridgeWriter) { 191 pub async fn end(id: u32) { [all...] |
H A D | auth.rs | 55 type AuthStatusMap_ = Arc<RwLock<HashMap<u32, AuthStatus>>>; 68 pub async fn get(session_id: u32) -> AuthStatus { 76 async fn put(session_id: u32, auth_status: AuthStatus) { 87 pub async fn remove(session_id: u32) { 98 pub async fn handshake_init(task_message: TaskMessage) -> io::Result<(u32, TaskMessage)> { 164 async fn make_sign_message(session_id: u32, token: String, channel_id: u32) -> TaskMessage { 180 async fn make_bypass_message(session_id: u32, channel_id: u32, host_ver: &str) -> TaskMessage { 207 async fn create_basic_channel(session_id: u32, channel_i [all...] |
H A D | task.rs | 33 async fn daemon_shell_task(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 90 async fn remove_task(session_id: u32, channel_id: u32) { 103 async fn daemon_channel_close(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 123 async fn daemon_file_task(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 239 async fn daemon_hilog_task(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 258 async fn daemon_bug_report_task(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 321 pub async fn dispatch_task(task_message: TaskMessage, session_id: u32) -> io::Result<()> { 328 crate::error!("auth status is nok, cannt accept cmd: {}", cmd as u32); 343 format!("auth status is nok, cannt accept cmd: {}", cmd as u32), [all...] |
H A D | task_manager.rs | 42 pub async fn free_session(session_id: u32) { 67 pub async fn stop_task(session_id: u32) {
|
/developtools/hdc/hdc_rust/src/transfer/ |
H A D | uart_wrapper.rs | 60 response_waiters: HashMap<u32, Waiter>, 62 empty_waiters: HashMap<u32, Waiter>, 76 async fn start_session(session_id: u32) { 83 async fn wait_response(session_id: u32) { 92 async fn wakeup_response_wait(session_id: u32) { 101 async fn wait_empty(session_id: u32) { 110 async fn wakeup_empty_wait(session_id: u32) { 129 session_id: u32, 132 package_index: u32, 135 retry_count: u32, [all...] |
H A D | uart.rs | 123 fn check_protocol_head(&mut self) -> io::Result<(u32, u32, u32)> { in check_protocol_head() 174 pub fn build_header(session_id: u32, option: u16, length: usize, package_index: u32) -> Vec<u8> { in build_header() 176 session_id: u32::to_le(session_id), in build_header() 179 data_size: u32::to_le(length as u32), in build_header() 188 session_id: u32, in build_header_obj() 191 package_index: u32, in build_header_obj() [all...] |
H A D | buffer.rs | 48 type ConnectTypeMap_ = Arc<RwLock<HashMap<u32, ConnectType>>>; 61 pub async fn put(session_id: u32, conn_type: ConnectType) { 68 pub async fn get(session_id: u32) -> Option<ConnectType> { 74 pub async fn del(session_id: u32) { 82 pub async fn get_all_session() -> Vec<u32> { 111 map: Mutex<HashMap<u32, TcpWriter_>>, 129 async fn put(session_id: u32, data: TaskMessage) { 141 pub async fn send_channel_message(channel_id: u32, buf: Vec<u8>) -> io::Result<()> { 150 u32::to_be_bytes(buf.len() as u32) [all...] |
H A D | usb.rs | 161 fn check_protocol_head(&mut self) -> io::Result<(u32, u32, u32)> { in check_protocol_head() 175 Ok((u32::from_be(head.data_size), 0, u32::to_be(head.session_id))) in check_protocol_head() 216 pub fn build_header(session_id: u32, option: u8, length: usize) -> Vec<u8> { in build_header() 218 session_id: u32::to_be(session_id), in build_header() 221 data_size: u32::to_be(length as u32), in build_header()
|
/developtools/hdc/hdc_rust/src/host/ |
H A D | host_app.rs | 42 pub fn new(_session_id: u32, _channel_id: u32) -> Self { in new() 51 type HostAppTaskMap_ = Arc<Mutex<HashMap<(u32, u32), HostAppTask_>>>; 64 pub async fn put(session_id: u32, channel_id: u32, host_app_task: HostAppTask) { 73 pub async fn exist(session_id: u32, channel_id: u32) -> Result<bool, ()> { 79 pub async fn remove(session_id: u32, channel_id: u32) [all...] |
/developtools/hdc/hdc_rust/src/common/ |
H A D | hdcfile.rs | 47 pub file_cnt: u32, 56 pub fn new(_session_id: u32, _channel_id: u32) -> Self { in new() 64 type FileTaskMap_ = Arc<Mutex<HashMap<(u32, u32), HdcFile_>>>; 75 pub async fn put(session_id: u32, channel_id: u32, value: HdcFile) { 81 pub async fn exsit(session_id: u32, channel_id: u32) -> bool { 88 pub async fn remove(session_id: u32, channel_i [all...] |
H A D | hdctransfer.rs | 62 pub last_error: u32, 75 pub session_id: u32, 76 pub channel_id: u32, 78 pub file_cnt: u32, 91 pub fn new(_session_id: u32, _channel_id: u32) -> Self { in new() 125 fn set_file_permission(path: String, mode: u32) -> std::io::Result<()> { in set_file_permission() 131 fn set_dir_permissions_recursive(dir: &Path, mode: u32) -> std::io::Result<()> { in set_dir_permissions_recursive() 146 fn create_dir_all_with_permission(path: String, mode: u32) -> std::io::Result<()> { in create_dir_all_with_permission() 277 _channel_id_: u32, in spawn_handler() [all...] |
H A D | forward.rs | 55 pub const ARG_COUNT2: u32 = 2; 64 pub session_id: u32, 65 pub channel_id: u32, 74 session_id: u32, in new() 75 channel_id: u32, in new() 104 session_id: u32, 105 channel_id: u32, 108 id: u32, 193 type TcpWriterMap_ = Arc<RwLock<HashMap<u32, TcpWriter>>>; 205 async fn put(id: u32, w [all...] |
H A D | jdwp.rs | 47 type SocketpairMap = Arc<Mutex<HashMap<u32, SocketPairVec>>>; 48 type Trackers = Arc<Mutex<Vec<(u32, u32, DisplayType)>>>; 91 async fn put_socketpair(&self, target_pid: u32, fd: i32, fd2: i32) { 103 pub async fn send_fd_to_target(&self, target_pid: u32, fd: i32, fd2: i32, parameter: &str) -> bool { 148 pub async fn add_tracker(&self, channel_id: u32, session_id: u32, display: DisplayType) { 212 let u32_size = std::mem::size_of::<u32>(); 214 let len = u32::from_le_bytes(buffer[0..u32_size].try_into().unwrap_or_default()); 215 let pid = u32 [all...] |
/developtools/profiler/hiebpf/include/ |
H A D | vmlinux.h | 38 typedef __u32 u32; typedef 77 typedef u32 __kernel_dev_t; 103 typedef u32 uint32_t; 440 u32 *uaddr; 441 u32 val; 442 u32 flags; 443 u32 bitset; 445 u32 *uaddr2; 472 u32 count; 473 u32 need_resche [all...] |
H A D | bpf_log_writer.h | 15 u32 bpf_log_level_index = BPF_LOG_LEVEL_INDEX; \ 16 u32* bpf_log_level_ptr = bpf_map_lookup_elem(&config_var_map, &bpf_log_level_index); \ 18 u32 bpf_log_level = BPF_LOG_NONE; \ 19 bpf_probe_read_kernel(&bpf_log_level, sizeof(u32), bpf_log_level_ptr); \
|
/developtools/profiler/hiebpf/src/ |
H A D | hiebpf.bpf.c | 46 __uint(key_size, sizeof(u32)); 47 __uint(value_size, sizeof(u32)); 56 __uint(key_size, sizeof(u32)); 57 __uint(value_size, sizeof(u32)); 78 __uint(key_size, sizeof(u32)); 95 u32 index = UNWIND_FLAG_INDEX; in unwind_stack() 96 const u32 *unwind_ptr = bpf_map_lookup_elem(&config_var_map, &index); in unwind_stack() 97 u32 unwind = 0; in unwind_stack() 98 int err = bpf_probe_read_kernel(&unwind, sizeof(u32), unwind_ptr); in unwind_stack() 135 cmplt_event->pid = (u32) pid_tgi in emit_fstrace_event() [all...] |
/developtools/hdc/hdc_rust/src/host_transfer/ |
H A D | host_usb.rs | 162 fn check_protocol_head(&mut self) -> io::Result<(u32, u32, u32)> { in check_protocol_head() 176 Ok((u32::from_be(head.data_size), 0, head.session_id)) in check_protocol_head() 195 pub fn build_header(session_id: u32, option: u8, length: usize) -> Vec<u8> { in build_header() 197 session_id: u32::to_be(session_id), in build_header() 200 data_size: u32::to_be(length as u32), in build_header() 207 let expected_size = u32::from_be_bytes(data.try_into().unwrap()); 213 tx: BoundedSender<(TaskMessage, u32)>, [all...] |
/developtools/hdc/hdc_rust/src/ |
H A D | config.rs | 68 pub channel_id: u32, 74 #[repr(u32)] 161 impl TryFrom<u32> for HdcCommand { 163 fn try_from(cmd: u32) -> Result<Self, ()> { in try_from() 301 pub const MAX_PORT_NUM: u32 = 65535; 310 pub const MAX_UART_SIZE_IOBUF: u32 = 4096; 375 const HDC_VERSION_NUMBER: u32 = 0x30000400;
|