Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/mach iTry to gather as much Mach services names a...



details:   https://anonhg.NetBSD.org/src/rev/b8a600cb04ca
branches:  trunk
changeset: 555366:b8a600cb04ca
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Nov 15 22:55:35 2003 +0000

description:
iTry to gather as much Mach services names as possible, this way we
will have unimplemented services showing their names in ktrace

Add a new generated file with only service id and name, which will
be included by kdump to display services names.

This removes the need for using the user ktrace facility for services names.

diffstat:

 sys/compat/mach/Makefile              |    4 +-
 sys/compat/mach/mach_message.c        |   14 +-
 sys/compat/mach/mach_services.c       |  514 +++++++++++++++++-----------------
 sys/compat/mach/mach_services.h       |    7 +-
 sys/compat/mach/mach_services.master  |    1 +
 sys/compat/mach/mach_services_names.c |  347 ++++++++++++++++++++++
 sys/compat/mach/makemachservices.sh   |   28 +-
 7 files changed, 639 insertions(+), 276 deletions(-)

diffs (truncated from 1118 to 300 lines):

diff -r 44239c89c999 -r b8a600cb04ca sys/compat/mach/Makefile
--- a/sys/compat/mach/Makefile  Sat Nov 15 21:45:52 2003 +0000
+++ b/sys/compat/mach/Makefile  Sat Nov 15 22:55:35 2003 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: Makefile,v 1.4 2003/11/15 20:30:59 thorpej Exp $
+#      $NetBSD: Makefile,v 1.5 2003/11/15 22:55:35 manu Exp $
 
 SYSCALL_DEP=   syscalls.conf syscalls.master ../../kern/makesyscalls.sh 
 SYSCALL_OBJS=  mach_sysent.c mach_syscalls.c mach_syscall.h mach_syscallargs.h 
 MACH_DEP=      mach_services.master makemachservices.sh
-MACH_OBJ=      mach_services.c mach_services.h
+MACH_OBJ=      mach_services.c mach_services.h mach_services_names.c
 
 all:   ${SYSCALL_OBJS} ${MACH_OBJ}
 
diff -r 44239c89c999 -r b8a600cb04ca sys/compat/mach/mach_message.c
--- a/sys/compat/mach/mach_message.c    Sat Nov 15 21:45:52 2003 +0000
+++ b/sys/compat/mach/mach_message.c    Sat Nov 15 22:55:35 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_message.c,v 1.28 2003/11/13 13:40:39 manu Exp $ */
+/*     $NetBSD: mach_message.c,v 1.29 2003/11/15 22:55:35 manu Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.28 2003/11/13 13:40:39 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.29 2003/11/15 22:55:35 manu Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_mach.h" /* For COMPAT_MACH in <sys/ktrace.h> */
@@ -208,16 +208,6 @@
                                goto out1;
                        }
 
-#ifdef KTRACE
-                       /*
-                        * It is convenient to record in kernel trace 
-                        * the name of the server that has been used,
-                        * it makes traces easier to read. The user
-                        * facility does not produce a perfect result,
-                        * but at least we have the information.
-                        */
-                       ktruser(p, srv->srv_name, NULL, 0, 0);
-#endif
                        /*
                         * Sanity check message length. We do not want the
                         * server to: 
diff -r 44239c89c999 -r b8a600cb04ca sys/compat/mach/mach_services.c
--- a/sys/compat/mach/mach_services.c   Sat Nov 15 21:45:52 2003 +0000
+++ b/sys/compat/mach/mach_services.c   Sat Nov 15 22:55:35 2003 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: mach_services.c,v 1.3 2003/11/15 17:45:34 manu Exp $ */
+/* $NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $ */
 
 /*
  * Mach services table.
  *
  * DO NOT EDIT -- this file is automatically generated.
- * created from ;
+ * created from  $NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_services.c,v 1.3 2003/11/15 17:45:34 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -27,115 +27,115 @@
 
 struct mach_service mach_services_table[] = {
        {64, NULL, "obsolete notify_first", 0, 0},
-       {65, NULL, "notify_port_deleted", 0, 0},
+       {65, NULL, "unimpl. notify_port_deleted", 0, 0},
        {66, NULL, "obsolete notify_msg_accepted", 0, 0},
        {67, NULL, "obsolete notify_ownership_rights", 0, 0},
        {68, NULL, "obsolete notify_receive_rights", 0, 0},
-       {69, NULL, "notify_port_destroyed", 0, 0},
-       {70, NULL, "notify_port_no_senders", 0, 0},
-       {71, NULL, "notify_port_send_once", 0, 0},
-       {72, NULL, "notify_port_dead_name", 0, 0},
+       {69, NULL, "unimpl. notify_port_destroyed", 0, 0},
+       {70, NULL, "unimpl. notify_port_no_senders", 0, 0},
+       {71, NULL, "unimpl. notify_port_send_once", 0, 0},
+       {72, NULL, "unimpl. notify_port_dead_name", 0, 0},
        {200, mach_host_info, "host_info", sizeof(mach_host_info_request_t), sizeof(mach_host_info_reply_t)},
-       {201, NULL, "host_kernel_version", 0, 0},
+       {201, NULL, "unimpl. host_kernel_version", 0, 0},
        {202, mach_host_page_size, "host_page_size", sizeof(mach_host_page_size_request_t), sizeof(mach_host_page_size_reply_t)},
-       {203, NULL, "memory_object_memory_entry", 0, 0},
-       {204, NULL, "host_processor_info", 0, 0},
+       {203, NULL, "unimpl. memory_object_memory_entry", 0, 0},
+       {204, NULL, "unimpl. host_processor_info", 0, 0},
        {205, mach_host_get_io_master, "host_get_io_master", sizeof(mach_host_get_io_master_request_t), sizeof(mach_host_get_io_master_reply_t)},
        {206, mach_host_get_clock_service, "host_get_clock_service", sizeof(mach_host_get_clock_service_request_t), sizeof(mach_host_get_clock_service_reply_t)},
-       {207, NULL, "kmod_get_info", 0, 0},
-       {208, NULL, "host_zone_info", 0, 0},
-       {209, NULL, "host_virtual_physical_table_info", 0, 0},
-       {210, NULL, "host_ipc_hash_info", 0, 0},
-       {211, NULL, "enable_bluebox", 0, 0},
-       {212, NULL, "disable_bluebox", 0, 0},
-       {213, NULL, "processor_set_default", 0, 0},
-       {214, NULL, "processor_set_create", 0, 0},
-       {215, NULL, "memory_object_memory_entry_64", 0, 0},
-       {216, NULL, "host_statistics", 0, 0},
-       {400, NULL, "host_get_boot_info", 0, 0},
-       {401, NULL, "host_reboot", 0, 0},
-       {402, NULL, "host_priv_statistics", 0, 0},
-       {403, NULL, "host_default_memory_manager", 0, 0},
+       {207, NULL, "unimpl. kmod_get_info", 0, 0},
+       {208, NULL, "unimpl. host_zone_info", 0, 0},
+       {209, NULL, "unimpl. host_virtual_physical_table_info", 0, 0},
+       {210, NULL, "unimpl. host_ipc_hash_info", 0, 0},
+       {211, NULL, "unimpl. enable_bluebox", 0, 0},
+       {212, NULL, "unimpl. disable_bluebox", 0, 0},
+       {213, NULL, "unimpl. processor_set_default", 0, 0},
+       {214, NULL, "unimpl. processor_set_create", 0, 0},
+       {215, NULL, "unimpl. memory_object_memory_entry_64", 0, 0},
+       {216, NULL, "unimpl. host_statistics", 0, 0},
+       {400, NULL, "unimpl. host_get_boot_info", 0, 0},
+       {401, NULL, "unimpl. host_reboot", 0, 0},
+       {402, NULL, "unimpl. host_priv_statistics", 0, 0},
+       {403, NULL, "unimpl. host_default_memory_manager", 0, 0},
        {404, mach_bootstrap_look_up, "bootstrap_look_up", sizeof(mach_bootstrap_look_up_request_t), sizeof(mach_bootstrap_look_up_reply_t)},
-       {405, NULL, "thread_wire", 0, 0},
-       {406, NULL, "vm_allocate_cpm", 0, 0},
-       {407, NULL, "host_processors", 0, 0},
-       {408, NULL, "host_get_clock_control", 0, 0},
-       {409, NULL, "kmod_create", 0, 0},
-       {410, NULL, "kmod_destroy", 0, 0},
-       {411, NULL, "kmod_control", 0, 0},
-       {412, NULL, "host_get_special_port", 0, 0},
-       {413, NULL, "host_set_special_port", 0, 0},
-       {414, NULL, "host_set_exception_ports", 0, 0},
-       {415, NULL, "host_get_exception_ports", 0, 0},
-       {416, NULL, "host_swap_exception_ports", 0, 0},
-       {417, NULL, "host_load_symbol_table", 0, 0},
-       {418, NULL, "task_swappable", 0, 0},
-       {419, NULL, "host_processor_sets", 0, 0},
-       {420, NULL, "host_processor_set_priv", 0, 0},
-       {421, NULL, "set_dp_control_port", 0, 0},
-       {422, NULL, "get_dp_control_port", 0, 0},
-       {423, NULL, "host_set_UNDServer", 0, 0},
-       {424, NULL, "host_get_UNDServer", 0, 0},
-       {600, NULL, "host_security_create_task_token", 0, 0},
-       {601, NULL, "host_security_set_task_token", 0, 0},
+       {405, NULL, "unimpl. thread_wire", 0, 0},
+       {406, NULL, "unimpl. vm_allocate_cpm", 0, 0},
+       {407, NULL, "unimpl. host_processors", 0, 0},
+       {408, NULL, "unimpl. host_get_clock_control", 0, 0},
+       {409, NULL, "unimpl. kmod_create", 0, 0},
+       {410, NULL, "unimpl. kmod_destroy", 0, 0},
+       {411, NULL, "unimpl. kmod_control", 0, 0},
+       {412, NULL, "unimpl. host_get_special_port", 0, 0},
+       {413, NULL, "unimpl. host_set_special_port", 0, 0},
+       {414, NULL, "unimpl. host_set_exception_ports", 0, 0},
+       {415, NULL, "unimpl. host_get_exception_ports", 0, 0},
+       {416, NULL, "unimpl. host_swap_exception_ports", 0, 0},
+       {417, NULL, "unimpl. host_load_symbol_table", 0, 0},
+       {418, NULL, "unimpl. task_swappable", 0, 0},
+       {419, NULL, "unimpl. host_processor_sets", 0, 0},
+       {420, NULL, "unimpl. host_processor_set_priv", 0, 0},
+       {421, NULL, "unimpl. set_dp_control_port", 0, 0},
+       {422, NULL, "unimpl. get_dp_control_port", 0, 0},
+       {423, NULL, "unimpl. host_set_UNDServer", 0, 0},
+       {424, NULL, "unimpl. host_get_UNDServer", 0, 0},
+       {600, NULL, "unimpl. host_security_create_task_token", 0, 0},
+       {601, NULL, "unimpl. host_security_set_task_token", 0, 0},
        {1000, mach_clock_get_time, "clock_get_time", sizeof(mach_clock_get_time_request_t), sizeof(mach_clock_get_time_reply_t)},
-       {1001, NULL, "clock_get_attributes", 0, 0},
-       {1002, NULL, "clock_alarm", 0, 0},
-       {1200, NULL, "clock_set_time", 0, 0},
-       {1201, NULL, "clock_set_attributes", 0, 0},
-       {2000, NULL, "memory_object_get_attributes", 0, 0},
-       {2001, NULL, "memory_object_change_attributes", 0, 0},
-       {2002, NULL, "memory_object_synchronize_completed", 0, 0},
-       {2003, NULL, "memory_object_lock_request", 0, 0},
-       {2004, NULL, "memory_object_destroy", 0, 0},
-       {2005, NULL, "memory_object_upl_request", 0, 0},
-       {2006, NULL, "memory_object_super_upl_request", 0, 0},
-       {2007, NULL, "memory_object_page_op", 0, 0},
-       {2008, NULL, "memory_object_recover_named", 0, 0},
-       {2009, NULL, "memory_object_release_name", 0, 0},
-       {2050, NULL, "upl_abort", 0, 0},
-       {2051, NULL, "upl_abort_range", 0, 0},
-       {2052, NULL, "upl_commit", 0, 0},
-       {2053, NULL, "upl_commit_range", 0, 0},
-       {2200, NULL, "memory_object_init", 0, 0},
-       {2201, NULL, "memory_object_terminate", 0, 0},
-       {2202, NULL, "memory_object_data_request", 0, 0},
-       {2203, NULL, "memory_object_data_return", 0, 0},
-       {2204, NULL, "memory_object_data_initialize", 0, 0},
-       {2205, NULL, "memory_object_data_unlock", 0, 0},
-       {2206, NULL, "memory_object_synchronize", 0, 0},
-       {2207, NULL, "memory_object_unmap", 0, 0},
-       {2250, NULL, "memory_object_create", 0, 0},
-       {2275, NULL, "default_pager_object_create", 0, 0},
-       {2276, NULL, "default_pager_info", 0, 0},
-       {2277, NULL, "default_pager_objects", 0, 0},
-       {2278, NULL, "default_pager_object_pages", 0, 0},
-       {2279, NULL, "default_pager_backing_store_create", 0, 0},
-       {2280, NULL, "default_pager_backing_store_delete", 0, 0},
-       {2281, NULL, "default_pager_add_segment", 0, 0},
-       {2282, NULL, "default_pager_backing_store_info", 0, 0},
-       {2283, NULL, "default_pager_add_file", 0, 0},
-       {2284, NULL, "default_pager_triggers", 0, 0},
-       {2295, NULL, "default_pager_space_alert", 0, 0},
-       {2401, NULL, "exception_raise", 0, 0},
-       {2402, NULL, "exception_raise_state", 0, 0},
-       {2403, NULL, "exception_raise_state_identity", 0, 0},
-       {2450, NULL, "samples", 0, 0},
-       {2451, NULL, "notices", 0, 0},
+       {1001, NULL, "unimpl. clock_get_attributes", 0, 0},
+       {1002, NULL, "unimpl. clock_alarm", 0, 0},
+       {1200, NULL, "unimpl. clock_set_time", 0, 0},
+       {1201, NULL, "unimpl. clock_set_attributes", 0, 0},
+       {2000, NULL, "unimpl. memory_object_get_attributes", 0, 0},
+       {2001, NULL, "unimpl. memory_object_change_attributes", 0, 0},
+       {2002, NULL, "unimpl. memory_object_synchronize_completed", 0, 0},
+       {2003, NULL, "unimpl. memory_object_lock_request", 0, 0},
+       {2004, NULL, "unimpl. memory_object_destroy", 0, 0},
+       {2005, NULL, "unimpl. memory_object_upl_request", 0, 0},
+       {2006, NULL, "unimpl. memory_object_super_upl_request", 0, 0},
+       {2007, NULL, "unimpl. memory_object_page_op", 0, 0},
+       {2008, NULL, "unimpl. memory_object_recover_named", 0, 0},
+       {2009, NULL, "unimpl. memory_object_release_name", 0, 0},
+       {2050, NULL, "unimpl. upl_abort", 0, 0},
+       {2051, NULL, "unimpl. upl_abort_range", 0, 0},
+       {2052, NULL, "unimpl. upl_commit", 0, 0},
+       {2053, NULL, "unimpl. upl_commit_range", 0, 0},
+       {2200, NULL, "unimpl. memory_object_init", 0, 0},
+       {2201, NULL, "unimpl. memory_object_terminate", 0, 0},
+       {2202, NULL, "unimpl. memory_object_data_request", 0, 0},
+       {2203, NULL, "unimpl. memory_object_data_return", 0, 0},
+       {2204, NULL, "unimpl. memory_object_data_initialize", 0, 0},
+       {2205, NULL, "unimpl. memory_object_data_unlock", 0, 0},
+       {2206, NULL, "unimpl. memory_object_synchronize", 0, 0},
+       {2207, NULL, "unimpl. memory_object_unmap", 0, 0},
+       {2250, NULL, "unimpl. memory_object_create", 0, 0},
+       {2275, NULL, "unimpl. default_pager_object_create", 0, 0},
+       {2276, NULL, "unimpl. default_pager_info", 0, 0},
+       {2277, NULL, "unimpl. default_pager_objects", 0, 0},
+       {2278, NULL, "unimpl. default_pager_object_pages", 0, 0},
+       {2279, NULL, "unimpl. default_pager_backing_store_create", 0, 0},
+       {2280, NULL, "unimpl. default_pager_backing_store_delete", 0, 0},
+       {2281, NULL, "unimpl. default_pager_add_segment", 0, 0},
+       {2282, NULL, "unimpl. default_pager_backing_store_info", 0, 0},
+       {2283, NULL, "unimpl. default_pager_add_file", 0, 0},
+       {2284, NULL, "unimpl. default_pager_triggers", 0, 0},
+       {2295, NULL, "unimpl. default_pager_space_alert", 0, 0},
+       {2401, NULL, "unimpl. exception_raise", 0, 0},
+       {2402, NULL, "unimpl. exception_raise_state", 0, 0},
+       {2403, NULL, "unimpl. exception_raise_state_identity", 0, 0},
+       {2450, NULL, "unimpl. samples", 0, 0},
+       {2451, NULL, "unimpl. notices", 0, 0},
        {2800, mach_io_object_get_class, "io_object_get_class", sizeof(mach_io_object_get_class_request_t), sizeof(mach_io_object_get_class_reply_t)},
        {2801, mach_io_object_conforms_to, "io_object_conforms_to", sizeof(mach_io_object_conforms_to_request_t), sizeof(mach_io_object_conforms_to_reply_t)},
        {2802, mach_io_iterator_next, "io_iterator_next", sizeof(mach_io_iterator_next_request_t), sizeof(mach_io_iterator_next_reply_t)},
        {2803, mach_io_iterator_reset, "io_iterator_reset", sizeof(mach_io_iterator_reset_request_t), sizeof(mach_io_iterator_reset_reply_t)},
        {2804, mach_io_service_get_matching_services, "io_service_get_matching_services", sizeof(mach_io_service_get_matching_services_request_t), 
sizeof(mach_io_service_get_matching_services_reply_t)},
        {2805, mach_io_registry_entry_get_property, "io_registry_entry_get_property", sizeof(mach_io_registry_entry_get_property_request_t), sizeof(mach_io_registry_entry_get_property_reply_t)},
-       {2806, NULL, "io_registry_create_iterator", 0, 0},
-       {2807, NULL, "io_registry_iterator_enter_entry", 0, 0},
-       {2808, NULL, "io_registry_iterator_exit_entry", 0, 0},
+       {2806, NULL, "unimpl. io_registry_create_iterator", 0, 0},
+       {2807, NULL, "unimpl. io_registry_iterator_enter_entry", 0, 0},
+       {2808, NULL, "unimpl. io_registry_iterator_exit_entry", 0, 0},
        {2809, mach_io_registry_entry_from_path, "io_registry_entry_from_path", sizeof(mach_io_registry_entry_from_path_request_t), sizeof(mach_io_registry_entry_from_path_reply_t)},
-       {2810, NULL, "io_registry_entry_get_name", 0, 0},
+       {2810, NULL, "unimpl. io_registry_entry_get_name", 0, 0},
        {2811, mach_io_registry_entry_get_properties, "io_registry_entry_get_properties", sizeof(mach_io_registry_entry_get_properties_request_t), 
sizeof(mach_io_registry_entry_get_properties_reply_t)},
-       {2812, NULL, "io_registry_entry_get_property_bytes", 0, 0},
+       {2812, NULL, "unimpl. io_registry_entry_get_property_bytes", 0, 0},
        {2813, mach_io_registry_entry_get_child_iterator, "io_registry_entry_get_child_iterator", sizeof(mach_io_registry_entry_get_child_iterator_request_t), 
sizeof(mach_io_registry_entry_get_child_iterator_reply_t)},
        {2814, mach_io_registry_entry_get_parent_iterator, "io_registry_entry_get_parent_iterator", sizeof(mach_io_registry_entry_get_parent_iterator_request_t), 
sizeof(mach_io_registry_entry_get_parent_iterator_reply_t)},
        {2815, mach_io_service_open, "io_service_open", sizeof(mach_io_service_open_request_t), sizeof(mach_io_service_open_reply_t)},
@@ -151,207 +151,207 @@
        {2825, mach_io_connect_method_structi_structo, "io_connect_method_structi_structo", sizeof(mach_io_connect_method_structi_structo_request_t), 
sizeof(mach_io_connect_method_structi_structo_reply_t)},
        {2826, mach_io_registry_entry_get_path, "io_registry_entry_get_path", sizeof(mach_io_registry_entry_get_path_request_t), sizeof(mach_io_registry_entry_get_path_reply_t)},
        {2827, mach_io_registry_get_root_entry, "io_registry_get_root_entry", sizeof(mach_io_registry_get_root_entry_request_t), sizeof(mach_io_registry_get_root_entry_reply_t)},
-       {2828, NULL, "io_registry_entry_set_properties", 0, 0},
-       {2829, NULL, "io_registry_entry_in_plane", 0, 0},
-       {2830, NULL, "io_object_get_retain_count", 0, 0},
-       {2831, NULL, "io_service_get_busy_state", 0, 0},
-       {2832, NULL, "io_service_wait_quiet", 0, 0},
+       {2828, NULL, "unimpl. io_registry_entry_set_properties", 0, 0},
+       {2829, NULL, "unimpl. io_registry_entry_in_plane", 0, 0},
+       {2830, NULL, "unimpl. io_object_get_retain_count", 0, 0},
+       {2831, NULL, "unimpl. io_service_get_busy_state", 0, 0},
+       {2832, NULL, "unimpl. io_service_wait_quiet", 0, 0},
        {2833, mach_io_registry_entry_create_iterator, "io_registry_entry_create_iterator", sizeof(mach_io_registry_entry_create_iterator_request_t), 
sizeof(mach_io_registry_entry_create_iterator_reply_t)},
-       {2834, NULL, "io_iterator_is_valid", 0, 0},
-       {2835, NULL, "io_make_matching", 0, 0},
-       {2836, NULL, "io_catalog_send_data", 0, 0},
-       {2837, NULL, "io_catalog_terminate", 0, 0},
-       {2838, NULL, "io_catalog_get_data", 0, 0},
-       {2839, NULL, "io_catalog_get_gen_count", 0, 0},



Home | Main Index | Thread Index | Old Index