<?php

if (isset($_POST['submit']))
{

   header('Content-Type: text/xml');
   print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';

?>

<!-- CSE221 project results -->
<cse221-project>

    <!-- Machine Description -->
    <machine-description>

        <!-- Operating System and version -->
        <operating-system><?php print $_POST['os_name'] ?></operating-system>

        <!-- Compiler -->
        <compiler>

            <!-- Compiler name -->
            <name><?php print $_POST['c_name'] ?></name>

            <!-- Compiler options (i.e. flags) -->
            <options><?php print $_POST['c_opts'] ?></options>

        </compiler>

        <!-- Processor info -->
        <processor>

            <!-- Processor name -->
            <processor-name><?php print $_POST['cpu_name'] ?></processor-name>

            <!-- Cycle time -->
            <cycle-time>
                <value><?php print $_POST['cpu_cycle'] ?></value>
                <units>ns</units>
            </cycle-time>

        </processor>

        <!-- RAM size -->
        <ram-size>
            <value><?php print $_POST['ram_size'] ?></value>
            <units>MB</units>
        </ram-size>

        <!-- Network card speed -->
        <network-card-speed>
            <value><?php print $_POST['nic_speed'] ?></value>
            <units>Mbps</units>
        </network-card-speed>

        <!-- Disk info -->
        <disk>

            <!-- Data transfer rate -->
            <data-transfer-rate>
                <value><?php print $_POST['disk_tran'] ?></value>
                <units>MB/s</units>
            </data-transfer-rate>

            <!-- Average seek time -->
            <average-seek-time>
                <value><?php print $_POST['disk_seek'] ?></value>
                <units>ms</units>
            </average-seek-time>

            <!-- Average rotational latency -->
            <average-rotational-latency>
                <value><?php print $_POST['disk_rot'] ?></value>
                <units>ms</units>
            </average-rotational-latency>

        </disk>

    </machine-description>

    <!-- Operation information -->
    <operations>

        <!-- CPU, Scheduling, and OS Services -->
        <cpu>

            <!-- Read time overhead -->
            <read-overhead>
                <value><?php print $_POST['cpu_read'] ?></value>
                <units>cycles</units>
                <notes></notes>
            </read-overhead>

            <!-- Loop overhead -->
            <loop-overhead>
                <value><?php print $_POST['cpu_loop'] ?></value>
                <units>cycles</units>
                <notes></notes>
            </loop-overhead>
            
            <!-- Procedure call overhead -->
            <proc-overhead>

                <!-- 0 args -->
                <args-0>
                    <value><?php print $_POST['cpu_proc_0'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-0>
            
                <!-- 1 args -->
                <args-1>
                    <value><?php print $_POST['cpu_proc_1'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-1>
            
                <!-- 2 args -->
                <args-2>
                    <value><?php print $_POST['cpu_proc_2'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-2>
            
                <!-- 3 args -->
                <args-3>
                    <value><?php print $_POST['cpu_proc_3'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-3>
            
                <!-- 4 args -->
                <args-4>
                    <value><?php print $_POST['cpu_proc_4'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-4>

                <!-- 5 args -->
                <args-5>
                    <value><?php print $_POST['cpu_proc_5'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-5>

                <!-- 6 args -->
                <args-6>
                    <value><?php print $_POST['cpu_proc_6'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-6>

                <!-- 7 args -->
                <args-7>
                    <value><?php print $_POST['cpu_proc_7'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </args-7>

            </proc-overhead>

            <!-- System call overhead -->
            <syscall-overhead>
                <value><?php print $_POST['cpu_syscall'] ?></value>
                <units>cycles</units>
                <notes></notes>
            </syscall-overhead>

            <!-- Task creation time -->
            <task-creation>

                <!-- Process -->
                <process>
                    <value><?php print $_POST['cpu_task_process'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </process>

                <!-- Kernel thread -->
                <kthread>
                    <value><?php print $_POST['cpu_task_kthread'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </kthread>

            </task-creation>

            <!-- Context switch time -->
            <context-switch>

                <!-- Process -->
                <process>
                    <value><?php print $_POST['cpu_cswitch_process'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </process>

                <!-- Kernel thread -->
                <kthread>
                    <value><?php print $_POST['cpu_cswitch_kthread'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </kthread>

            </context-switch>
            
        </cpu>

        <!-- Memory -->
        <memory>

            <!-- RAM access time-->
            <ram-access-time>

                <!-- L1 cache -->
                <l1>
                    <value><?php print $_POST['mem_access_l1'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </l1>
            
                <!-- L2 cache -->
                <l2>
                    <value><?php print $_POST['mem_access_l2'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </l2>

                <!-- Main memory -->
                <memory>
                    <value><?php print $_POST['mem_access_mem'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </memory>

            </ram-access-time>

            <!-- RAM bandwidth -->
            <ram-bandwidth>

                <!-- Read bandwidth -->
                <read>
                    <value><?php print $_POST['mem_bw_read'] ?></value>
                    <units>MB/s</units>
                    <notes></notes>
                </read>

                <!-- Write bandwidth -->
                <write>
                    <value><?php print $_POST['mem_bw_write'] ?></value>
                    <units>MB/s</units>
                    <notes></notes>
                </write>

            </ram-bandwidth>

            <!-- Page fault service time -->
            <page-fault>
                <value><?php print $_POST['mem_pagefault'] ?></value>
                <units>cycles</units>
                <notes></notes>
            </page-fault>

        </memory>

        <!-- Network -->
        <network>

            <!-- Round trip time -->
            <rtt>

                <!-- Ping (loopback) -->
                <ping-loopback>
                    <value><?php print $_POST['net_rtt_ping_l'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </ping-loopback>

                <!-- Ping (remote) -->
                <ping-remote>
                    <value><?php print $_POST['net_rtt_ping_r'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </ping-remote>

                <!-- TCP (loopback) -->
                <tcp-loopback>
                    <value><?php print $_POST['net_rtt_tcp_l'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-loopback>

                <!-- TCP (remote) -->
                <tcp-remote>
                    <value><?php print $_POST['net_rtt_tcp_r'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-remote>

            </rtt>

            <!-- Peak bandwidth -->
            <bandwidth>
            
                <!-- TCP (loopback) -->
                <tcp-loopback>
                    <value><?php print $_POST['net_bw_tcp_l'] ?></value>
                    <units>Mbps</units>
                    <notes></notes>
                </tcp-loopback>

                <!-- TCP (remote) -->
                <tcp-remote>
                    <value><?php print $_POST['net_bw_tcp_r'] ?></value>
                    <units>Mbps</units>
                    <notes></notes>
                </tcp-remote>

            </bandwidth>

            <!-- Connection overhead -->
            <connection>

                <!-- TCP setup (loopback) -->
                <tcp-setup-loopback>
                    <value><?php print $_POST['net_setup_tcp_l'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-setup-loopback>

                <!-- TCP setup (remote) -->
                <tcp-setup-remote>
                    <value><?php print $_POST['net_setup_tcp_r'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-setup-remote>

                <!-- TCP teardown (loopback) -->
                <tcp-teardown-loopback>
                    <value><?php print $_POST['net_teardown_tcp_l'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-teardown-loopback>

                <!-- TCP teardown (remote)-->
                <tcp-teardown-remote>
                    <value><?php print $_POST['net_teardown_tcp_r'] ?></value>
                    <units>cycles</units>
                    <notes></notes>
                </tcp-teardown-remote>

            </connection>

        </network>

        <!-- File System -->
        <filesystem>
        
            <!-- File cache size -->
            <file-cache-size>
                <value><?php print $_POST['fs_filecache'] ?></value>
                <units>MB</units>
                <notes></notes>
            </file-cache-size>

            <!-- File read time (local) -->
            <file-read-local>

                <!-- 1 MB (sequential) -->
                <seq-1>
                    <value><?php print $_POST['fs_read_l_seq_1'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-1>

                <!-- 2 MB (sequential) -->
                <seq-2>
                    <value><?php print $_POST['fs_read_l_seq_2'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-2>

                <!-- 4 MB (sequential) -->
                <seq-4>
                    <value><?php print $_POST['fs_read_l_seq_4'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-4>

                <!-- 8 MB (sequential) -->
                <seq-8>
                    <value><?php print $_POST['fs_read_l_seq_8'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-8>

                <!-- 16 MB (sequential) -->
                <seq-16>
                    <value><?php print $_POST['fs_read_l_seq_16'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-16>

                <!-- 32 MB (sequential) -->
                <seq-32>
                    <value><?php print $_POST['fs_read_l_seq_32'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-32>

                <!-- 64 MB (sequential) -->
                <seq-64>
                    <value><?php print $_POST['fs_read_l_seq_64'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-64>

                <!-- 128 MB (sequential) -->
                <seq-128>
                    <value><?php print $_POST['fs_read_l_seq_128'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-128>

                <!-- 256 MB (sequential) -->
                <seq-256>
                    <value><?php print $_POST['fs_read_l_seq_256'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-256>

                <!-- 512 MB (sequential) -->
                <seq-512>
                    <value><?php print $_POST['fs_read_l_seq_512'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-512>

                <!-- 1024 MB (sequential) -->
                <seq-1024>
                    <value><?php print $_POST['fs_read_l_seq_1024'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-1024>

                <!-- 2048 MB (sequential) -->
                <seq-2048>
                    <value><?php print $_POST['fs_read_l_seq_2048'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-2048>

                <!-- 1 MB (random) -->
                <ran-1>
                    <value><?php print $_POST['fs_read_l_ran_1'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-1>

                <!-- 2 MB (random) -->
                <ran-2>
                    <value><?php print $_POST['fs_read_l_ran_2'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-2>

                <!-- 4 MB (random) -->
                <ran-4>
                    <value><?php print $_POST['fs_read_l_ran_4'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-4>

                <!-- 8 MB (random) -->
                <ran-8>
                    <value><?php print $_POST['fs_read_l_ran_8'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-8>

                <!-- 16 MB (random) -->
                <ran-16>
                    <value><?php print $_POST['fs_read_l_ran_16'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-16>

                <!-- 32 MB (random) -->
                <ran-32>
                    <value><?php print $_POST['fs_read_l_ran_32'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-32>

                <!-- 64 MB (random) -->
                <ran-64>
                    <value><?php print $_POST['fs_read_l_ran_64'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-64>

                <!-- 128 MB (random) -->
                <ran-128>
                    <value><?php print $_POST['fs_read_l_ran_128'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-128>

                <!-- 256 MB (random) -->
                <ran-256>
                    <value><?php print $_POST['fs_read_l_ran_256'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-256>

                <!-- 512 MB (random) -->
                <ran-512>
                    <value><?php print $_POST['fs_read_l_ran_512'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-512>

                <!-- 1024 MB (random) -->
                <ran-1024>
                    <value><?php print $_POST['fs_read_l_ran_1024'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-1024>

                <!-- 2048 MB (random) -->
                <ran-2048>
                    <value><?php print $_POST['fs_read_l_ran_2048'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-2048>

            </file-read-local>

            <!-- File read time (remote) -->
            <file-read-remote>

                <!-- 1 MB (sequential) -->
                <seq-1>
                    <value><?php print $_POST['fs_read_r_seq_1'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-1>

                <!-- 2 MB (sequential) -->
                <seq-2>
                    <value><?php print $_POST['fs_read_r_seq_2'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-2>

                <!-- 4 MB (sequential) -->
                <seq-4>
                    <value><?php print $_POST['fs_read_r_seq_4'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-4>

                <!-- 8 MB (sequential) -->
                <seq-8>
                    <value><?php print $_POST['fs_read_r_seq_8'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-8>

                <!-- 16 MB (sequential) -->
                <seq-16>
                    <value><?php print $_POST['fs_read_r_seq_16'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-16>

                <!-- 32 MB (sequential) -->
                <seq-32>
                    <value><?php print $_POST['fs_read_r_seq_32'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-32>

                <!-- 64 MB (sequential) -->
                <seq-64>
                    <value><?php print $_POST['fs_read_r_seq_64'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-64>

                <!-- 128 MB (sequential) -->
                <seq-128>
                    <value><?php print $_POST['fs_read_r_seq_128'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-128>

                <!-- 256 MB (sequential) -->
                <seq-256>
                    <value><?php print $_POST['fs_read_r_seq_256'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-256>

                <!-- 512 MB (sequential) -->
                <seq-512>
                    <value><?php print $_POST['fs_read_r_seq_512'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-512>

                <!-- 1024 MB (sequential) -->
                <seq-1024>
                    <value><?php print $_POST['fs_read_r_seq_1024'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-1024>

                <!-- 2048 MB (sequential) -->
                <seq-2048>
                    <value><?php print $_POST['fs_read_r_seq_2048'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </seq-2048>

                <!-- 1 MB (random) -->
                <ran-1>
                    <value><?php print $_POST['fs_read_r_ran_1'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-1>

                <!-- 2 MB (random) -->
                <ran-2>
                    <value><?php print $_POST['fs_read_r_ran_2'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-2>

                <!-- 4 MB (random) -->
                <ran-4>
                    <value><?php print $_POST['fs_read_r_ran_4'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-4>

                <!-- 8 MB (random) -->
                <ran-8>
                    <value><?php print $_POST['fs_read_r_ran_8'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-8>

                <!-- 16 MB (random) -->
                <ran-16>
                    <value><?php print $_POST['fs_read_r_ran_16'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-16>

                <!-- 32 MB (random) -->
                <ran-32>
                    <value><?php print $_POST['fs_read_r_ran_32'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-32>

                <!-- 64 MB (random) -->
                <ran-64>
                    <value><?php print $_POST['fs_read_r_ran_64'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-64>

                <!-- 128 MB (random) -->
                <ran-128>
                    <value><?php print $_POST['fs_read_r_ran_128'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-128>

                <!-- 256 MB (random) -->
                <ran-256>
                    <value><?php print $_POST['fs_read_r_ran_256'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-256>

                <!-- 512 MB (random) -->
                <ran-512>
                    <value><?php print $_POST['fs_read_r_ran_512'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-512>

                <!-- 1024 MB (random) -->
                <ran-1024>
                    <value><?php print $_POST['fs_read_r_ran_1024'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-1024>

                <!-- 2048 MB (random) -->
                <ran-2048>
                    <value><?php print $_POST['fs_read_r_ran_2048'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </ran-2048>

            </file-read-remote>

            <!-- File contention -->
            <file-contention>

                <!-- 1 process -->
                <process-1>
                    <value><?php print $_POST['fs_contention_1'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-1>

                <!-- 2 process -->
                <process-2>
                    <value><?php print $_POST['fs_contention_2'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-2>

                <!-- 3 process -->
                <process-3>
                    <value><?php print $_POST['fs_contention_3'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-3>

                <!-- 4 process -->
                <process-4>
                    <value><?php print $_POST['fs_contention_4'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-4>

                <!-- 5 process -->
                <process-5>
                    <value><?php print $_POST['fs_contention_5'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-5>

                <!-- 6 process -->
                <process-6>
                    <value><?php print $_POST['fs_contention_6'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-6>

                <!-- 7 process -->
                <process-7>
                    <value><?php print $_POST['fs_contention_7'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-7>

                <!-- 8 process -->
                <process-8>
                    <value><?php print $_POST['fs_contention_8'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-8>

                <!-- 9 process -->
                <process-9>
                    <value><?php print $_POST['fs_contention_9'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-9>

                <!-- 10 process -->
                <process-10>
                    <value><?php print $_POST['fs_contention_10'] ?></value>
                    <units>ms</units>
                    <notes></notes>
                </process-10>

            </file-contention>

        </filesystem>

    </operations>
</cse221-project>

<?php
}
else
{

?>

<!-- Form -->
<html>

<head>
<title>cse221 project results form</title>
</head>

<body>

<h2>cse221 project results submission instructions</h2>

<ul>
<li>fill out the form below with your results</li>
<li>use the specified units</li>
<li>press submit</li>
<li>save generated XML file</li>
</ul>

<br />
<hr />

<form action="form.php" method="post">

      <!-- Group Information -->
      <h3>Group Information</h3>

        <h4>1st Member</h4>
        <table>
        <tr>
          <td>first name:</td>
          <td><input type="text" name="fname_1" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>last name:</td>
          <td><input type="text" name="lname_1" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>email:</td>
          <td><input type="text" name="email_1" size="20" maxlength="40" value=""/></td>
        </tr>
        </table>

        <h4>2nd Member</h4>
        <table>
        <tr>
          <td>first name:</td>
          <td><input type="text" name="fname_2" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>last name:</td>
          <td><input type="text" name="lname_2" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>email:</td>
          <td><input type="text" name="email_2" size="20" maxlength="40" value=""/></td>
        </tr>
        </table>

        <h4>3rd Member</h4>
        <table>
        <tr>
          <td>first name:</td>
          <td><input type="text" name="fname_3" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>last name:</td>
          <td><input type="text" name="lname_3" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>email:</td>
          <td><input type="text" name="email_3" size="20" maxlength="40" value=""/></td>
        </tr>
        </table>

      <!-- Machine Info -->
      <h3>Machine Info</h3>

        <table>
        <tr>
          <td>operating system:</td>
          <td><input type="text" name="os_name" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>compiler name:</td>
          <td><input type="text" name="c_name" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>compiler options:</td>
          <td><input type="text" name="c_opts" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>processor name:</td>
          <td><input type="text" name="cpu_name" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>processor cycle time (in ns):</td>
          <td><input type="text" name="cpu_cycle" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>ram size (in MB):</td>
          <td><input type="text" name="ram_size" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>network card speed (in Mbps):</td>
          <td><input type="text" name="nic_speed" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>disk data transfer rate (in MB/s):</td>
          <td><input type="text" name="disk_tran" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>disk average seek time (in ms):</td>
          <td><input type="text" name="disk_seek" size="20" maxlength="40" value=""/></td>
        </tr>
        <tr>
          <td>disk average rotational latency (in ms):</td>
          <td><input type="text" name="disk_rot" size="20" maxlength="40" value=""/></td>
        </tr>
        </table>

      <!-- Results -->
      <h3>Results</h3>

      <h4>CPU, Scheduling, and OS Services</h4>
      <table>

      <!-- measurement overhead -->
      <tr>
        <td>read overhead (in cycles):</td>
        <td><input type="text" name="cpu_read" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>loop overhead (in cycles):</td>
        <td><input type="text" name="cpu_loop" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- procedure call overhead -->
      <tr>
        <td>procedure call (0 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_0" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (1 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (2 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (3 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_3" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (4 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (5 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_5" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (6 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_6" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>procedure call (7 args) (in cycles):</td>
        <td><input type="text" name="cpu_proc_7" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- system call overhead -->
      <tr>
        <td>system call (in cycles):</td>
        <td><input type="text" name="cpu_syscall" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- task creation time -->
      <tr>
        <td>task creation (process) (in cycles):</td>
        <td><input type="text" name="cpu_task_process" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>task creation (kthread) (in cycles):</td>
        <td><input type="text" name="cpu_task_kthread" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- context switch time -->
      <tr>
        <td>context switch (process) (in cycles):</td>
        <td><input type="text" name="cpu_cswitch_process" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>context switch (kthread) (in cycles):</td>
        <td><input type="text" name="cpu_cswitch_kthread" size="20" maxlength="40" value=""/></td>
      </tr>

      </table>

      <h4>Memory</h4>
      <table>

      <!-- ram access time -->
      <tr>
        <td>ram access time (l1 cache) (in cycles):</td>
        <td><input type="text" name="mem_access_l1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>ram access time (l2 cache) (in cycles):</td>
        <td><input type="text" name="mem_access_l2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>ram access time (memory) (in cycles):</td>
        <td><input type="text" name="mem_access_mem" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- ram bandwidth -->
      <tr>
        <td>ram bandwidth (read) (in MB/s):</td>
        <td><input type="text" name="mem_bw_read" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>ram bandwidth (write) (in MB/s):</td>
        <td><input type="text" name="mem_bw_write" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- page fault service time -->
      <tr>
        <td>page fault (in cycles):</td>
        <td><input type="text" name="mem_pagefault" size="20" maxlength="40" value=""/></td>
      </tr>

      </table>

      <h4>Network</h4>
      <table>

      <!-- round trip time -->
      <tr>
        <td>round trip time (ping, loopback) (in cycles):</td>
        <td><input type="text" name="net_rtt_ping_l" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>round trip time (ping, remote) (in cycles):</td>
        <td><input type="text" name="net_rtt_ping_r" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>round trip time (tcp, loopback) (in cycles):</td>
        <td><input type="text" name="net_rtt_tcp_l" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>round trip time (tcp, remote) (in cycles):</td>
        <td><input type="text" name="net_rtt_tcp_r" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- peak bandwidth -->
      <tr>
        <td>peak bandwidth (tcp, loopback) (in Mbps):</td>
        <td><input type="text" name="net_bw_tcp_l" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>peak bandwidth (tcp, remote) (in Mbps):</td>
        <td><input type="text" name="net_bw_tcp_r" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- connection overhead -->
      <tr>
        <td>connection setup (tcp, loopback) (in cycles):</td>
        <td><input type="text" name="net_setup_tcp_l" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>connection setup (tcp, remote) (in cycles):</td>
        <td><input type="text" name="net_setup_tcp_r" size="20" maxlength="40" value=""/></td>
      </tr>

      <tr>
        <td>connection teardown (tcp, loopback) (in cycles):</td>
        <td><input type="text" name="net_teardown_tcp_l" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>connection teardown (tcp, remote) (in cycles):</td>
        <td><input type="text" name="net_teardown_tcp_r" size="20" maxlength="40" value=""/></td>
      </tr>

      </table>

      <h4>File System</h4>
      <table>

      <!-- file cache size -->
      <tr>
        <td>file cache size (in MB):</td>
        <td><input type="text" name="fs_filecache" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- file read time (local) -->
      <tr>
        <td>file read time (local, sequential, 1 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 2 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 4 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 8 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_8" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 16 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_16" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 32 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_32" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 64 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_64" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 128 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_128" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 256 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_256" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 512 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_512" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 1024 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_1024" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, sequential, 2048 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_seq_2048" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 1 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 2 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 4 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 8 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_8" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 16 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_16" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 32 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_32" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 64 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_64" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 128 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_128" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 256 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_256" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 512 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_512" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 1024 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_1024" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (local, random, 2048 MB) (in ms):</td>
        <td><input type="text" name="fs_read_l_ran_2048" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- file read time (remote) -->
      <tr>
        <td>file read time (remote, sequential, 1 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 2 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 4 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 8 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_8" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 16 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_16" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 32 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_32" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 64 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_64" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 128 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_128" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 256 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_256" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 512 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_512" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 1024 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_1024" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, sequential, 2048 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_seq_2048" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 1 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 2 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 4 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 8 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_8" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 16 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_16" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 32 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_32" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 64 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_64" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 128 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_128" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 256 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_256" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 512 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_512" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 1024 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_1024" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file read time (remote, random, 2048 MB) (in ms):</td>
        <td><input type="text" name="fs_read_r_ran_2048" size="20" maxlength="40" value=""/></td>
      </tr>

      <!-- file contention -->
      <tr>
        <td>file contention (1 process) (in ms):</td>
        <td><input type="text" name="fs_contention_1" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (2 process) (in ms):</td>
        <td><input type="text" name="fs_contention_2" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (3 process) (in ms):</td>
        <td><input type="text" name="fs_contention_3" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (4 process) (in ms):</td>
        <td><input type="text" name="fs_contention_4" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (5 process) (in ms):</td>
        <td><input type="text" name="fs_contention_5" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (6 process) (in ms):</td>
        <td><input type="text" name="fs_contention_6" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (7 process) (in ms):</td>
        <td><input type="text" name="fs_contention_7" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (8 process) (in ms):</td>
        <td><input type="text" name="fs_contention_8" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (9 process) (in ms):</td>
        <td><input type="text" name="fs_contention_9" size="20" maxlength="40" value=""/></td>
      </tr>
      <tr>
        <td>file contention (10 process) (in ms):</td>
        <td><input type="text" name="fs_contention_10" size="20" maxlength="40" value=""/></td>
      </tr>

      </table>

      <!-- -->
      <br />
      <input type="submit" name="submit" value="submit" />

</form>

</body>

</html> 

<?php

}

?>

