aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbed/templates/testbed.html
blob: 677389a71ee1eb9274faed565bc6a5985e1d61a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html>
<head>
        <title>{{.Name }} syzkaller</title>
        {{template "syz-head"}}
        <style>
        .positive-delta {
                color:darkgreen;
        }
        .negative-delta {
                color:darkred;
        }
        </style>
</head>
<body>
  <header id="topbar">
    <table class="position_table">
      <tbody>
        <tr>
          <td>
            <h1>
              <a href="/">syz-testbed "{{.Name }}"</a></h1>
          </td>
        </tr>
      </tbody>
    </table>
    <table class="position_table">
      <tbody>
        <td class="navigation">
Views:
{{with $main := .}}
{{range $view := .Views}}
<a
{{if eq $view.Name $main.ActiveView.Name}}
class="navigation_tab_selected"
{{else}}
class="navigation_tab"
{{end}}
href="?view={{$view.Name}}">{{$view.Name}}</a>
&nbsp;
{{end}}
{{end}}
        </td>
      </tbody>
    </table>
  </header>

  {{template "table.html" .Summary}}
  {{$activeView := $.ActiveView}}
  <h2>Stat view "{{$activeView.Name}}"</h2>
  <b>Tables:
    {{range $typeKey, $type := $activeView.TableTypes}}
    {{if eq $typeKey $activeView.ActiveTableType}}
    {{$type.Title}}
    {{else}}
    <a href="{{call $activeView.GenTableURL $type}}">{{$type.Title}}</a>
    {{end}}
    &nbsp;
    {{end}}
  </b> <br />
  <a href="/graph?view={{$.ActiveView.Name}}&over=fuzzing">Graph over time</a> /
  <a href="/graph?view={{$.ActiveView.Name}}&over=exec+total">Graph over executions</a> <br />
  {{template "table.html" $.ActiveView.ActiveTable}}
</body>
</html>