home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / pcsample / pcsdld.c < prev    next >
C/C++ Source or Header  |  1999-01-02  |  40KB  |  907 lines

  1. /* -*-C-*-
  2.  
  3. $Id: pcsdld.c,v 1.5 1999/01/02 06:11:34 cph Exp $
  4.  
  5. Copyright (c) 1990-1999 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. /* PCSDLD.C -- defines the PC Sample dynamic load interface to Scheme */
  23.  
  24. /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*\
  25.  * TODO:
  26.  *    Get a real job. Find a wife, CONS up some progeny. Write a will. Croak.
  27.  *
  28. \*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
  29.  
  30. /*****************************************************************************
  31.  * Uhm... don't forget to pay the piper... must define prims first so known.
  32.  *****************************************************************************/
  33.  
  34. #ifndef REALLY_INCLUDE_PROFILE_CODE    /* scan_defines concession */
  35. #define REALLY_INCLUDE_PROFILE_CODE    /* scan_defines concession */
  36. #endif
  37.  
  38. #include "pcsample.c"        /* The PC sampler microcode */
  39.  
  40. /*****************************************************************************/
  41. #include <microcode/usrdef.h>        /* For declare_primitive */
  42.  
  43. extern void EXFUN (initialize_pcsample_primitives, (void));
  44.        void
  45. DEFUN_VOID        (initialize_pcsample_primitives)
  46. {
  47.   /*-------------------------------------------------------------------------*/
  48.   declare_primitive ("PC-SAMPLE/TIMER-CLEAR",
  49.              Prim_pc_sample_timer_clear, 0, 0,
  50.              "()\n\
  51.   Turn off the PC sample timer.\
  52.   ");
  53.   /*-------------------------------------------------------------------------*/
  54.   declare_primitive ("PC-SAMPLE/TIMER-SET",
  55.              Prim_pc_sample_timer_set, 2, 2,
  56.              "(first interval)\n\
  57.   Set the PC sample timer.\n\
  58.   First arg FIRST says how long to wait until the first interrupt;\n\
  59.   second arg INTERVAL says how long to wait between interrupts after that.\n\
  60.   Both arguments are in units of milliseconds.\
  61.   ");
  62.   /*-------------------------------------------------------------------------*/
  63.   declare_primitive ("%PC-SAMPLE/HALTED?",
  64.              Prim_pc_sample_halted_p, 0, 0,
  65.              "()\n\
  66.  Specifies whether PC sampling has been brute forcably disabled.\n\
  67.  \n\
  68.  Only officially designated wizards should even think of using this\n\
  69.  super secret primitive. FNORD!\
  70.  ");
  71.   /*-------------------------------------------------------------------------*/
  72.   declare_primitive ("%PC-SAMPLE/HALTED?/TOGGLE!",
  73.              Prim_pc_sample_halted_p_toggle_bang, 0, 0,
  74.              "()\n\
  75.  Toggles the Boolean sense of whether PC sampling is brute forcably disabled.\n\
  76.  \n\
  77.  It returns the newly installed sense of the flag.\n\
  78.  \n\
  79.  -------\n\
  80.  WARNING! If pc-sample/init has not been called (to initialize profiling\n\
  81.  -------  tables) then you will lose big if you naively toggle halted-flag\n\
  82.           to #F because that will start the profile timer.\n\
  83.  \n\
  84.  Only officially designated moby wizards should even think of thinking of\n\
  85.  using this most ultra super duper secret primitive. FNORD!\
  86.  ");
  87.   /*-------------------------------------------------------------------------*/
  88.   declare_primitive ("%PC-SAMPLE/CACHE-GC-PRIMITIVE-INDEX",
  89.              Prim_pc_sample_cache_GC_primitive_index, 0, 0,
  90.              "()\n\
  91.   Signals the microcode to go find the GARBAGE-COLLECT primitive and cache\n\
  92.   away its index into the Primitive Table.\n\
  93.   \n\
  94.   This should be invoked each time the Primitive Table is altered in such a\n\
  95.   way that existing primitives can shift about.\
  96.  ");
  97.   /*-------------------------------------------------------------------------*/
  98.   declare_primitive ("PC-SAMPLE/SPILL-GC-SAMPLES-INTO-PRIMITIVE-TABLE",
  99.              Prim_pc_sample_spill_GC_samples_into_primitive_table, 0, 0,
  100.              "()\n\
  101.   Make sure all samples taken during GC are present and accounted for in the\n\
  102.   Primitive Sample Table.\
  103.  ");
  104.  
  105.   /*-------------------------------------------------------------------------*/
  106.   declare_primitive ("%PC-SAMPLE/INSTALL-GC-SYNCH-GC-HOOKS",
  107.              Prim_pc_sample_install_gc_synch_gc_hooks, 0, 0,
  108.              "()\n\
  109.   This must be called once when PC sampling is enabled.\n\
  110.   \n\
  111.   If it returns #F then PC sampling must be disabled.  You.lose\
  112.  ");
  113.   /*-------------------------------------------------------------------------*/
  114.   declare_primitive ("%PC-SAMPLE/INSTALL-MICROCODE",
  115.              Prim_pc_sample_install_microcode, 0, 0,
  116.              "()\n\
  117.   Installs the microcode support structures for PC sampling.\
  118.  ");
  119.   /*-------------------------------------------------------------------------*/
  120.   declare_primitive ("%PC-SAMPLE/DISABLE-MICROCODE",
  121.              Prim_pc_sample_disable_microcode, 0, 0,
  122.              "()\n\
  123.   Disables the microcode support structures for PC sampling.\
  124.  ");
  125.   /*-------------------------------------------------------------------------*/
  126.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/DISABLE",
  127.              Prim_IPPB_disable, 0, 0,
  128.              "()\n\
  129.  Disables the interpreted procedure profile buffer hence disabling profiling\n\
  130.  of interpreted procedures (unless and until a new buffer is installed).\
  131.  ");
  132.   /*-------------------------------------------------------------------------*/
  133.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/INSTALL",
  134.              Prim_IPPB_install, 1, 1,
  135.              "(vector)\n\
  136.  Installs VECTOR as the interpreted procedure profile buffer.\
  137.  ");
  138.   /*-------------------------------------------------------------------------*/
  139.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/SLACK",
  140.              Prim_IPPB_slack, 0, 0,
  141.              "()\n\
  142.  Returns the `slack' by which the near-fullness of the interpreted procedure\n\
  143.  profile buffer is determined and by which increment the buffer is extended\n\
  144.  when full.\n\
  145.  \n\
  146.  Note that the slack will always be a positive fixnum.\
  147.  ");
  148.   /*-------------------------------------------------------------------------*/
  149.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/SET-SLACK",
  150.              Prim_IPPB_set_slack, 1, 1,
  151.              "(positive-fixnum)\n\
  152.  Sets the `slack' by which the near-fullness of the interpreted procedure\n\
  153.  profile buffer is determined and by which increment the buffer is extended\n\
  154.  when full.\n\
  155.  \n\
  156.  Note that the slack must be a positive fixnum.\
  157.  ");
  158.   /*-------------------------------------------------------------------------*/
  159.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/SLACK-INCREMENT",
  160.              Prim_IPPB_slack_increment, 0, 0,
  161.              "()\n\
  162.  Returns the amount by which the interpreted procedure profile buffer slack\n\
  163.  is incremented when a buffer overflow occurs. In this sense it cuts the\n\
  164.  slack some slack.\n\
  165.  \n\
  166.  Note that the slack increment will always be a fixnum, but it can be negative\n\
  167.  (in which case it functions as a slack decrement).\
  168.  ");
  169.   /*-------------------------------------------------------------------------*/
  170.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/SET-SLACK-INCREMENT",
  171.              Prim_IPPB_set_slack_increment, 1, 1,
  172.              "(fixnum)\n\
  173.  Sets the amount by which the interpreted procedure profile buffer slack is\n\
  174.  incremented when a buffer overflow occurs.\n\
  175.  \n\
  176.  Note that the slack increment must be a fixnum, but it can be negative\n\
  177.  (in which case it functions as a slack decrement).\
  178.  ");
  179.  
  180.   /*-------------------------------------------------------------------------*/
  181.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/EXTEND-NOISY?",
  182.              Prim_IPPB_extend_noisy_p, 0, 0,
  183.              "()\n\
  184.  Specifies whether notification of IPPB extensions is enabled.\
  185.  ");
  186.   /*-------------------------------------------------------------------------*/
  187.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/FLUSH-NOISY?",
  188.              Prim_IPPB_flush_noisy_p, 0, 0,
  189.              "()\n\
  190.  Specifies whether notification of IPPB extensions is enabled.\
  191.  ");
  192.   /*-------------------------------------------------------------------------*/
  193.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/OVERFLOW-NOISY?",
  194.              Prim_IPPB_overflow_noisy_p, 0, 0,
  195.              "()\n\
  196.  Specifies whether notification of IPPB overflows is enabled.\
  197.  ");
  198.   /*-------------------------------------------------------------------------*/
  199.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/EXTEND-NOISY?/TOGGLE!",
  200.              Prim_IPPB_extend_noisy_p_toggle_bang, 0, 0,
  201.              "()\n\
  202.  Toggles the Boolean sense of whether to notify of IPPB extensions.\n\
  203.  \n\
  204.  It returns the newly installed sense of the flag.\
  205.  ");
  206.   /*-------------------------------------------------------------------------*/
  207.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/FLUSH-NOISY?/TOGGLE!",
  208.              Prim_IPPB_flush_noisy_p_toggle_bang, 0, 0,
  209.              "()\n\
  210.  Toggles the Boolean sense of whether to notify of IPPB flushes.\n\
  211.  \n\
  212.  It returns the newly installed sense of the flag.\
  213.  ");
  214.   /*-------------------------------------------------------------------------*/
  215.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/OVERFLOW-NOISY?/TOGGLE!",
  216.              Prim_IPPB_overflow_noisy_p_toggle_bang, 0, 0,
  217.              "()\n\
  218.  Toggles the Boolean sense of whether to notify of IPPB overflows.\n\
  219.  \n\
  220.  It returns the newly installed sense of the flag.\
  221.  ");
  222.   /*-------------------------------------------------------------------------*/
  223.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/EMPTY?",
  224.              Prim_IPPB_empty_p, 0, 0,
  225.              "()\n\
  226.  Returns a boolean indicating whether or not the IPPB is empty.\
  227.  ");
  228.   /*-------------------------------------------------------------------------*/
  229.   declare_primitive ("INTERP-PROC-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX", 
  230.              Prim_IPPB_next_empty_slot_index, 0, 0,
  231.              "()\n\
  232.  Returns the index of the next `free' slot of the interp-proc profile buffer.\
  233.  ");
  234.   /*-------------------------------------------------------------------------*/
  235.   declare_primitive ("%INTERP-PROC-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX/RESET",
  236.              Prim_IPPB_next_empty_slot_index_reset, 0, 0,
  237.              "()\n\
  238.   Resets the index of the next `free' slot of the interp-proc profile buffer.\
  239.   \n\
  240.   Only officially designated wizards should even think of using this\n\
  241.   super secret primitive. FNORD!\
  242.   ");
  243.  
  244.   /*-------------------------------------------------------------------------*/
  245.   declare_primitive ("%PC-SAMPLE/IPPB-FLUSH-IMMEDIATE?",
  246.              Prim_pc_sample_IPPB_flush_immediate_p, 0, 0,
  247.              "()\n\
  248.  Specifies whether the IPPB is flushed upon each entry.\n\
  249.  \n\
  250.  Only officially designated wizards should even think of using this\n\
  251.  super secret primitive. FNORD!\
  252.  ");
  253.   /*-------------------------------------------------------------------------*/
  254.   declare_primitive ("%PC-SAMPLE/IPPB-FLUSH-IMMEDIATE?/TOGGLE!",
  255.              Prim_pc_sample_IPPB_flush_immediate_p_toggle_bang, 0, 0,
  256.              "()\n\
  257.  Toggles the Boolean sense of whether the IPPBuffer is flushed upon each entry.\n\
  258.  \n\
  259.  It returns the newly installed sense of the flag.\n\
  260.  \n\
  261.  This is for mondo bizarro sampler debugging purposes only.\n\
  262.  \n\
  263.  Only officially designated moby wizards should even think of thinking of\n\
  264.  using this most ultra super duper secret primitive. FNORD!\
  265.  ");
  266.   /*-------------------------------------------------------------------------*/
  267.   declare_primitive ("%PC-SAMPLE/IPPB-DEBUGGING?",
  268.              Prim_pc_sample_IPPB_debugging_p, 0, 0,
  269.              "()\n\
  270.  Specifies whether the IPPB is in debugging mode.\n\
  271.  \n\
  272.  Only officially designated wizards should even think of using this\n\
  273.  super secret primitive. FNORD!\
  274.  ");
  275.   /*-------------------------------------------------------------------------*/
  276.   declare_primitive ("%PC-SAMPLE/IPPB-DEBUGGING?/TOGGLE!",
  277.              Prim_pc_sample_IPPB_debugging_p_toggle_bang, 0, 0,
  278.              "()\n\
  279.  Toggles the Boolean sense of whether the IPPBuffer is in debugging mode.\n\
  280.  \n\
  281.  It returns the newly installed sense of the flag.\n\
  282.  \n\
  283.  This is for mondo bizarro sampler debugging purposes only.\n\
  284.  \n\
  285.  Only officially designated moby wizards should even think of thinking of\n\
  286.  using this most ultra super duper secret primitive. FNORD!\
  287.  ");
  288.   /*-------------------------------------------------------------------------*/
  289.   declare_primitive ("%PC-SAMPLE/IPPB-MONITORING?",
  290.              Prim_pc_sample_IPPB_monitoring_p, 0, 0,
  291.              "()\n\
  292.  Specifies whether the IPPB is in monitoring mode.\n\
  293.  \n\
  294.  This, for instance, is how a count of buffer overflows is accumulated.\
  295.  ");
  296.   /*-------------------------------------------------------------------------*/
  297.   declare_primitive ("%PC-SAMPLE/IPPB-MONITORING?/TOGGLE!",
  298.              Prim_pc_sample_IPPB_monitoring_p_toggle_bang, 0, 0,
  299.              "()\n\
  300.  Toggles the Boolean sense of whether the IPPB is in monitoring mode.\n\
  301.  \n\
  302.  It returns the newly installed sense of the flag.\n\
  303.  \n\
  304.  This is for mondo bizarro sampler monitoring purposes only.\n\
  305.  For instance, toggling this monitor flag to true triggers accumulating\n\
  306.  a count of buffer overflows.\
  307.  ");
  308.   /*-------------------------------------------------------------------------*/
  309.   declare_primitive ("%PC-SAMPLE/IPPB-FLUSH-COUNT",
  310.              Prim_pc_sample_IPPB_flush_count, 0, 0,
  311.              "()\n\
  312.  Returns the number of IPPB flush requests that have been issued since the\n\
  313.  last PC-SAMPLE/IPPB-FLUSH-COUNT/RESET was issued (or since booting if no\n\
  314.  resets issued).\
  315.  ");
  316.   /*-------------------------------------------------------------------------*/
  317.   declare_primitive ("%PC-SAMPLE/IPPB-FLUSH-COUNT/RESET",
  318.              Prim_pc_sample_IPPB_flush_count_reset, 0, 0,
  319.              "()\n\
  320.  Resets the IPPB flush count (obviously... sheesh!).\
  321.  ");
  322.  
  323.   /*-------------------------------------------------------------------------*/
  324.   declare_primitive ("%PC-SAMPLE/IPPB-EXTEND-COUNT",
  325.              Prim_pc_sample_IPPB_extend_count, 0, 0,
  326.              "()\n\
  327.  Returns the number of IPPB extend requests that have been issued since the\n\
  328.  last PC-SAMPLE/IPPB-EXTEND-COUNT/RESET was issued (or since booting if no\n\
  329.  resets issued).\
  330.  ");
  331.   /*-------------------------------------------------------------------------*/
  332.   declare_primitive ("%PC-SAMPLE/IPPB-EXTEND-COUNT/RESET",
  333.              Prim_pc_sample_IPPB_extend_count_reset, 0, 0,
  334.              "()\n\
  335.  Resets the IPPB extend count (obviously... sheesh!).\
  336.  ");
  337.   /*-------------------------------------------------------------------------*/
  338.   declare_primitive ("%PC-SAMPLE/IPPB-OVERFLOW-COUNT",
  339.              Prim_pc_sample_IPPB_overflow_count, 0, 0,
  340.              "()\n\
  341.  Returns the number of IPPB overflows that have been issued since the\n\
  342.  last PC-SAMPLE/IPPB-OVERFLOW-COUNT/RESET was issued (or since booting if no\n\
  343.  resets issued).\n\
  344.  \n\
  345.  Each overflow indicates a sample that was punted into the bit bucket.\
  346.  ");
  347.   /*-------------------------------------------------------------------------*/
  348.   declare_primitive ("%PC-SAMPLE/IPPB-OVERFLOW-COUNT/RESET",
  349.              Prim_pc_sample_IPPB_overflow_count_reset, 0, 0,
  350.              "()\n\
  351.  Resets the IPPB overflow count (obviously... sheesh!).\
  352.  ");
  353.   /*-------------------------------------------------------------------------*/
  354.   declare_primitive ("%PC-SAMPLE/IPPB-EXTRA-INFO",
  355.              Prim_pc_sample_IPPB_extra_info, 0, 0,
  356.              "()\n\
  357.  Returns the extra info entry associated with the IPP Buffer.\n\
  358.  \n\
  359.  Only officially designated wizards should even think of using this\n\
  360.  super secret primitive. FNORD!\
  361.  ");
  362.   /*-------------------------------------------------------------------------*/
  363.   declare_primitive ("%PC-SAMPLE/SET-IPPB-EXTRA-INFO!",
  364.              Prim_pc_sample_set_IPPB_extra_info_bang, 1, 1,
  365.              "(object)\n\
  366.  Stores OBJECT in the extra info entry of the IPPB.\n\
  367.  \n\
  368.  This is for mondo bizarro sampler frobnication purposes only.\n\
  369.  \n\
  370.  Only officially designated moby wizards should even think of thinking of\n\
  371.  using this most ultra super duper secret primitive. FNORD!\
  372.  ");
  373.   /*-------------------------------------------------------------------------*/
  374.  
  375.   /*-------------------------------------------------------------------------*/
  376.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFERS/DISABLE",
  377.              Prim_PCBPB_disable, 0, 0,
  378.              "()\n\
  379.  Disables the purified code block profile buffers hence disabling purified\n\
  380.  code block profiling (unless and until new buffers are installed).\
  381.  ");
  382.   /*.........................................................................*/
  383.   declare_primitive ( "HEATHEN-CODE-BLOCK-PROFILE-BUFFERS/DISABLE",
  384.              Prim_HCBPB_disable, 0, 0,
  385.              "()\n\
  386.  Disables the  heathen code block profile buffers hence disabling  heathen\n\
  387.  code block profiling (unless and until new buffers are installed).\
  388.  ");
  389.   /*-------------------------------------------------------------------------*/
  390.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFERS/INSTALL",
  391.              Prim_PCBPB_install, 2, 2,
  392.              "(block-vector offset-vector)\n\
  393.  Installs BLOCK-VECTOR and OFFSET-VECTOR as the purified code block profile\n\
  394.  buffers.\
  395.  ");
  396.   /*.........................................................................*/
  397.   declare_primitive ( "HEATHEN-CODE-BLOCK-PROFILE-BUFFERS/INSTALL",
  398.              Prim_HCBPB_install, 2, 2,
  399.              "(block-vector offset-vector)\n\
  400.  Installs BLOCK-VECTOR and OFFSET-VECTOR as the  heathen code block profile\n\
  401.  buffers.\
  402.  ");
  403.   /*-------------------------------------------------------------------------*/
  404.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/SLACK",
  405.              Prim_PCBPB_slack, 0, 0,
  406.              "()\n\
  407.  Returns the `slack' by which the near-fullness of the profile buffer for\n\
  408.  purified code blocks is determined and by which increment the buffer is\n\
  409.  extended when full.\
  410.   ");
  411.   /*.........................................................................*/
  412.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/SLACK",
  413.              Prim_HCBPB_slack, 0, 0,
  414.              "()\n\
  415.  Returns the `slack' by which the near-fullness of the profile buffer for\n\
  416.  heathen (i.e., non-purified) code blocks is determined and by which\n\
  417.  increment the buffer is extended when full.\
  418.   ");
  419.  
  420.   /*-------------------------------------------------------------------------*/
  421.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/SET-SLACK",
  422.              Prim_PCBPB_set_slack, 1, 1,
  423.              "(positive-fixnum)\n\
  424.  Sets the `slack' by which the near-fullness of the PCBPB is determined and\n\
  425.  by which increment the buffer is extended when full.\n\
  426.  \n\
  427.  Note that the slack must be a positive fixnum.\
  428.  ");
  429.   /*.........................................................................*/
  430.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/SET-SLACK",
  431.              Prim_HCBPB_set_slack, 1, 1,
  432.              "(positive-fixnum)\n\
  433.  Sets the `slack' by which the near-fullness of the HCBPB is determined and\n\
  434.  by which increment the buffer is extended when full.\n\
  435.  \n\
  436.  Note that the slack must be a positive fixnum.\
  437.  ");
  438.   /*-------------------------------------------------------------------------*/
  439.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/SLACK-INCREMENT",
  440.              Prim_PCBPB_slack_increment, 0, 0,
  441.              "()\n\
  442.  Returns the amount by which the PCBPB slack is incremented when a buffer\n\
  443.  overflow occurs. In this sense it cuts the slack more slack.\n\
  444.  \n\
  445.  Note that the slack increment will always be a fixnum, but it can be negative\n\
  446.  (in which case it functions as a slack decrement).\
  447.  ");
  448.   /*.........................................................................*/
  449.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/SLACK-INCREMENT",
  450.              Prim_HCBPB_slack_increment, 0, 0,
  451.              "()\n\
  452.  Returns the amount by which the HCBPB slack is incremented when a buffer\n\
  453.  overflow occurs. In this sense it cuts the slack more slack.\n\
  454.  \n\
  455.  Note that the slack increment will always be a fixnum, but it can be negative\n\
  456.  (in which case it functions as a slack decrement).\
  457.  ");
  458.   /*-------------------------------------------------------------------------*/
  459.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/SET-SLACK-INCREMENT",
  460.              Prim_PCBPB_set_slack_increment, 1, 1,
  461.              "(fixnum)\n\
  462.  Sets the amount by which the PCBPB slack is incremented when a buffer\n\
  463.  overflow occurs.\n\
  464.  \n\
  465.  Note that the slack increment must be a fixnum, but it can be negative\n\
  466.  (in which case it functions as a slack decrement).\
  467.  ");
  468.   /*.........................................................................*/
  469.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/SET-SLACK-INCREMENT",
  470.              Prim_HCBPB_set_slack_increment, 1, 1,
  471.              "(fixnum)\n\
  472.  Sets the amount by which the HCBPB slack is incremented when a buffer\n\
  473.  overflow occurs.\n\
  474.  \n\
  475.  Note that the slack increment must be a fixnum, but it can be negative\n\
  476.  (in which case it functions as a slack decrement).\
  477.  ");
  478.   /*-------------------------------------------------------------------------*/
  479.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/EXTEND-NOISY?",
  480.              Prim_PCBPB_extend_noisy_p, 0, 0,
  481.              "()\n\
  482.  Specifies whether notification of PCBPB buffer extensions is enabled.\
  483.  ");
  484.   /*.........................................................................*/
  485.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/EXTEND-NOISY?",
  486.              Prim_HCBPB_extend_noisy_p, 0, 0,
  487.              "()\n\
  488.  Specifies whether notification of HCBPB buffer extensions is enabled.\
  489.  ");
  490.  
  491.   /*-------------------------------------------------------------------------*/
  492.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/FLUSH-NOISY?",
  493.              Prim_PCBPB_flush_noisy_p, 0, 0,
  494.              "()\n\
  495.  Specifies whether notification of PCBPB buffer extensions is enabled.\
  496.  ");
  497.   /*.........................................................................*/
  498.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/FLUSH-NOISY?",
  499.              Prim_HCBPB_flush_noisy_p, 0, 0,
  500.              "()\n\
  501.  Specifies whether notification of HCBPB buffer extensions is enabled.\
  502.  ");
  503.   /*-------------------------------------------------------------------------*/
  504.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/OVERFLOW-NOISY?",
  505.              Prim_PCBPB_overflow_noisy_p, 0, 0,
  506.              "()\n\
  507.  Specifies whether notification of PCBPB buffer extensions is enabled.\
  508.  ");
  509.   /*.........................................................................*/
  510.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/OVERFLOW-NOISY?",
  511.              Prim_HCBPB_overflow_noisy_p, 0, 0,
  512.              "()\n\
  513.  Specifies whether notification of HCBPB buffer extensions is enabled.\
  514.  ");
  515.   /*-------------------------------------------------------------------------*/
  516.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/EXTEND-NOISY?/TOGGLE!",
  517.              Prim_PCBPB_extend_noisy_p_toggle_bang, 0, 0,
  518.              "()\n\
  519.  Toggles the Boolean sense of whether to notify of PCBPB buffer extensions.\n\
  520.  \n\
  521.  It returns the newly installed sense of the flag.\
  522.  ");
  523.   /*.........................................................................*/
  524.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/EXTEND-NOISY?/TOGGLE!",
  525.              Prim_HCBPB_extend_noisy_p_toggle_bang, 0, 0,
  526.              "()\n\
  527.  Toggles the Boolean sense of whether to notify of HCBPB buffer extensions.\n\
  528.  \n\
  529.  It returns the newly installed sense of the flag.\
  530.  ");
  531.   /*-------------------------------------------------------------------------*/
  532.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/FLUSH-NOISY?/TOGGLE!",
  533.              Prim_PCBPB_flush_noisy_p_toggle_bang, 0, 0,
  534.              "()\n\
  535.  Toggles the Boolean sense of whether to notify of PCBPB buffer flushes.\n\
  536.  \n\
  537.  It returns the newly installed sense of the flag.\
  538.  ");
  539.   /*.........................................................................*/
  540.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/FLUSH-NOISY?/TOGGLE!",
  541.              Prim_HCBPB_flush_noisy_p_toggle_bang, 0, 0,
  542.              "()\n\
  543.  Toggles the Boolean sense of whether to notify of HCBPB buffer flushes.\n\
  544.  \n\
  545.  It returns the newly installed sense of the flag.\
  546.  ");
  547.   /*-------------------------------------------------------------------------*/
  548.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/OVERFLOW-NOISY?/TOGGLE!",
  549.              Prim_PCBPB_overflow_noisy_p_toggle_bang, 0, 0,
  550.              "()\n\
  551.  Toggles the Boolean sense of whether to notify of PCBPB buffer overflowes.\n\
  552.  \n\
  553.  It returns the newly installed sense of the flag.\
  554.  ");
  555.   /*.........................................................................*/
  556.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/OVERFLOW-NOISY?/TOGGLE!",
  557.              Prim_HCBPB_overflow_noisy_p_toggle_bang, 0, 0,
  558.              "()\n\
  559.  Toggles the Boolean sense of whether to notify of HCBPB buffer overflowes.\n\
  560.  \n\
  561.  It returns the newly installed sense of the flag.\
  562.  ");
  563.  
  564.   /*-------------------------------------------------------------------------*/
  565.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/EMPTY?",
  566.              Prim_PCBPB_empty_p, 0, 0,
  567.              "()\n\
  568.  Returns a boolean indicating whether or not the profile buffer for\n\
  569.  purified code blocks is empty.\
  570.  ");
  571.   /*.........................................................................*/
  572.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/EMPTY?",
  573.              Prim_HCBPB_empty_p, 0, 0,
  574.              "()\n\
  575.  Returns a boolean indicating whether or not the profile buffer for\n\
  576.  heathen (i.e., unpurified) code blocks is empty.\
  577.  ");
  578.   /*-------------------------------------------------------------------------*/
  579.   declare_primitive ("PURIFIED-CODE-BLOCK-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX", 
  580.              Prim_PCBPB_next_empty_slot_index, 0, 0,
  581.              "()\n\
  582.  Returns the index of the next `free' slot of the profile buffer for\n\
  583.  purified code blocks.\
  584.  ");
  585.   /*.........................................................................*/
  586.   declare_primitive ("HEATHEN-CODE-BLOCK-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX", 
  587.              Prim_HCBPB_next_empty_slot_index, 0, 0,
  588.              "()\n\
  589.  Returns the index of the next `free' slot of the profile buffer for\n\
  590.  heathen (i.e., unpurified) code blocks.\
  591.  ");
  592.   /*-------------------------------------------------------------------------*/
  593.   declare_primitive ("%PURIFIED-CODE-BLOCK-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX/RESET",
  594.              Prim_PCBPB_next_empty_slot_index_reset, 0, 0,
  595.              "()\n\
  596.   Resets the index of the next `free' slot of the profile buffer for\n\
  597.   purified code blocks.\
  598.   \n\
  599.   Only officially designated wizards should even think of using this\n\
  600.   super secret primitive. FNORD!\
  601.   ");
  602.   /*.........................................................................*/
  603.   declare_primitive ("%HEATHEN-CODE-BLOCK-PROFILE-BUFFER/NEXT-EMPTY-SLOT-INDEX/RESET",
  604.              Prim_HCBPB_next_empty_slot_index_reset, 0, 0,
  605.              "()\n\
  606.   Resets the index of the next `free' slot of the profile buffer for\n\
  607.   heathen (i.e., unpurified) code blocks.\
  608.   \n\
  609.   Only officially designated wizards should even think of using this\n\
  610.   super secret primitive. FNORD!\
  611.   ");
  612.   /*-------------------------------------------------------------------------*/
  613.   declare_primitive ("%PC-SAMPLE/PCBPB-FLUSH-IMMEDIATE?",
  614.              Prim_pc_sample_PCBPB_flush_immediate_p, 0, 0,
  615.              "()\n\
  616.  Specifies whether the Purified Code Block Profile Buffer is flushed upon\n\
  617.  each entry.\n\
  618.  \n\
  619.  Only officially designated wizards should even think of using this\n\
  620.  super secret primitive. FNORD!\
  621.  ");
  622.   /*.........................................................................*/
  623.   declare_primitive ("%PC-SAMPLE/HCBPB-FLUSH-IMMEDIATE?",
  624.              Prim_pc_sample_HCBPB_flush_immediate_p, 0, 0,
  625.              "()\n\
  626.  Specifies whether the  Heathen Code Block Profile Buffer is flushed upon\n\
  627.  each entry.\n\
  628.  \n\
  629.  Only officially designated wizards should even think of using this\n\
  630.  super secret primitive. FNORD!\
  631.  ");
  632.  
  633.   /*-------------------------------------------------------------------------*/
  634.   declare_primitive ("%PC-SAMPLE/PCBPB-FLUSH-IMMEDIATE?/TOGGLE!",
  635.              Prim_pc_sample_PCBPB_flush_immediate_p_toggle_bang, 0, 0,
  636.              "()\n\
  637.  Toggles the Boolean sense of whether the Purified Code Block Profile Buffer\n\
  638.  is flushed upon each entry.\n\
  639.  \n\
  640.  It returns the newly installed sense of the flag.\n\
  641.  \n\
  642.  This is for mondo bizarro sampler debugging purposes only.\n\
  643.  \n\
  644.  Only officially designated moby wizards should even think of thinking of\n\
  645.  using this most ultra super duper secret primitive. FNORD!\
  646.  ");
  647.   /*.........................................................................*/
  648.   declare_primitive ("%PC-SAMPLE/HCBPB-FLUSH-IMMEDIATE?/TOGGLE!",
  649.              Prim_pc_sample_HCBPB_flush_immediate_p_toggle_bang, 0, 0,
  650.              "()\n\
  651.  Toggles the Boolean sense of whether the  Heathen Code Block Profile Buffer\n\
  652.  is flushed upon each entry.\n\
  653.  \n\
  654.  It returns the newly installed sense of the flag.\n\
  655.  \n\
  656.  This is for mondo bizarro sampler debugging purposes only.\n\
  657.  \n\
  658.  Only officially designated moby wizards should even think of thinking of\n\
  659.  using this most ultra super duper secret primitive. FNORD!\
  660.  ");
  661.   /*-------------------------------------------------------------------------*/
  662.   declare_primitive ("%PC-SAMPLE/PCBPB-DEBUGGING?",
  663.              Prim_pc_sample_PCBPB_debugging_p, 0, 0,
  664.              "()\n\
  665.  Specifies whether the Purified Code Block Profile Buffer is in debugging mode.\n\
  666.  \n\
  667.  Only officially designated wizards should even think of using this\n\
  668.  super secret primitive. FNORD!\
  669.  ");
  670.   /*.........................................................................*/
  671.   declare_primitive ("%PC-SAMPLE/HCBPB-DEBUGGING?",
  672.              Prim_pc_sample_HCBPB_debugging_p, 0, 0,
  673.              "()\n\
  674.  Specifies whether the  Heathen Code Block Profile Buffer is in debugging mode.\n\
  675.  \n\
  676.  Only officially designated wizards should even think of using this\n\
  677.  super secret primitive. FNORD!\
  678.  ");
  679.   /*-------------------------------------------------------------------------*/
  680.   declare_primitive ("%PC-SAMPLE/PCBPB-DEBUGGING?/TOGGLE!",
  681.              Prim_pc_sample_PCBPB_debugging_p_toggle_bang, 0, 0,
  682.              "()\n\
  683.  Toggles the Boolean sense of whether the Purified Code Block Profile Buffer\n\
  684.  is in debugging mode.\n\
  685.  \n\
  686.  It returns the newly installed sense of the flag.\n\
  687.  \n\
  688.  This is for mondo bizarro sampler debugging purposes only.\n\
  689.  \n\
  690.  Only officially designated moby wizards should even think of thinking of\n\
  691.  using this most ultra super duper secret primitive. FNORD!\
  692.  ");
  693.   /*.........................................................................*/
  694.   declare_primitive ("%PC-SAMPLE/HCBPB-DEBUGGING?/TOGGLE!",
  695.              Prim_pc_sample_HCBPB_debugging_p_toggle_bang, 0, 0,
  696.              "()\n\
  697.  Toggles the Boolean sense of whether the  Heathen Code Block Profile Buffer\n\
  698.  is in debugging mode.\n\
  699.  \n\
  700.  It returns the newly installed sense of the flag.\n\
  701.  \n\
  702.  This is for mondo bizarro sampler debugging purposes only.\n\
  703.  \n\
  704.  Only officially designated moby wizards should even think of thinking of\n\
  705.  using this most ultra super duper secret primitive. FNORD!\
  706.  ");
  707.  
  708.   /*-------------------------------------------------------------------------*/
  709.   declare_primitive ("%PC-SAMPLE/PCBPB-MONITORING?",
  710.              Prim_pc_sample_PCBPB_monitoring_p, 0, 0,
  711.              "()\n\
  712.  Specifies whether the PCBPB is in monitoring mode.\n\
  713.  \n\
  714.  This, for instance, is how a count of buffer overflows is accumulated.\
  715.  ");
  716.   /*.........................................................................*/
  717.   declare_primitive ("%PC-SAMPLE/HCBPB-MONITORING?",
  718.              Prim_pc_sample_HCBPB_monitoring_p, 0, 0,
  719.              "()\n\
  720.  Specifies whether the HCBPB is in monitoring mode.\n\
  721.  \n\
  722.  This, for instance, is how a count of buffer overflows is accumulated.\
  723.  ");
  724.   /*-------------------------------------------------------------------------*/
  725.   declare_primitive ("%PC-SAMPLE/PCBPB-MONITORING?/TOGGLE!",
  726.              Prim_pc_sample_PCBPB_monitoring_p_toggle_bang, 0, 0,
  727.              "()\n\
  728.  Toggles the Boolean sense of whether the Purified Code Block Profile Buffer\n\
  729.  is in monitoring mode.\n\
  730.  \n\
  731.  It returns the newly installed sense of the flag.\n\
  732.  \n\
  733.  This is for mondo bizarro sampler monitoring purposes only.\n\
  734.  For instance, toggling this monitor flag to true triggers accumulating\n\
  735.  a count of buffer overflows.\
  736.  ");
  737.   /*.........................................................................*/
  738.   declare_primitive ("%PC-SAMPLE/HCBPB-MONITORING?/TOGGLE!",
  739.              Prim_pc_sample_HCBPB_monitoring_p_toggle_bang, 0, 0,
  740.              "()\n\
  741.  Toggles the Boolean sense of whether the  Heathen Code Block Profile Buffer\n\
  742.  is in monitoring mode.\n\
  743.  \n\
  744.  It returns the newly installed sense of the flag.\n\
  745.  \n\
  746.  This is for mondo bizarro sampler monitoring purposes only.\n\
  747.  For instance, toggling this monitor flag to true triggers accumulating\n\
  748.  a count of buffer overflows.\
  749.  ");
  750.   /*-------------------------------------------------------------------------*/
  751.   declare_primitive ("%PC-SAMPLE/PCBPB-FLUSH-COUNT",
  752.              Prim_pc_sample_PCBPB_flush_count, 0, 0,
  753.              "()\n\
  754.  Returns the number of PCBPB flush requests that have been issued since the\n\
  755.  last PC-SAMPLE/PCBPB-FLUSH-COUNT/RESET was issued (or since booting if no\n\
  756.  resets issued).\
  757.  ");
  758.   /*.........................................................................*/
  759.   declare_primitive ("%PC-SAMPLE/HCBPB-FLUSH-COUNT",
  760.              Prim_pc_sample_HCBPB_flush_count, 0, 0,
  761.              "()\n\
  762.  Returns the number of HCBPB flush requests that have been issued since the\n\
  763.  last PC-SAMPLE/HCBPB-FLUSH-COUNT/RESET was issued (or since booting if no\n\
  764.  resets issued).\
  765.  ");
  766.   /*-------------------------------------------------------------------------*/
  767.   declare_primitive ("%PC-SAMPLE/PCBPB-FLUSH-COUNT/RESET",
  768.              Prim_pc_sample_PCBPB_flush_count_reset, 0, 0,
  769.              "()\n\
  770.  Resets the PCBPB flush count (obviously... sheesh!).\
  771.  ");
  772.   /*.........................................................................*/
  773.   declare_primitive ("%PC-SAMPLE/HCBPB-FLUSH-COUNT/RESET",
  774.              Prim_pc_sample_HCBPB_flush_count_reset, 0, 0,
  775.              "()\n\
  776.  Resets the HCBPB flush count (obviously... sheesh!).\
  777.  ");
  778.  
  779.   /*-------------------------------------------------------------------------*/
  780.   declare_primitive ("%PC-SAMPLE/PCBPB-EXTEND-COUNT",
  781.              Prim_pc_sample_PCBPB_extend_count, 0, 0,
  782.              "()\n\
  783.  Returns the number of PCBPB extend requests that have been issued since the\n\
  784.  last PC-SAMPLE/PCBPB-EXTEND-COUNT/RESET was issued (or since booting if no\n\
  785.  resets issued).\
  786.  ");
  787.   /*.........................................................................*/
  788.   declare_primitive ("%PC-SAMPLE/HCBPB-EXTEND-COUNT",
  789.              Prim_pc_sample_HCBPB_extend_count, 0, 0,
  790.              "()\n\
  791.  Returns the number of HCBPB extend requests that have been issued since the\n\
  792.  last PC-SAMPLE/HCBPB-EXTEND-COUNT/RESET was issued (or since booting if no\n\
  793.  resets issued).\
  794.  ");
  795.   /*-------------------------------------------------------------------------*/
  796.   declare_primitive ("%PC-SAMPLE/PCBPB-EXTEND-COUNT/RESET",
  797.              Prim_pc_sample_PCBPB_extend_count_reset, 0, 0,
  798.              "()\n\
  799.  Resets the PCBPB extend count (obviously... sheesh!).\
  800.  ");
  801.   /*.........................................................................*/
  802.   declare_primitive ("%PC-SAMPLE/HCBPB-EXTEND-COUNT/RESET",
  803.              Prim_pc_sample_HCBPB_extend_count_reset, 0, 0,
  804.              "()\n\
  805.  Resets the HCBPB extend count (obviously... sheesh!).\
  806.  ");
  807.   /*-------------------------------------------------------------------------*/
  808.   declare_primitive ("%PC-SAMPLE/PCBPB-OVERFLOW-COUNT",
  809.              Prim_pc_sample_PCBPB_overflow_count, 0, 0,
  810.              "()\n\
  811.  Returns the number of PCBPB overflows that have been issued since the last\n\
  812.  PC-SAMPLE/PCBPB-OVERFLOW-COUNT/RESET was issued (or since booting if no\n\
  813.  resets issued).\n\
  814.  \n\
  815.  Each overflow indicates a sample that was punted into the bit bucket.\
  816.  ");
  817.   /*.........................................................................*/
  818.   declare_primitive ("%PC-SAMPLE/HCBPB-OVERFLOW-COUNT",
  819.              Prim_pc_sample_HCBPB_overflow_count, 0, 0,
  820.              "()\n\
  821.  Returns the number of HCBPB overflows that have been issued since the last\n\
  822.  PC-SAMPLE/HCBPB-OVERFLOW-COUNT/RESET was issued (or since booting if no\n\
  823.  resets issued).\n\
  824.  \n\
  825.  Each overflow indicates a sample that was punted into the bit bucket.\
  826.  ");
  827.   /*-------------------------------------------------------------------------*/
  828.   declare_primitive ("%PC-SAMPLE/PCBPB-OVERFLOW-COUNT/RESET",
  829.              Prim_pc_sample_PCBPB_overflow_count_reset, 0, 0,
  830.              "()\n\
  831.  Resets the PCBPB overflow count (obviously... sheesh!).\
  832.  ");
  833.   /*.........................................................................*/
  834.   declare_primitive ("%PC-SAMPLE/HCBPB-OVERFLOW-COUNT/RESET",
  835.              Prim_pc_sample_HCBPB_overflow_count_reset, 0, 0,
  836.              "()\n\
  837.  Resets the HCBPB overflow count (obviously... sheesh!).\
  838.  ");
  839.  
  840.   /*-------------------------------------------------------------------------*/
  841.   declare_primitive ("%PC-SAMPLE/PCBPB-EXTRA-INFO",
  842.              Prim_pc_sample_PCBPB_extra_info, 0, 0,
  843.              "()\n\
  844.  Returns the extra info entry associated with the Purified Code Block\n\
  845.  Profile Buffer.\n\
  846.  \n\
  847.  Only officially designated wizards should even think of using this\n\
  848.  super secret primitive. FNORD!\
  849.  ");
  850.   /*.........................................................................*/
  851.   declare_primitive ("%PC-SAMPLE/HCBPB-EXTRA-INFO",
  852.              Prim_pc_sample_HCBPB_extra_info, 0, 0,
  853.              "()\n\
  854.  Returns the extra info entry associated with the  Heathen Code Block\n\
  855.  Profile Buffer.\n\
  856.  \n\
  857.  Only officially designated wizards should even think of using this\n\
  858.  super secret primitive. FNORD!\
  859.  ");
  860.   /*-------------------------------------------------------------------------*/
  861.   declare_primitive ("%PC-SAMPLE/SET-PCBPB-EXTRA-INFO!",
  862.              Prim_pc_sample_set_PCBPB_extra_info, 1, 1,
  863.              "(object)\n\
  864.  Stores OBJECT in the extra info entry of the Purified Code Block\n\
  865.  Profile Buffer.\n\
  866.  \n\
  867.  This is for mondo bizarro sampler frobnication purposes only.\n\
  868.  \n\
  869.  Only officially designated moby wizards should even think of thinking of\n\
  870.  using this most ultra super duper secret primitive. FNORD!\
  871.  ");
  872.   /*.........................................................................*/
  873.   declare_primitive ("%PC-SAMPLE/SET-HCBPB-EXTRA-INFO!",
  874.              Prim_pc_sample_set_HCBPB_extra_info, 1, 1,
  875.              "(object)\n\
  876.  Stores OBJECT in the extra info entry of the  Heathen Code Block\n\
  877.  Profile Buffer.\n\
  878.  \n\
  879.  This is for mondo bizarro sampler frobnication purposes only.\n\
  880.  \n\
  881.  Only officially designated moby wizards should even think of thinking of\n\
  882.  using this most ultra super duper secret primitive. FNORD!\
  883.  ");
  884.   /*-------------------------------------------------------------------------*/
  885.  
  886.  
  887.  
  888.   declare_primitive ("%PC-SAMPLE/SET-ZONE!",
  889.              Prim_pc_sample_set_current_zone, 1, 1,
  890.              "(index)\n\
  891. Set current pc-sampling zone to INDEX (a small exact integer), returning \
  892. the previous value if different, else #F if same.");
  893.  
  894.   declare_primitive ("%PC-SAMPLE/MAX-ZONE",
  895.              Prim_pc_sample_get_max_zone, 0, 0, 0);
  896.  
  897.   declare_primitive ("%PC-SAMPLE/CLEAR-ZONES!",
  898.              Prim_pc_sample_clear_zones, 0, 0,
  899.              "()\nZero zone counts.");
  900.  
  901.   declare_primitive ("%PC-SAMPLE/READ-ZONES!", Prim_pc_sample_read_zones, 1, 1,
  902.              "(flonum-vector)\n\
  903. Copy zone counts into FLONUM-VECTOR.  Returns the number copied, which \
  904. is limited by either the number of zones to the capacity of FLONUM-VECTOR.");
  905.  
  906. }
  907.