kernel: do not drop RAM caps
[barrelfish] / trace_definitions / trace_defs.pleco
index 5295a6d..aadf6de 100644 (file)
@@ -19,7 +19,7 @@
  * Example:
  *
  * The subystem:
- * 
+ *
  * subsystem mysubsystem {
  *             event myevent "",
  * }
@@ -38,6 +38,7 @@
 
 subsystem kernel {
 
+    // Do not change CSWITCH name without changing Aquarium EventFactory.java!
        event CSWITCH                           "Context Switch",
        event BZERO                             "Buffer zeroing",
        event TIMER                             "",
@@ -49,6 +50,36 @@ subsystem kernel {
        event SCHED_SCHEDULE            "",
        event SCHED_CURRENT             "",
 
+    event CORE_START_REQUEST      "Requested start of a new core.",
+    event CORE_START_REQUEST_DONE "Request is sent, waiting for core to come up.",
+    event CORE_START_REQUEST_ACK  "Core is online.",
+
+    /* Syscalls */
+    event SC_PRINT            "Syscall PRINT",
+    event SC_DISP_SETUP       "Syscall DISPATCHER ",
+    event SC_DISP_PROPS       "Syscall DISPATCHER_PROPS",
+    event SC_RETYPE           "Syscall RETYPE",
+    event SC_CREATE           "Syscall CREATE",
+    event SC_COPY_OR_MINT     "Syscall COPY_OR_MINT",
+    event SC_CTE_FOR_CAP      "Syscall CTE_FOR_CAP",
+    event SC_MAP              "Syscall MAP",
+    event SC_UNMAP            "Syscall UNMAP",
+    event SC_DELETE           "Syscall DELETE",
+    event SC_REVOKE           "Syscall REVOKE",
+    event SC_MONITOR_REGISTER "Syscall MONITOR_REGISTER",
+    event SC_IDENTIFY_CAP     "Syscall IDENTIFY_CAP",
+    event SC_NULLIFY_CAP      "Syscall NULLIFY_CAP",
+    event SC_DOMAIN_ID        "Syscall DOMAIN_ID",
+    event SC_YIELD            "Syscall YIELD",
+    event SC_SUSPEND          "Syscall SUSPEND",
+    event SC_IDCAP_IDENTIFY   "Syscall IDCAP_IDENTIFY",
+    event SC_SPAWN_CORE       "Syscall SPAWN_CORE",
+
+    event CAP_LOOKUP_SLOT          "Cap Slot lookup",
+    event CAP_LOOKUP_CAP           "Cap Lookup",
+    event CAP_CREATE_FROM_EXISTING "Cap Create from existing",
+    event CAP_CREATE_NEW           "Cap Create new",
+    event CAP_RETYPE               "Cap Retype",
 };
 
 subsystem threads {
@@ -71,7 +102,9 @@ subsystem threads {
     event SEM_WAIT_ENTER                       "",
     event SEM_WAIT_LEAVE                       "",
     event SEM_TRYWAIT                          "",
-    event SEM_POST                                     "",
+    event SEM_POST                              "",
+    event SYS_YIELD                             "Calling sys_yield for co-op scheduling",
+    event C_DISP_SAVE                           "calling disp_save",
 };
 
 subsystem memserv {
@@ -99,21 +132,25 @@ subsystem memtest {
 
 
 subsystem monitor {
- event SPAN0                                   "",
- event SPAN1                                   "",
- event SPAN                                            "",
- event PCREQ                                   "",
- event PCREP                                   "",
- event PCREQ_INTER                             "",
- event PCREPLY_INTER                   "",
- event URPC_BLOCK                              "",
- event URPC_UNBLOCK                            "",
- event REMOTE_CAP_RETYPE               "",
- event REMOTE_CAP_RETYPE_RETRY "",
- event REMOTE_CAP_RETYPE_MSG   "",
- event REMOTE_CAP_RETYPE_END   "",
- event POLLING                                 "",
-
+    event SPAN0                                        "",
+    event SPAN1                                        "",
+    event SPAN                                         "",
+    event PCREQ                                        "",
+    event PCREP                                        "",
+    event PCREQ_INTER                          "",
+    event PCREPLY_INTER                        "",
+    event URPC_BLOCK                           "",
+    event URPC_UNBLOCK                         "",
+    event REMOTE_CAP_RETYPE            "",
+    event REMOTE_CAP_RETYPE_RETRY      "",
+    event REMOTE_CAP_RETYPE_MSG        "",
+    event REMOTE_CAP_RETYPE_END        "",
+    event POLLING                                      "",
+    event BIND_MONITOR_REPLY "Bind monitor reply",
+    event BIND_MONITOR_REQUEST "Request to setup connection with new monitor",
+    event BOOT_CORE_REQUEST "Received request from (user -> monitor) [in monitor].",
+    event BOOT_INITIALIZE_REQUEST "Monitor got boot initialize request",
+    event INVOKE_SPAWN "Monitor requests boot-up from kernel (monitor -> kernel).",
 };
 
 subsystem chips {
@@ -159,12 +196,20 @@ subsystem route {
 
 };
 
+// Generic Benchmarking events
 subsystem bench {
 
+ event START                "Start the benchmark/tracing",
+ event STOP                 "End of the benchmark/tracing",
+
+ event ROUND_START          "",
+ event ROUND_END            "",
+
  event PCBENCH                         "",
  event RXPING                          "",
  event RXPONG                          "",
 
+
 };
 
 subsystem bomp {
@@ -197,75 +242,36 @@ subsystem barriers {
 
 };
 
-/* Following constants are used in network subsystem. */
-subsystem net {
-
- event START              "",
- event STOP               "",
- event NI_AI               "added, 0",
- event NI_I                "added, 0",
- event NI_A                "added, pkt data location",
- event NI_FILTER_FRAG      "added, pkt data location",
- event NI_FILTER_EX_1      "added, pkt data location",
- event NI_ARP              "added, pkt data location",
- event NI_FILTER_EX_2      "added, pkt data location",
- event NI_PKT_CPY_1        "added, pkt data location",
- event NI_PKT_CPY_2        "added, pkt data location",
- event NI_PKT_CPY_3        "added, pkt data location",
- event NI_PKT_CPY_4        "added, pkt data location",
-
- event NI_PKT_CPY          "added, pkt data location",
- event NI_P                "added, pbuf_id",
- event NI_S                "added, pbuf_id",
- event AI_A                "added, pbuf_id",
- event AI_P                "added, pbuf_addr",
- event AO_C                "added, pbuf_addr",
- event AO_Q                "added, pbuf_addr",
- event AO_S                "added, pbuf_addr (as client_data )",
- event NO_A                "added, client_data (pbuf_address in lwip)",
- event NO_S                "added, e1000n.c client_data (pbuf_address in lwip)",
-
-/* FIXME: Add the timings of when does NIC gets TX_done */
- event NO_TXD              "yet to add",
- event AIR_R               "added, pbuf_addr (TX DONE in app)",
-
-/* Response flow */
- event AOR_S               "added, pbuf_id ( register_pbuf from APP)",
- event NIR_REG_PBUF        "commented pbuf_id ( register_pbuf in NIC)",
-};
-
-subsystem multihop {
-
- event BENCH_START              "",
- event BENCH_STOP               "",
- event MESSAGE_SEND             "",
- event MESSAGE_RECEIVE          "",
-
-};
-
-/* Following constants are used in network benchmark. */
-subsystem bnet {
-
- event START               "",
- event STOP                "",
- event DRV_SEE             "",
- event APP_SEE             "",
- event DRV_INT             "",
- event DRV_POLL            "",
- event YIELD               "",
- event I                   "",
-
-};
-
 /* Following constans are used for profiling modified stack */
 subsystem nnet {
 
  event START               "",
  event STOP                "",
+ event RXESVAPPFDONE       "Ethersrv app filtered",
+
  event RXDRVSEE            "Driver saw pkg (RX)",
  event RXESVSEE            "Ethersrv saw pkg",
  event RXESVFRGDONE        "Ethersrv checked frag",
- event RXESVAPPFDONE       "Ethersrv app filtered",
+ event LWIPTX              "LWIP idc_send_packet_to_network_driver",
+ event SCHED_REMOVE        "Process marked non-runnable",
+ event IRQ                 "interrupt in kernelspace",
+ event UIRQ                "interrupt in kernelspace for userspace",
+ event NO_S                "e1000 packet send",
+ event NI_I                "e1000 interrupt arrived",
+
+ event YIELD               "process yielded",
+
+ event LWIPPBF2            "LWIP pbuf freed",
+ event LWIPPBA2            "LWIP pbuf Allocated",
+
+ event NI_PKT_CPY          "Queue manager packet copy",
+event DRV_POLL             "e1000 polling",
+ event DRV_SEE             "handled packet",
+ event DRVTXDONE           "TX buffer reclamation",
+ event DRVRX               "checking for new packets",
+ event WEBEVENTLOOP        "Webserver event loop",
+
+
  event RXESVAPPCSTART      "Ethersrv app c2u started",
  event RXESVCOPIED         "Ethersrv copied pkg",
  event RXESVSPPDONE        "Ethersrv spp produce done",
@@ -273,6 +279,7 @@ subsystem nnet {
  event RXLWIINCOM          "LWIP handle_incoming_",
  event RXLWIRECH           "LWIP call rec_handler",
  event RXAPPRCV            "APP received",
+ event LWIPRX              "LWIP handle incoming",
 
  event TXAPPSNT            "APP sent",
  event TXLWISEE            "LWIP idc_send_packet",
@@ -296,8 +303,22 @@ subsystem nnet {
  event TX_MEMP             "tx pbuf memp start",
  event TX_MEMP_D           "tx pbuf memp done",
 
+
+
 };
 
+
+
+subsystem multihop {
+
+ event BENCH_START              "",
+ event BENCH_STOP               "",
+ event MESSAGE_SEND             "",
+ event MESSAGE_RECEIVE          "",
+
+};
+
+
 /* The example subsystem is used to demonstrate how the tracing framework
  * works. It is used by the program in "examples/xmpl-trace". */
 subsystem xmpl {
@@ -309,3 +330,13 @@ subsystem xmpl {
 
 };
 
+subsystem acpi {
+    event APIC_ADDED     "ACPI added fact about new core to SKB",
+};
+
+// Use to trace the core booting system
+subsystem cores {
+    event USER_REQUEST     "Kaluga requests boot-up of new CPU user -> monitor.",
+    event ALL_UP           "Everything has booted",
+    event BOOT_INITIALIZE_USER "User sends boot initialize to monitor",
+};