Simplify the initialization logic for cpu_throttle.stp

Rather than ensuring there is an instance for each of the cpus on the
machine just make sure there is an instance for cpu0 to avoid having
an empty array. As processors are throttled the other instances will
be added.
1 file changed
tree: e523fb1fc462b9c918bd90d727438701c2dd4024
  1. doc/
  2. emacs/
  3. httpd/
  4. includes/
  5. initscript/
  6. java/
  7. m4/
  8. man/
  9. po/
  10. python/
  11. runtime/
  12. scripts/
  13. stap-exporter/
  14. stapbpf/
  15. stapdyn/
  16. staprun/
  17. tapset/
  18. testsuite/
  19. vim/
  20. .gitignore
  21. .mailmap
  22. ABOUT-NLS
  23. aclocal.m4
  24. AUTHORS
  25. AUTHORS.sh
  26. bpf-base.cxx
  27. bpf-bitset.cxx
  28. bpf-bitset.h
  29. bpf-internal.h
  30. bpf-opt.cxx
  31. bpf-translate.cxx
  32. bpf.h
  33. buildrun.cxx
  34. buildrun.h
  35. cache.cxx
  36. cache.h
  37. client-http.cxx
  38. client-http.h
  39. client-nss.cxx
  40. client-nss.h
  41. cmdline.cxx
  42. cmdline.h
  43. compile
  44. config.guess
  45. config.in
  46. config.rpath
  47. config.sub
  48. configure
  49. configure.ac
  50. COPYING
  51. coveragedb.cxx
  52. coveragedb.h
  53. csclient.cxx
  54. csclient.h
  55. cscommon.cxx
  56. cscommon.h
  57. depcomp
  58. dtrace.in
  59. dwarf_wrappers.cxx
  60. dwarf_wrappers.h
  61. dwflpp.cxx
  62. dwflpp.h
  63. elaborate.cxx
  64. elaborate.h
  65. git_version.sh
  66. HACKING
  67. hash.cxx
  68. hash.h
  69. INSTALL
  70. install-sh
  71. interactive.cxx
  72. interactive.h
  73. INTERNALS
  74. loc2stap.cxx
  75. loc2stap.h
  76. macros.systemtap.in
  77. main.cxx
  78. Makefile.am
  79. Makefile.in
  80. mdfour.c
  81. mdfour.h
  82. missing
  83. NEWS
  84. nss-server-info.cxx
  85. nss-server-info.h
  86. nsscommon.cxx
  87. nsscommon.h
  88. parse.cxx
  89. parse.h
  90. privilege.cxx
  91. privilege.h
  92. py-compile
  93. README
  94. README.security
  95. README.stapregex
  96. README.unprivileged
  97. remote.cxx
  98. remote.h
  99. rpm_finder.cxx
  100. rpm_finder.h
  101. run-stap.in
  102. runtest.sh
  103. sdt_types.h
  104. session.cxx
  105. session.h
  106. setupdwfl.cxx
  107. setupdwfl.h
  108. smileytap.svg
  109. stap-authorize-cert.cxx
  110. stap-env
  111. stap-gen-cert.cxx
  112. stap-prep
  113. stap-report
  114. stap-server
  115. stap-server.conf
  116. stap-server.service
  117. stap-serverd.cxx
  118. stap-sign-module.cxx
  119. stap-start-server
  120. stap-stop-server
  121. staplog.c
  122. stapregex-defines.h
  123. stapregex-dfa.cxx
  124. stapregex-dfa.h
  125. stapregex-parse.cxx
  126. stapregex-parse.h
  127. stapregex-tree.cxx
  128. stapregex-tree.h
  129. stapregex.cxx
  130. stapregex.h
  131. stapsslerr.h
  132. staptree.cxx
  133. staptree.h
  134. stapvirt.c
  135. stringtable.cxx
  136. stringtable.h
  137. systemtap.spec
  138. tapset-been.cxx
  139. tapset-dynprobe.cxx
  140. tapset-dynprobe.h
  141. tapset-itrace.cxx
  142. tapset-mark.cxx
  143. tapset-method.cxx
  144. tapset-netfilter.cxx
  145. tapset-perfmon.cxx
  146. tapset-procfs.cxx
  147. tapset-python.cxx
  148. tapset-timers.cxx
  149. tapset-utrace.cxx
  150. tapsets.cxx
  151. tapsets.h
  152. task_finder.cxx
  153. task_finder.h
  154. translate.cxx
  155. translate.h
  156. translator-output.cxx
  157. translator-output.h
  158. util.cxx
  159. util.h
  160. version.h
  161. zanata.xml