[e9a646]: all-events-doc.sh Maximize Restore History

Download this file

all-events-doc.sh    64 lines (59 with data), 1.9 kB

 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
#!/bin/sh
# a script to help updating docs/*
do_events()
{
## # Regenerate always events file but do not change modification time
## # for minor change (blank spacing etc.) because php files use mtime
## # to show documentation's last modification time.
## cp -a docs/$2-events docs/$2-events.old
## ophelp --cpu-type $1 | events.pl > docs/$2-events
## if diff --ignore-space-change --ignore-blank-lines --ignore-case --brief docs/$2-events.old docs/$2-events; then
## touch -m --reference docs/$2-events.old docs/$2-events
## echo "events unchanged: docs/$2"
## else
## echo "events changed: docs/$2"
## fi
## rm $2-events.old
# FIXME: the intent was to keep last modification time as explained above
# but it seems complicate for little value and I suspect cvs can be in the
# way anyway and will not honour the modification time in the local tree,
# so use the simple way now but I'll ned to check how cvs deal with mtime
# modification.
ophelp --cpu-type $1 | events.pl > docs/$2-events
}
# the used name must match docs/*.php events description file
do_events 0 intel-ppro
do_events 1 intel-pii
do_events 2 intel-piii
do_events 3 amd-athlon
# 4 is timer intr
# 5 is RTC interrupt
do_events 6 intel-P4
do_events 7 intel-ia64
do_events 8 intel-ia64-itanium
do_events 9 intel-ia64-itanium2
do_events 10 amd-hammer
do_events 11 intel-P4-ht2
do_events 12 alpha-ev4
do_events 13 alpha-ev5
# PCA56 port does not work
#do_events 14
do_events 15 alpha-ev6
do_events 16 alpha-ev67
do_events 17 intel-p6-mobile
do_events 18 arm-xscale-pmu1
do_events 19 arm-xscale-pmu2
do_events 20 ppc64-power4
do_events 21 ppc64-power5
do_events 23 ppc64-970
# missing kernel support for most mips
#do_events 23
#do_events 24
#do_events 25
#do_events 26
do_events 32 mips-rm9000
# missing kernel support for most mips
#do_events 28
#do_events 29
#do_events 30
do_events 36 ppc-e500