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

Download this file

all-events-doc.sh    111 lines (106 with data), 3.1 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
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
#!/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/*-events.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 22 ppc64-power5p
do_events 23 ppc64-970
# missing kernel support for most mips
#do_events 24
#do_events 25
#do_events 26
#do_events 27
#do_events 28
#do_events 29
#do_events 30
#do_events 31
do_events 32 mips-rm9000
# missing kernel support for most mips
#do_events 33
#do_events 34
#do_events 35
do_events 36 ppc-e500
do_events 37 ppc-e500v2
do_events 38 intel-core
do_events 39 ppc-7450
do_events 40 intel-core2
do_events 41 ppc64-power6
do_events 42 ppc64-970MP
do_events 43 ppc64-cellBE
do_events 44 amd-family10
do_events 45 ppc64-pa6t
do_events 46 arm-mpcore
do_events 47 arm-v6
do_events 48 ppc64-power5pp
do_events 49 ppc-e300
do_events 50 avr32
do_events 51 arm-v7
do_events 52 intel-perfmon
do_events 53 amd-family11h
do_events 54 ppc64-power7
do_events 55 ppc64-compatv1
do_events 56 intel-corei7
do_events 57 intel-atom
do_events 58 mips-loongson2
do_events 59 intel-nehalem
do_events 60 armv7-ca9
do_events 61 mips-74K
do_events 62 mips-1004K
do_events 63 amd-family12h
do_events 64 amd-family14h
do_events 65 amd-family15h
do_events 66 intel-westmere
do_events 67 armv7-scorpion
do_events 68 armv7-scorpionmp
do_events 69 intel-sandybridge
do_events 70 tile-tile64
do_events 71 tile-tilepro
do_events 72 tile-tilegx
do_events 73 ibm-s390-z10
do_events 74 ibm-s390-z196
do_events 75 intel-ivybridge
do_events 76 armv7-ca5
do_events 77 armv7-ca7
do_events 78 armv7-ca15