Editing Talk:LV2 Functions and Syscalls
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 572: | Line 572: | ||
these lv2 syscalls are present, but neither ordinal nor branches are known yet | these lv2 syscalls are present, but neither ordinal nor branches are known yet | ||
sys_usbbtaudio_start_recording_ex | sys_usbbtaudio_start_recording_ex | ||
sys_lwcond_attribute_name_set | |||
sys_lwmutex_attribute_name_set | |||
sys_event_flag_attribute_name_set | |||
sys_semaphore_attribute_name_set | |||
sys_cond_attribute_name_set | |||
sys_mutex_attribute_name_set | |||
sys_raw_spu_mmio_read_ls (no real lv2 syscall, reading mmio address) | sys_raw_spu_mmio_read_ls (no real lv2 syscall, reading mmio address) | ||
sys_raw_spu_mmio_write_ls (no real lv2 syscall, reading mmio address) | sys_raw_spu_mmio_write_ls (no real lv2 syscall, reading mmio address) | ||
sys_raw_spu_mmio_read (no real lv2 syscall, reading mmio address) | sys_raw_spu_mmio_read (no real lv2 syscall, reading mmio address) | ||
sys_raw_spu_mmio_write (no real lv2 syscall, reading mmio address) | sys_raw_spu_mmio_write (no real lv2 syscall, reading mmio address) | ||
sys_event_queue_attribute_name_set | |||
sys_lwcond_signal | |||
sys_lwcond_signal_all | |||
sys_lwcond_signal_to | |||
sys_lwcond_wait | |||
sys_spu_elf_get_segments | sys_spu_elf_get_segments | ||
sys_raw_spu_image_load | sys_raw_spu_image_load | ||
sys_mmapper_allocate_memory | |||
sys_ppu_thread_unregister_atexit | sys_ppu_thread_unregister_atexit | ||
sys_ppu_thread_once | sys_ppu_thread_once | ||
Line 585: | Line 597: | ||
sys_process_atexitspawn | sys_process_atexitspawn | ||
sys_game_process_exitspawn2 | sys_game_process_exitspawn2 | ||
sys_process_is_stack | sys_process_is_stack | ||
debug syscalls | debug syscalls | ||
Line 8,985: | Line 8,997: | ||
scans through all executable segments for syscalls and adds names as comments. | scans through all executable segments for syscalls and adds names as comments. | ||
<source lang="python"> | <source lang="python"> | ||
syscalls = [ | syscalls = [ 1,"sys_process_getpid", | ||
2,"sys_process_wait_for_child", | |||
3,"sys_process_exit", | |||
4,"sys_process_get_status", | |||
5,"sys_process_detach_child", | |||
12,"sys_process_get_number_of_object", | |||
13,"sys_process_get_id", | |||
14,"sys_process_is_spu_lock_line_reservation_address", | |||
18,"sys_process_getppid", | |||
19,"sys_process_kill", | |||
21,"_sys_process_spawn", | |||
22,"sys_process_exit", | |||
23,"sys_process_wait_for_child2", | |||
24,"", | |||
25,"sys_process_get_sdk_version", | |||
26,"_sys_process_exitaswell", | |||
27,"", | |||
28,"_sys_process_get_number_of_objectaswellkinda", | |||
29,"sys_process_get_idaswell", | |||
30,"_sys_process_get_paramsfo", | |||
31,"sys_process_get_ppu_guid", | |||
41,"sys_ppu_thread_exit", | |||
43,"sys_ppu_thread_yield", | |||
44,"sys_ppu_thread_join", | |||
45,"sys_ppu_thread_detach", | |||
46,"sys_ppu_thread_get_join_state", | |||
47,"sys_ppu_thread_set_priority", | |||
48,"sys_ppu_thread_get_priority", | |||
49,"sys_ppu_thread_get_stack_information", | |||
50,"sys_ppu_thread_stop", | |||
51,"sys_ppu_thread_restart", | |||
52,"sys_ppu_thread_create", | |||
53,"sys_ppu_thread_start", | |||
54,"", | |||
55,"", | |||
56,"sys_ppu_thread_rename", | |||
57,"sys_ppu_thread_recover_page_fault", | |||
58,"sys_ppu_thread_get_page_fault_context", | |||
60,"sys_trace_create", | |||
61,"sys_trace_start", | |||
62,"sys_trace_stop", | |||
63,"sys_trace_update_top_index", | |||
64,"sys_trace_destroy", | |||
65,"sys_trace_drain", | |||
66,"sys_trace_attach_process", | |||
67,"sys_trace_allocate_buffer", | |||
68,"sys_trace_free_buffer", | |||
69,"sys_trace_create2", | |||
70,"sys_timer_create", | |||
71,"sys_timer_destroy", | |||
72,"sys_timer_get_information", | |||
73,"sys_timer_start", | |||
74,"sys_timer_stop", | |||
75,"sys_timer_connect_event_queue", | |||
76,"sys_timer_disconnect_event_queue", | |||
77,"sys_trace_create2_in_cbepm", | |||
78,"sys_trace_", | |||
80,"sys_interrupt_tag_create", | |||
81,"sys_interrupt_tag_destroy", | |||
82,"sys_event_flag_create", | |||
83,"sys_event_flag_destroy", | |||
84,"sys_interrupt_thread_establish", | |||
85,"sys_event_flag_wait", | |||
86,"sys_event_flag_trywait", | |||
87,"sys_event_flag_set", | |||
88,"sys_interrupt_thread_eoi", | |||
89,"sys_interrupt_thread_disestablish", | |||
90,"sys_semaphore_create", | |||
91,"sys_semaphore_destroy", | |||
92,"sys_semaphore_wait", | |||
93,"sys_semaphore_trywait", | |||
94,"sys_semaphore_post", | |||
95,"sys_lwmutex_create", | |||
96,"sys_lwmutex_destroy", | |||
97,"sys_lwmutex_lock", | |||
98,"sys_lwmutex_trylock", | |||
99,"sys_lwmutex_unlock", | |||
100,"sys_mutex_create", | |||
101,"sys_mutex_destroy", | |||
102,"sys_mutex_lock", | |||
103,"sys_mutex_trylock", | |||
104,"sys_mutex_unlock", | |||
105,"sys_cond_create", | |||
106,"sys_cond_destroy", | |||
107,"sys_cond_wait", | |||
108,"sys_cond_signal", | |||
109,"sys_cond_signal_all", | |||
110,"sys_cond_signal_to", | |||
111,"sys_lwcond_create", | |||
112,"sys_lwcond_destroy", | |||
113,"sys_lwcond_queue_wait", | |||
114,"sys_semaphore_get_value", | |||
115,"", | |||
116,"", | |||
117,"", | |||
118,"sys_event_flag_clear", | |||
119,"", | |||
120,"sys_rwlock_create", | |||
121,"sys_rwlock_destroy", | |||
122,"sys_rwlock_rlock", | |||
123,"sys_rwlock_tryrlock", | |||
124,"sys_rwlock_runlock", | |||
125,"sys_rwlock_wlock", | |||
126,"sys_rwlock_trywlock", | |||
127,"sys_rwlock_wunlock", | |||
128,"sys_event_queue_create", | |||
129,"sys_event_queue_destroy", | |||
130,"sys_event_queue_receive", | |||
131,"sys_event_queue_tryreceive", | |||
132,"sys_event_flag_cancel", | |||
133,"sys_event_queue_drain", | |||
134,"sys_event_port_create", | |||
135,"sys_event_port_destroy", | |||
136,"sys_event_port_connect_local", | |||
137,"sys_event_port_disconnect", | |||
138,"sys_event_port_send", | |||
139,"sys_event_flag_get", | |||
140,"sys_event_port_connect_ipc", | |||
141,"sys_timer_usleep", | |||
142,"sys_timer_sleep", | |||
143,"sys_time_set_timezone", | |||
144,"sys_time_get_timezone", | |||
145,"sys_time_get_current_time", | |||
146,"sys_time_set_current_time", | |||
147,"sys_time_get_timebase_frequency", | |||
148,"sys_rwlock_trywlock", | |||
150,"sys_raw_spu_create_interrupt_tag", | |||
151,"sys_raw_spu_set_int_mask", | |||
152,"sys_raw_spu_get_int_mask", | |||
153,"sys_raw_spu_set_int_stat", | |||
154,"sys_raw_spu_get_int_stat", | |||
155,"sys_spu_image_get_information?", | |||
156,"sys_spu_image_open", | |||
157,"sys_spu_image_import", | |||
158,"sys_spu_image_close", | |||
159,"sys_raw_spu_load", | |||
160,"sys_raw_spu_create", | |||
161,"sys_raw_spu_destroy", | |||
163,"sys_raw_spu_read_puint_mb", | |||
165,"sys_spu_thread_get_exit_status", | |||
166,"sys_spu_thread_set_argument", | |||
167,"sys_spu_thread_group_start_on_exit", | |||
169,"sys_spu_initialize", | |||
170,"sys_spu_thread_group_create", | |||
171,"sys_spu_thread_group_destroy", | |||
172,"sys_spu_thread_initialize", | |||
173,"sys_spu_thread_group_start", | |||
174,"sys_spu_thread_group_suspend", | |||
175,"sys_spu_thread_group_resume", | |||
176,"sys_spu_thread_group_yield", | |||
177,"sys_spu_thread_group_terminate", | |||
178,"sys_spu_thread_group_join", | |||
179,"sys_spu_thread_group_set_priority", | |||
180,"sys_spu_thread_group_get_priority", | |||
181,"sys_spu_thread_write_ls", | |||
182,"sys_spu_thread_read_ls", | |||
184,"sys_spu_thread_write_snr", | |||
185,"sys_spu_thread_group_connect_event", | |||
186,"sys_spu_thread_group_disconnect_event", | |||
187,"sys_spu_thread_set_spu_cfg", | |||
188,"sys_spu_thread_get_spu_cfg", | |||
190,"sys_spu_thread_write_spu_mb", | |||
191,"sys_spu_thread_connect_event", | |||
192,"sys_spu_thread_disconnect_event", | |||
193,"sys_spu_thread_bind_queue", | |||
194,"sys_spu_thread_unbind_queue", | |||
196,"sys_raw_spu_set_spu_cfg", | |||
197,"sys_raw_spu_get_spu_cfg", | |||
198,"sys_spu_thread_recover_page_fault", | |||
199,"sys_raw_spu_recover_page_fault", | |||
200,"", | |||
201,"", | |||
202,"", | |||
203,"", | |||
209,"", | |||
210,"", | |||
211,"", | |||
212,"", | |||
213,"", | |||
214,"", | |||
215,"sys_dbg_mat_set_condition", | |||
216,"sys_dbg_mat_get_condition", | |||
217,"", | |||
218,"", | |||
219,"", | |||
226,"", | |||
230,"sys_isolated_spu_create", | |||
231,"sys_isolated_spu_destroy", | |||
232,"sys_isolated_spu_start", | |||
233,"sys_isolated_spu_create_interrupt_tag", | |||
234,"sys_isolated_spu_set_int_mask", | |||
235,"sys_isolated_spu_get_int_mask", | |||
236,"sys_isolated_spu_set_int_stat", | |||
237,"sys_isolated_spu_get_int_stat", | |||
238,"sys_isolated_spu_set_spu_cfg", | |||
239,"sys_isolated_spu_get_spu_cfg", | |||
240,"sys_isolated_spu_read_puint_mb", | |||
244,"sys_spu_thread_group_system_set_next_group", | |||
245,"sys_spu_thread_group_system_unset_next_group", | |||
246,"sys_spu_thread_group_system_set_switch_group", | |||
247,"sys_spu_thread_group_system_unset_switch_group", | |||
248,"sys_spu_thread_group....", | |||
249,"sys_spu_thread_group....", | |||
250,"sys_spu_thread_group_set_cooperative_victims", | |||
251,"sys_spu_thread_group_connect_event_all_threads", | |||
252,"sys_spu_thread_group_disconnect_event_all_threads", | |||
253,"sys_spu_thread_group..", | |||
254,"sys_spu_thread_group_log", | |||
260,"sys_spu_image_open_by_fd", | |||
300,"sys_vm_memory_map", | |||
301,"sys_vm_unmap", | |||
302,"sys_vm_append_memory", | |||
303,"sys_vm_return_memory", | |||
304,"sys_vm_lock", | |||
305,"sys_vm_unlock", | |||
306,"sys_vm_touch", | |||
307,"sys_vm_flush", | |||
308,"sys_vm_invalidate", | |||
309,"sys_vm_store", | |||
310,"sys_vm_sync", | |||
311,"sys_vm_test", | |||
312,"sys_vm_get_statistics", | |||
313,"diffsys_vm_memory_map", | |||
314,"", | |||
315,"", | |||
324,"sys_memory_container_create", | |||
325,"sys_memory_container_destroy", | |||
326,"sys_mmapper_allocate_fixed_address", | |||
327,"sys_mmapper_enable_page_fault_notification", | |||
328,"", | |||
329,"sys_mmapper_free_shared_memory", | |||
330,"sys_mmapper_allocate_address", | |||
331,"sys_mmapper_free_address", | |||
332,"sys_mmapper_allocate_shared_memory", | |||
333,"sys_mmapper_set_shared_memory_flag", | |||
334,"sys_mmapper_map_shared_memory", | |||
335,"sys_mmapper_unmap_shared_memory", | |||
336,"sys_mmapper_change_address_access_right", | |||
337,"sys_mmapper_search_and_map", | |||
338,"sys_mmapper_get_shared_memory_attribute", | |||
339,"", | |||
340,"", | |||
341,"_sys_memory_container_create2?", | |||
342,"sys_memory_container_destroy?", | |||
343,"sys_memory_container_get_size", | |||
344,"sys_memory_budget_set", | |||
345,"", | |||
346,"", | |||
348,"sys_memory_allocate", | |||
349,"sys_memory_free", | |||
350,"sys_memory_allocate_from_container", | |||
351,"sys_memory_get_page_attribute", | |||
352,"sys_memory_get_user_memory_size", | |||
353,"sys_memory_get_user_memory_stat", | |||
354,"", | |||
355,"", | |||
356,"sys_memory_allocate_colored", | |||
357,"", | |||
358,"", | |||
359,"", | |||
360,"", | |||
361,"sys_memory_allocate_from_container_colored", | |||
362,"sys_mmapper_allocate_memory_from_container", | |||
363,"", | |||
364,"", | |||
367,"sys_uart_initialize", | |||
368,"sys_uart_receive", | |||
369,"sys_uart_send", | |||
370,"sys_uart_get_params", | |||
372,"sys_game_watchdog_start", | |||
373,"sys_game_watchdog_stop", | |||
374,"sys_game_watchdog_clear", | |||
375,"sys_game_set_system_sw_version", | |||
376,"sys_game_get_system_sw_version", | |||
377,"sys_sm_set_shop_mode", | |||
378,"sys_sm_get_ext_event2", | |||
379,"sys_sm_shutdown", | |||
380,"sys_sm_get_params", | |||
381,"sys_sm_get_inter_lpar_parameter?", | |||
382,"sys_sm_", | |||
383,"sys_game_get_temperature", | |||
384,"sys_sm_get_tzpb", | |||
385,"sys_sm_request_led", | |||
386,"sys_sm_control_led", | |||
387,"sys_sm_get_platform_info?", | |||
388,"sys_sm_ring_buzzer_too", | |||
389,"sys_sm_set_fan_policy", | |||
390,"sys_sm_request_error_log", | |||
391,"sys_sm_request_be_count", | |||
392,"sys_sm_ring_buzzer", | |||
393,"sys_sm_get_hw_config", | |||
394,"sys_sm_request_scversion", | |||
395,"sys_sm_request_system_event_log", | |||
396,"sys_sm_set_rtc_alarm", | |||
397,"sys_sm_get_rtc_alarm", | |||
398,"sys_console_write", | |||
400,"", | |||
401,"", | |||
402,"sys_tty_read", | |||
403,"sys_tty_write", | |||
404,"", | |||
405,"", | |||
406,"", | |||
407,"", | |||
408,"sys_sm_get_tzpbtoo", | |||
409,"sys_sm_get_fan_policy", | |||
410,"sys_game_board_storage_read", | |||
411,"sys_game_board_storage_write", | |||
412,"sys_game_get_rtc_status", | |||
413,"", | |||
414,"", | |||
415,"", | |||
450,"sys_overlay_load_module", | |||
451,"sys_overlay_unload_module", | |||
452,"sys_overlay_get_module_list", | |||
453,"sys_overlay_get_module_info", | |||
454,"sys_overlay_load_module_by_fd", | |||
455,"sys_overlay_get_module_info2", | |||
456,"sys_overlay_get_sdk_version", | |||
457,"sys_overlay_get_module_dbg_info", | |||
458,"sys_overlay_get_module_dbg_infotoo", | |||
460,"sys_prx_dbg_get_module_id_list", | |||
461,"sys_prx_get_module_id_by_address", | |||
462,"", | |||
463,"sys_prx_load_module_by_fd", | |||
464,"sys_prx_load_module_on_memcontainer_by_fd", | |||
465,"sys_prx_load_module_list", | |||
466,"sys_prx_load_module_list_on_memcontainer", | |||
467,"sys_prx_get_ppu_guid", | |||
468,"", | |||
470,"", | |||
471,"", | |||
472,"", | |||
473,"", | |||
474,"", | |||
475,"", | |||
476,"", | |||
480,"sys_prx_load_module", | |||
481,"sys_prx_start_module", | |||
482,"sys_prx_stop_module", | |||
483,"sys_prx_unload_module", | |||
484,"sys_prx_register_module", | |||
485,"sys_prx_query_module", | |||
486,"sys_prx_register_library", | |||
487,"sys_prx_unregister_library", | |||
488,"sys_prx_link_library", | |||
489,"sys_prx_unlink_library", | |||
490,"sys_prx_query_library", | |||
492,"", | |||
493,"sys_prx_dbg_get_module_info", | |||
494,"sys_prx_get_module_list", | |||
495,"sys_prx_get_module_info", | |||
496,"sys_prx_get_module_id_by_name", | |||
497,"sys_prx_load_module_on_memcontainer", | |||
498,"sys_prx_start", | |||
499,"sys_prx_stop", | |||
500,"sys_hid_manager_open", | |||
501,"sys_hid_manager_close", | |||
502,"sys_hid_manager_read", | |||
503,"sys_hid_manager_ioctl", | |||
504,"sys_hid_manager_map_logical_id_to_port_id", | |||
505,"sys_hid_manager_unmap_logical_id_to_port_id", | |||
506,"sys_hid_manager_add_hot_key_observer", | |||
507,"sys_hid_manager_remove_hot_key_observer", | |||
508,"sys_hid_manager_grab_focus", | |||
509,"sys_hid_manager_release_focus", | |||
510,"sys_hid_manager_...", | |||
511,"sys_hid_manager_set_...", | |||
512,"", | |||
513,"sys_hid_manager_...", | |||
514,"sys_hid_manager_...", | |||
516,"sys_config_open", | |||
517,"sys_config_close", | |||
518,"sys_config_get_service_event", | |||
519,"sys_config_add_service_listener", | |||
520,"sys_config_remove_service_listener", | |||
521,"sys_config_register_service", | |||
522,"sys_config_unregister_service", | |||
523,"sys_config_io_event", | |||
524,"sys_config_", | |||
525,"sys_config_", | |||
530,"sys_usbd_initialize", | |||
531,"sys_usbd_finalize", | |||
532,"sys_usbd_get_device_list", | |||
533,"sys_usbd_get_descriptor_size", | |||
534,"sys_usbd_get_descriptor", | |||
535,"sys_usbd_register_ldd", | |||
536,"sys_usbd_unregister_ldd", | |||
537,"sys_usbd_open_pipe", | |||
538,"sys_usbd_open_default_pipe", | |||
539,"sys_usbd_close_pipe", | |||
540,"sys_usbd_receive_event", | |||
541,"sys_usbd_detect_event", | |||
542,"sys_usbd_attach", | |||
543,"sys_usbd_transfer_data", | |||
544,"sys_usbd_isochronous_transfer_data", | |||
545,"sys_usbd_get_transfer_status", | |||
546,"sys_usbd_get_isochronous_transfer_status", | |||
547,"sys_usbd_get_device_location", | |||
548,"sys_usbd_send_event", | |||
549,"", | |||
550,"sys_usbd_allocate_memory", | |||
551,"sys_usbd_free_memory", | |||
552,"", | |||
553,"", | |||
554,"", | |||
555,"", | |||
556,"sys_usbd_get_device_speed", | |||
557,"", | |||
558,"", | |||
559,"sys_usbd_register_extra_ldd", | |||
560,"", | |||
561,"", | |||
562,"", | |||
563,"", | |||
564,"", | |||
565,"", | |||
566,"", | |||
567,"", | |||
568,"", | |||
569,"", | |||
570,"", | |||
571,"sys_pad_ldd_unregister_controller", | |||
572,"sys_pad_ldd_data_insert", | |||
573,"sys_pad_dbg_ldd_set_data_insert_mode", | |||
574,"sys_pad_ldd_register_controller", | |||
575,"sys_pad_ldd_get_port_no", | |||
577,"sys_pad_manager_....", | |||
578,"", | |||
579,"", | |||
580,"", | |||
581,"", | |||
582,"", | |||
583,"", | |||
584,"", | |||
585,"", | |||
586,"", | |||
587,"", | |||
588,"", | |||
589,"", | |||
590,"", | |||
591,"", | |||
592,"", | |||
593,"", | |||
594,"", | |||
595,"", | |||
596,"", | |||
597,"", | |||
598,"", | |||
599,"", | |||
600,"sys_storage_open", | |||
601,"sys_storage_close", | |||
602,"sys_storage_read", | |||
603,"sys_storage_write", | |||
604,"sys_storage_send_device_command", | |||
605,"sys_storage_async_configure", | |||
606,"sys_storage_async_read", | |||
607,"sys_storage_async_write", | |||
608,"sys_storage_async_cancel", | |||
609,"sys_storage_get_device_info", | |||
610,"sys_storage_get_device_config", | |||
611,"sys_storage_report_devices", | |||
612,"sys_storage_configure_medium_event", | |||
613,"sys_storage_set_medium_polling_interval", | |||
614,"sys_storage_create_region", | |||
615,"sys_storage_delete_region", | |||
616,"sys_storage_execute_device_command", | |||
617,"sys_storage_check_region_acl", | |||
618,"sys_storage_set_region_acl", | |||
619,"sys_storage_async_send_device_command", | |||
620,"", | |||
621,"sys_gamepad_ycon_if", | |||
622,"sys_storage_get_region_offset", | |||
623,"sys_storage_set_emulated_speed", | |||
624,"sys_io_buffer_create", | |||
625,"sys_io_buffer_destroy", | |||
626,"sys_io_buffer_allocate", | |||
627,"sys_io_buffer_free", | |||
630,"sys_gpio_set", | |||
631,"sys_gpio_get", | |||
633,"sys_fsw_connect_event", | |||
634,"sys_fsw_disconnect_event", | |||
635,"sys_btsetting_if?", | |||
636,"", | |||
637,"", | |||
638,"", | |||
639,"", | |||
640,"", | |||
641,"", | |||
642,"", | |||
643,"", | |||
644,"", | |||
645,"", | |||
646,"", | |||
647,"", | |||
648,"", | |||
649,"", | |||
650,"sys_rsxaudio_initialize", | |||
651,"sys_rsxaudio_finalize", | |||
652,"sys_rsxaudio_import_shared_memory", | |||
653,"sys_rsxaudio_unimport_shared_memory", | |||
654,"sys_rsxaudio_create_connection", | |||
655,"sys_rsxaudio_close_connection", | |||
656,"sys_rsxaudio_prepare_process", | |||
657,"sys_rsxaudio_start_process", | |||
658,"sys_rsxaudio_", | |||
659,"sys_rsxaudio_", | |||
666,"sys_rsx_device_open", | |||
667,"sys_rsx_device_close", | |||
668,"sys_rsx_memory_allocate", | |||
669,"sys_rsx_memory_free", | |||
670,"sys_rsx_context_allocate", | |||
671,"sys_rsx_context_free", | |||
672,"sys_rsx_context_iomap", | |||
673,"sys_rsx_context_iounmap", | |||
674,"sys_rsx_context_attribute", | |||
675,"sys_rsx_device_map", | |||
676,"sys_rsx_device_unmap", | |||
677,"sys_rsx_attribute", | |||
678,"", | |||
679,"", | |||
680,"", | |||
681,"", | |||
682,"", | |||
683,"", | |||
684,"", | |||
685,"", | |||
686,"", | |||
687,"", | |||
688,"", | |||
689,"", | |||
690,"", | |||
691,"", | |||
692,"", | |||
693,"", | |||
694,"", | |||
695,"", | |||
696,"", | |||
699,"sys_bdemu_send_command", | |||
700,"sys_net_bnet_accept", | |||
701,"sys_net_bnet_bind", | |||
702,"sys_net_bnet_connect", | |||
703,"sys_net_bnet_getpeername", | |||
704,"sys_net_bnet_getsockname", | |||
705,"sys_net_bnet_getsockopt", | |||
706,"sys_net_bnet_listen", | |||
707,"sys_net_bnet_recvfrom", | |||
708,"sys_net_bnet_recvmsg", | |||
709,"sys_net_bnet_sendmsg", | |||
710,"sys_net_bnet_sendto", | |||
711,"sys_net_bnet_setsockop", | |||
712,"sys_net_bnet_shutdown", | |||
713,"sys_net_bnet_socket", | |||
714,"sys_net_bnet_close", | |||
715,"sys_net_bnet_poll", | |||
716,"sys_net_bnet_select", | |||
717,"sys_net_open_dump", | |||
718,"sys_net_read_dump", | |||
719,"sys_net_close_dump", | |||
720,"sys_net_write_dump", | |||
721,"sys_net_abort", | |||
722,"sys_net_infoctl", | |||
723,"sys_net_control", | |||
724,"sys_net_bnet_ioctl", | |||
725,"sys_net_bnet_sysctl", | |||
726,"sys_net_eurus_post_command", | |||
800,"sys_fs_test", | |||
801,"sys_fs_open", | |||
802,"sys_fs_read", | |||
803,"sys_fs_write", | |||
804,"sys_fs_close", | |||
805,"sys_fs_opendir", | |||
806,"sys_fs_readdir", | |||
807,"sys_fs_closedir", | |||
808,"sys_fs_stat", | |||
809,"sys_fs_fstat", | |||
810,"sys_fs_link", | |||
811,"sys_fs_mkdir", | |||
812,"sys_fs_rename", | |||
813,"sys_fs_rmdir", | |||
814,"sys_fs_unlink", | |||
815,"sys_fs_utime", | |||
816,"sys_fs_access", | |||
817,"sys_fs_fcntl", | |||
818,"sys_fs_lseek", | |||
819,"sys_fs_fdatasync", | |||
820,"sys_fs_fsync", | |||
821,"sys_fs_fget_block_size", | |||
822,"sys_fs_get_block_size", | |||
823,"sys_fs_acl_read", | |||
824,"sys_fs_acl_write", | |||
825,"sys_fs_lsn_get_cda_size", | |||
826,"sys_fs_lsn_get_cda", | |||
827,"sys_fs_lsn_lock", | |||
828,"sys_fs_lsn_unlock", | |||
829,"sys_fs_lsn_read", | |||
830,"sys_fs_lsn_write", | |||
831,"sys_fs_truncate", | |||
832,"sys_fs_ftruncate", | |||
833,"sys_fs_symbolic_link", | |||
834,"sys_fs_chmod", | |||
835,"sys_fs_chown", | |||
836,"sys_fs_newfs", | |||
837,"sys_fs_mount", | |||
838,"sys_fs_unmount", | |||
839,"sys_fs_sync", | |||
840,"sys_fs_disk_free", | |||
841,"sys_fs_get_mount_info_size", | |||
842,"sys_fs_get_mount_info", | |||
843,"sys_fs_get_fs_info_size", | |||
844,"sys_fs_get_fs_info", | |||
845,"sys_fs_mapped_allocate", | |||
846,"sys_fs_mapped_free", | |||
847,"sys_fs_truncate2", | |||
860,"syscall_sys_ss_get_cache_of_analog_sunset_flag", | |||
861,"", | |||
862,"", | |||
863,"", | |||
864,"", | |||
865,"sys_ss_random_number_generator", | |||
866,"", | |||
867,"", | |||
868,"", | |||
869,"", | |||
870,"sys_ss_get_console_id", | |||
871,"sys_ss_access_control_engine", | |||
872,"sys_ss_get_open_psid", | |||
873,"sys_ss_get_cache_of_product_mode", | |||
874,"sys_ss_get_cache_of_flash_ext_flag", | |||
875,"sys_ss_get_boot_device", | |||
876,"sys_ss_disc_access_control", | |||
877,"sys_ss_~utoken_if", | |||
878,"sys_ss_ad_sign", | |||
879,"sys_ss_media_id", | |||
880,"sys_deci3_open", | |||
881,"sys_deci3_create_event_path", | |||
882,"sys_deci3_close", | |||
883,"sys_deci3_send", | |||
884,"sys_deci3_receive", | |||
885,"sys_deci3_open2", | |||
889,"sys_", | |||
890,"sys_deci3_initialize", | |||
891,"sys_deci3_terminate", | |||
892,"sys_deci3_debug_mode", | |||
893,"sys_deci3_show_status", | |||
894,"sys_deci3_echo_test", | |||
895,"sys_deci3_send_dcmp_packet", | |||
896,"sys_deci3_dump_cp_register", | |||
897,"sys_deci3_dump_cp_buffer", | |||
899,"sys_deci3_test", | |||
900,"sys_dbg_stop_processes", | |||
901,"sys_dbg_continue_processes", | |||
902,"sys_dbg_stop_threads", | |||
903,"sys_dbg_continue_threads", | |||
904,"sys_dbg_read_process_memory", | |||
905,"sys_dbg_write_process_memory", | |||
906,"sys_dbg_read_thread_register", | |||
907,"sys_dbg_write_thread_register", | |||
908,"sys_dbg_get_process_list", | |||
909,"sys_dbg_get_thread_list", | |||
910,"sys_dbg_get_thread_info", | |||
911,"sys_dbg_spu_thread_read_from_ls", | |||
912,"sys_dbg_spu_thread_write_to_ls", | |||
913,"sys_dbg_kill_process", | |||
914,"sys_dbg_get_process_info", | |||
915,"sys_dbg_set_run_control_bit_to_spu", | |||
916,"sys_dbg_spu_thread_get_exception_cause", | |||
917,"sys_dbg_create_kernel_event_queue", | |||
918,"sys_dbg_read_kernel_event_queue", | |||
919,"sys_dbg_destroy_kernel_event_queue", | |||
920,"sys_dbg_get_process_event_ctrl_flag", | |||
921,"sys_dbg_set_process_event_cntl_flag", | |||
922,"sys_dbg_get_spu_thread_group_event_cntl_flag", | |||
923,"sys_dbg_set_spu_thread_group_event_cntl_flag", | |||
924,"", | |||
925,"sys_dbg_get_raw_spu_list", | |||
926,"", | |||
927,"", | |||
928,"", | |||
929,"", | |||
930,"", | |||
931,"", | |||
932,"sys_dbg_get_mutex_list", | |||
933,"sys_dbg_get_mutex_information", | |||
934,"sys_dbg_get_cond_list", | |||
935,"sys_dbg_get_cond_information", | |||
936,"sys_dbg_get_rwlock_list", | |||
937,"sys_dbg_get_rwlock_information", | |||
938,"sys_dbg_get_lwmutex_list", | |||
939,"sys_dbg_get_address_from_dabr", | |||
940,"sys_dbg_set_address_to_dabr", | |||
941,"sys_dbg_get_lwmutex_information", | |||
942,"sys_dbg_get_event_queue_list", | |||
943,"sys_dbg_get_event_queue_information", | |||
944,"sys_dbg_initialize_ppu_exception_handler", | |||
945,"sys_dbg_finalize_ppu_exception_handler", | |||
946,"sys_dbg_get_semaphore_list", | |||
947,"sys_dbg_get_semaphore_information", | |||
948,"sys_dbg_get_kernel_thread_list", | |||
949,"sys_dbg_get_kernel_thread_info", | |||
950,"sys_dbg_get_lwcond_list", | |||
951,"sys_dbg_get_lwcond_information", | |||
952,"sys_dbg_create_scratch_data_area_ext", | |||
953,"sys_dbg_vm_get_page_information", | |||
954,"sys_dbg_vm_get_info", | |||
955,"sys_dbg_enable_floating_point_enabled_exception", | |||
956,"sys_dbg_disable_floating_point_enabled_exception", | |||
957,"sys_dbg_get_process_memory_container_information", | |||
959,"sys_dbg_(sendeventflags?)", | |||
960,"sys_control_performance_monitor?", | |||
961,"", | |||
962,"", | |||
963,"", | |||
964,"", | |||
965,"", | |||
966,"", | |||
967,"", | |||
968,"", | |||
969,"", | |||
970,"sys_dbg_get_event_flag_list", | |||
971,"sys_dbg_get_event_flag_information", | |||
972,"sys_dbg_(send event flags?)", | |||
973,"", | |||
974,"", | |||
975,"sys_dbg_read_spu_thread_context2", | |||
976,"sys_crypto_engine_create", | |||
977,"sys_crypto_engine_destroy", | |||
978,"sys_crypto_engine_hasher_prepare", | |||
979,"sys_crypto_engine_hasher_run", | |||
980,"sys_crypto_engine_hasher_get_hash", | |||
981,"sys_crypto_engine_cipher_prepare", | |||
982,"sys_crypto_engine_cipher_run", | |||
983,"sys_crypto_engine_cipher_get_hash", | |||
984,"sys_crypto_engine_random_generate", | |||
985,"sys_dbg_get_console_type?", | |||
986,"", | |||
987,"", | |||
988,"sys_dbg_(something)_ppu_exception_handler", | |||
989,""] | |||
] | |||
i=0 | |||
for seg in Segments(): | for seg in Segments(): | ||
#print "%x" % seg | |||
if GetSegmentAttr(seg,SEGATTR_PERM) == 5: # Executable | |||
addr = GetSegmentAttr(seg,SEGATTR_START) | |||
end = GetSegmentAttr(seg,SEGATTR_END) | |||
while addr < end: | |||
while GetMnem(addr) != "sc" and addr < end: | |||
addr = NextHead(addr) | |||
addr2 = addr | |||
if addr2 < end: | |||
while GetMnem(addr2) != "li" or GetOpnd(addr2,0) != "r11": | |||
addr2=PrevHead(addr2) | |||
scnum = GetOperandValue(addr2,1) | |||
scname = syscalls[syscalls.index(scnum)+1] | |||
print "%x Syscall: %x %s" % (addr,scnum, scname) | |||
MakeComm(addr, scname) | |||
i=i+1 | |||
addr = NextHead(addr) | |||
print i | |||
</source> | </source> | ||