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

Download this file

91 lines (85 with data), 2.5 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
#!/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 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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks