Print this page
XXX Rearchitect and replace interrupt distribution

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/uadmin/uadmin.c
          +++ new/usr/src/cmd/uadmin/uadmin.c
↓ open down ↓ 111 lines elided ↑ open up ↑
 112  112                  break;
 113  113          case A_FTRACE:
 114  114                  event_id = ADT_uadmin_ftrace;
 115  115                  break;
 116  116          case A_CONFIG:
 117  117                  event_id = ADT_uadmin_config;
 118  118                  break;
 119  119          case A_SWAPCTL:
 120  120                  event_id = ADT_uadmin_swapctl;
 121  121                  break;
      122 +        case A_INTRD:
      123 +                event_id = ADT_uadmin_intrd;
      124 +                break;
 122  125          default:
 123  126                  event_id = 0;
 124  127          }
 125  128          if ((event_id != 0) &&
 126  129              (event = adt_alloc_event(ah, event_id)) == NULL) {
 127  130                  (void) fprintf(stderr, "%s: can't allocate audit event\n",
 128  131                      argv[0]);
 129  132          }
 130  133          switch (fcn) {
 131  134          case AD_HALT:
↓ open down ↓ 113 lines elided ↑ open up ↑
 245  248                                  event->adt_uadmin_ftrace.fcn = fcn_id;
 246  249                                  event->adt_uadmin_ftrace.mdep = (char *)mdep;
 247  250                                  break;
 248  251                          case A_CONFIG:
 249  252                                  event->adt_uadmin_config.fcn = fcn_id;
 250  253                                  event->adt_uadmin_config.mdep = (char *)mdep;
 251  254                                  break;
 252  255                          case A_SWAPCTL:
 253  256                                  event->adt_uadmin_swapctl.fcn = fcn_id;
 254  257                                  break;
      258 +                        case A_INTRD:
      259 +                                event->adt_uadmin_intrd.fcn = fcn_id;
      260 +                                break;
 255  261                          }
 256  262  
 257  263                          if (adt_put_event(event, ADT_SUCCESS, 0) != 0) {
 258  264                                  (void) fprintf(stderr,
 259  265                                      "%s: can't put audit event\n", argv[0]);
 260  266                          }
 261  267                          /*
 262  268                           * allow audit record to be processed in the kernel
 263  269                           * audit queue
 264  270                           */
↓ open down ↓ 180 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX