Guest User

FreeEMS pmccabe @ 111e77f214c + changes

a guest
Mar 27th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.35 KB | None | 0 0
  1. fred@cheetah:~/workspaces/eclipse/freeems-vanilla/src$ find . -name "*.h" -or -name "*.c" | xargs pmccabe -vtf
  2. Modified McCabe Cyclomatic Complexity
  3. | Traditional McCabe Cyclomatic Complexity
  4. | | # Statements in function
  5. | | | First line of function
  6. | | | | # lines in function
  7. | | | | | filename(definition line number):function
  8. | | | | | |
  9. 35 35 116 60 276 ./coreVarsGenerator.c(60): generateCoreVars
  10. 35 35 117 1 335 ./coreVarsGenerator.c
  11. 0 0 0 1 39 ./xgateGlobals.c
  12. 0 0 0 1 41 ./StaticBenchTest.c
  13. 23 23 83 48 220 ./outputScheduler.c(48): scheduleOutputs
  14. 23 23 84 1 267 ./outputScheduler.c
  15. 0 0 1 1 64 ./staticInit.c
  16. 0 0 0 1 45 ./decoders/MissingTeeth-Crank-30minus2.c
  17. 0 0 0 1 45 ./decoders/MissingTeeth-Cam-24minus1.c
  18. 0 0 0 1 104 ./decoders/HallOrOptical-Distributor-4of64.c
  19. 0 0 0 1 39 ./decoders/AUniqueName-Location-Pattern.c
  20. 1 1 1 59 3 ./decoders/code/MissingTeeth-Either-XminusY.c(59): decoderInitPreliminary
  21. 1 1 1 64 3 ./decoders/code/MissingTeeth-Either-XminusY.c(64): perDecoderReset
  22. 42 42 116 69 199 ./decoders/code/MissingTeeth-Either-XminusY.c(69): PrimaryRPMISR
  23. 44 44 124 1 270 ./decoders/code/MissingTeeth-Either-XminusY.c
  24. 1 1 1 70 3 ./decoders/code/HallOrOptical-Distributor-XofY.c(70): decoderInitPreliminary
  25. 1 1 0 73 1 ./decoders/code/HallOrOptical-Distributor-XofY.c(73): perDecoderReset
  26. 13 13 65 76 130 ./decoders/code/HallOrOptical-Distributor-XofY.c(76): PrimaryRPMISR
  27. 15 15 71 1 208 ./decoders/code/HallOrOptical-Distributor-XofY.c
  28. 1 1 0 49 1 ./decoders/code/VR-Distributor-X-Cylinders.c(49): decoderInitPreliminary
  29. 1 1 0 50 1 ./decoders/code/VR-Distributor-X-Cylinders.c(50): perDecoderReset
  30. 2 2 4 1 57 ./decoders/code/VR-Distributor-X-Cylinders.c
  31. 1 1 0 41 1 ./decoders/code/EvenTeeth-Both-Xand1.c(41): decoderInitPreliminary
  32. 1 1 0 42 1 ./decoders/code/EvenTeeth-Both-Xand1.c(42): perDecoderReset
  33. 13 13 47 45 97 ./decoders/code/EvenTeeth-Both-Xand1.c(45): PrimaryRPMISR
  34. 8 8 23 144 61 ./decoders/code/EvenTeeth-Both-Xand1.c(144): SecondaryRPMISR
  35. 23 23 74 1 204 ./decoders/code/EvenTeeth-Both-Xand1.c
  36. 0 0 1 1 68 ./decoders/code/NipponDenso-24and1and1.c
  37. 0 0 0 1 45 ./decoders/MissingTeeth-Crank-12minus1.c
  38. 1 1 0 54 1 ./decoders/Listener.c(54): decoderInitPreliminary
  39. 1 1 0 55 1 ./decoders/Listener.c(55): perDecoderReset
  40. 1 1 4 62 8 ./decoders/Listener.c(62): PrimaryRPMISR
  41. 1 1 4 73 8 ./decoders/Listener.c(73): SecondaryRPMISR
  42. 4 4 14 1 80 ./decoders/Listener.c
  43. 1 1 3 58 13 ./decoders/BenchTest.c(58): decoderInitPreliminary
  44. 1 1 0 73 1 ./decoders/BenchTest.c(73): perDecoderReset
  45. 22 22 68 87 131 ./decoders/BenchTest.c(87): PrimaryRPMISR
  46. 24 24 76 1 220 ./decoders/BenchTest.c
  47. 1 1 3 89 12 ./decoders/GM-LT1-CAS-360and8.c(89): decoderInitPreliminary
  48. 1 1 2 103 4 ./decoders/GM-LT1-CAS-360and8.c(103): perDecoderReset
  49. 21 21 67 115 152 ./decoders/GM-LT1-CAS-360and8.c(115): PrimaryRPMISR
  50. 23 23 85 1 269 ./decoders/GM-LT1-CAS-360and8.c
  51. 0 0 0 1 45 ./decoders/MissingTeeth-Crank-8minus1.c
  52. 0 0 0 1 45 ./decoders/MissingTeeth-Cam-6minus2.c
  53. 0 0 0 1 45 ./decoders/MissingTeeth-Crank-36minus1.c
  54. 0 0 0 1 45 ./decoders/MissingTeeth-Crank-60minus2.c
  55. 0 0 0 1 46 ./decoders/MissingTeeth-TestFile.c
  56. 0 0 2 1 58 ./decoders/EvenTeeth-Both-12and1.c
  57. 1 1 0 31 1 ./decoders/MitsiAndMazda-CAS-4and1.c(31): decoderInitPreliminary
  58. 1 1 1 32 3 ./decoders/MitsiAndMazda-CAS-4and1.c(32): perDecoderReset
  59. 22 22 72 363 132 ./decoders/MitsiAndMazda-CAS-4and1.c(363): PrimaryRPMISR
  60. 14 14 59 497 112 ./decoders/MitsiAndMazda-CAS-4and1.c(497): SecondaryRPMISR
  61. 38 38 136 1 608 ./decoders/MitsiAndMazda-CAS-4and1.c
  62. 1 1 4 38 6 ./decoders/inc/defaultPrimaryRPMISR.c(38): PrimaryRPMISR
  63. 1 1 5 1 43 ./decoders/inc/defaultPrimaryRPMISR.c
  64. 0 0 5 1 78 ./decoders/inc/MitsiAndMazda-CAS-4and1.h
  65. 1 1 4 38 6 ./decoders/inc/defaultSecondaryRPMISR.c(38): SecondaryRPMISR
  66. 1 1 5 1 43 ./decoders/inc/defaultSecondaryRPMISR.c
  67. 0 0 5 1 94 ./decoders/inc/BenchTest.h
  68. 0 0 4 1 664 ./decoders/inc/MissingTeeth.h
  69. 0 0 0 1 68 ./decoders/inc/GM-LT1-CAS-360and8.h
  70. 0 0 2 1 58 ./decoders/EvenTeeth-Both-8and1.c
  71. 0 0 0 1 50 ./decoders/HallOrOptical-Distributor-4of69.c
  72. 0 0 0 1 64 ./doxy/tuneSwitching.h
  73. 0 0 0 1 52 ./doxy/changeLogs.h
  74. 0 0 0 1 47 ./doxy/strategies.h
  75. 0 0 0 1 53 ./doxy/unlisted.h
  76. 0 0 0 1 143 ./doxy/codingStyle.h
  77. 0 0 0 1 85 ./doxy/contributors.h
  78. 0 0 0 1 98 ./doxy/glossary.h
  79. 0 0 0 1 134 ./doxy/groups.h
  80. 0 0 0 1 48 ./doxy/releaseNotes.h
  81. 0 0 0 1 148 ./doxy/directories.h
  82. 0 0 0 1 78 ./doxy/mainPage.h
  83. 1 1 3 53 5 ./miscISRs.c(53): UISR
  84. 1 1 4 66 7 ./miscISRs.c(66): PortPISR
  85. 1 1 4 81 7 ./miscISRs.c(81): PortJISR
  86. 2 2 7 96 85 ./miscISRs.c(96): PortHISR
  87. 1 1 3 189 7 ./miscISRs.c(189): IRQISR
  88. 1 1 3 204 7 ./miscISRs.c(204): XIRQISR
  89. 1 1 4 219 7 ./miscISRs.c(219): LowVoltageISR
  90. 8 8 35 1 225 ./miscISRs.c
  91. 0 0 0 1 47 ./freeEMS.c
  92. 1 1 13 70 27 ./commsCore.c(70): populateBasicDatalog
  93. 10 10 22 156 58 ./commsCore.c(156): finaliseAndSend
  94. 145 172 551 224 1163 ./commsCore.c(224): decodePacketAndRespond
  95. 2 2 4 1403 8 ./commsCore.c(1403): sendErrorIfClear
  96. 1 1 6 1453 34 ./commsCore.c(1453): sendErrorInternal
  97. 2 2 4 1499 8 ./commsCore.c(1499): sendDebugIfClear
  98. 1 1 11 1544 49 ./commsCore.c(1544): sendDebugInternal
  99. 162 189 618 1 1654 ./commsCore.c
  100. 1 1 10 3 31 ./default/datalogPopulator.c(3): populateCustomDatalog
  101. 1 1 11 1 33 ./default/datalogPopulator.c
  102. 1 1 12 65 17 ./init.c(65): init
  103. 2 2 7 100 19 ./init.c(100): initPLL
  104. 1 1 52 122 97 ./init.c(122): initIO
  105. 1 1 4 229 6 ./init.c(229): initLookupAddresses
  106. 1 1 8 245 11 ./init.c(245): initFuelAddresses
  107. 1 1 10 264 13 ./init.c(264): initPagedRAMFuel
  108. 1 1 8 287 11 ./init.c(287): initTimingAddresses
  109. 1 1 10 306 13 ./init.c(306): initPagedRAMTime
  110. 1 1 34 330 49 ./init.c(330): initTunableAddresses
  111. 1 1 6 384 21 ./init.c(384): initPagedRAMTune
  112. 1 1 4 420 8 ./init.c(420): initAllPagedAddresses
  113. 1 1 5 442 12 ./init.c(442): initAllPagedRAM
  114. 1 1 43 458 54 ./init.c(458): initVariables
  115. 1 1 3 540 5 ./init.c(540): initFlash
  116. 1 1 12 548 55 ./init.c(548): initECTTimer
  117. 1 1 0 606 20 ./init.c(606): initPITTimer
  118. 1 1 3 628 42 ./init.c(628): initSCIStuff
  119. 3 3 8 672 48 ./init.c(672): initConfiguration
  120. 1 1 8 723 30 ./init.c(723): initInterrupts
  121. 22 22 256 1 752 ./init.c
  122. 0 0 0 1 45 ./decodePacketAndRespond.c
  123. 0 0 0 1 70 ./data/tables/lambda/originalCurve.h
  124. 0 0 0 1 70 ./data/tables/lambda/flatStoichiometric.h
  125. 0 0 0 1 103 ./data/tables/lambda/SeansLT1Lambda.h
  126. 0 0 0 1 96 ./data/tables/lambda/FredsTruckLambda.h
  127. 0 0 0 1 48 ./data/tables/axis/SimsVolvo-RPM.h
  128. 0 0 0 1 46 ./data/tables/axis/mainTable-RPM.h
  129. 0 0 0 1 45 ./data/tables/axis/mainTable-Load.h
  130. 0 0 0 1 48 ./data/tables/axis/HotelHyundai-RPM.h
  131. 0 0 0 1 48 ./data/tables/axis/FredsTruck-RPM.h
  132. 0 0 0 1 47 ./data/tables/axis/HotelHyundai-Load.h
  133. 0 0 0 1 48 ./data/tables/axis/SeansLT1-RPM.h
  134. 0 0 0 1 49 ./data/tables/axis/FredsTruck-Load.h
  135. 0 0 0 1 49 ./data/tables/axis/SimsVolvo-Load.h
  136. 0 0 462 1 71 ./data/tables/ign/flat10degrees.h
  137. 0 0 462 1 72 ./data/tables/ign/flat0degrees.h
  138. 0 0 462 1 71 ./data/tables/ign/flat15degrees.h
  139. 0 0 462 1 110 ./data/tables/ign/SimsVolvoIgnitionTiming.h
  140. 0 0 462 1 103 ./data/tables/ign/SeansLT1IgnitionTiming.h
  141. 0 0 462 1 105 ./data/tables/ign/HotelHyundaiIgnitionTiming.h
  142. 0 0 462 1 108 ./data/tables/ign/FredsTruckIgnitionTiming.h
  143. 0 0 0 1 69 ./data/tables/ve/flat80Percent.h
  144. 0 0 0 1 97 ./data/tables/ve/SeansLT1VE.h
  145. 0 0 0 1 69 ./data/tables/ve/flat20Percent.h
  146. 0 0 0 1 69 ./data/tables/ve/flat60Percent.h
  147. 0 0 0 1 69 ./data/tables/ve/flat40Percent.h
  148. 0 0 0 1 97 ./data/tables/ve/FredsTruckVE.h
  149. 0 0 0 1 69 ./data/tables/ve/flat100Percent.h
  150. 0 0 0 1 69 ./data/tables/ve/flat30Percent.h
  151. 0 0 0 1 69 ./data/tables/ve/flat50Percent.h
  152. 0 0 0 1 115 ./data/thermistors/Denso-2k6Bias.h
  153. 0 0 0 1 115 ./data/thermistors/Denso-2k7Bias.h
  154. 0 0 0 1 115 ./data/thermistors/Denso-2k4Bias.h
  155. 0 0 0 1 105 ./data/thermistors/Bosch.h
  156. 0 0 0 1 115 ./data/thermistors/Denso-2k0Bias.h
  157. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k6Bias.h
  158. 0 0 0 1 115 ./data/thermistors/GM-2k0Bias.h
  159. 0 0 0 1 115 ./data/thermistors/GM-2k2Bias.h
  160. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k7Bias.h
  161. 0 0 0 1 115 ./data/thermistors/GM-2k7Bias.h
  162. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k4Bias.h
  163. 0 0 0 1 115 ./data/thermistors/GM-2k49Bias.h
  164. 0 0 0 1 115 ./data/thermistors/GM-2k6Bias.h
  165. 0 0 0 1 115 ./data/thermistors/Denso-2k49Bias.h
  166. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k49Bias.h
  167. 0 0 0 1 115 ./data/thermistors/GM-2k4Bias.h
  168. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k2Bias.h
  169. 0 0 0 1 115 ./data/thermistors/Denso-2k2Bias.h
  170. 0 0 0 1 115 ./data/thermistors/BoschM12H-2k0Bias.h
  171. 11 11 33 54 101 ./realtimeISRs.c(54): RTIISR
  172. 1 1 4 168 8 ./realtimeISRs.c(168): TimerOverflow
  173. 12 12 39 1 188 ./realtimeISRs.c
  174. 10 10 57 116 80 ./tableLookup.c(116): lookupMainTable
  175. 5 5 22 209 31 ./tableLookup.c(209): lookupTwoDTableUS
  176. 8 8 19 253 29 ./tableLookup.c(253): validateMainTable
  177. 3 3 7 295 10 ./tableLookup.c(295): validateTwoDTable
  178. 26 26 109 1 304 ./tableLookup.c
  179. 0 0 1 1 131 ./interrupts.c
  180. 0 0 1 1 173 ./xgateVectors.c
  181. 10 77 404 65 524 ./blockDetailsLookup.c(65): lookupBlockDetails
  182. 10 77 405 1 588 ./blockDetailsLookup.c
  183. 2 2 3 55 7 ./utils.c(55): safeAdd
  184. 5 5 9 73 18 ./utils.c(73): safeTrim
  185. 3 3 4 104 12 ./utils.c(104): safeScale
  186. 2 2 8 128 13 ./utils.c(128): setupPagedRAM
  187. 1 1 8 149 10 ./utils.c(149): adjustPWM
  188. 1 1 16 169 21 ./utils.c(169): sampleEachADC
  189. 2 2 7 200 18 ./utils.c(200): sampleLoopADC
  190. 3 3 7 245 7 ./utils.c(245): sleep
  191. 3 3 7 264 7 ./utils.c(264): sleepMicro
  192. 2 2 4 284 7 ./utils.c(284): checksum
  193. 2 2 6 304 8 ./utils.c(304): stringCopy
  194. 3 3 7 318 9 ./utils.c(318): compare
  195. 29 29 98 1 326 ./utils.c
  196. 0 0 16 1 129 ./globalConstants.c
  197. 0 0 0 1 38 ./xgateScheduler.c
  198. 16 26 96 61 231 ./main.c(61): main
  199. 16 26 97 1 291 ./main.c
  200. 3 3 11 52 27 ./decoderInterface.c(52): resetToNonRunningState
  201. 7 7 28 86 75 ./decoderInterface.c(86): schedulePortTPin
  202. 10 10 41 1 160 ./decoderInterface.c
  203. 0 0 0 1 38 ./xgateTests.c
  204. 1 1 1 52 5 ./injectionISRs.c(52): StagedOnISR
  205. 1 1 1 59 5 ./injectionISRs.c(59): StagedOffISR
  206. 2 2 4 1 108 ./injectionISRs.c
  207. 0 0 0 1 40 ./inc/xgateGlobals.h
  208. 0 0 1 1 62 ./inc/outputScheduler.h
  209. 0 0 0 1 304 ./inc/syncLossIDs.h
  210. 0 0 1 1 77 ./inc/tableLookup.h
  211. 0 0 9 1 88 ./inc/xgateVectors.h
  212. 0 0 54 1 149 ./inc/pagedLocationBuffers.h
  213. 0 0 1 1 89 ./inc/generalTypes.h
  214. 0 0 0 1 191 ./inc/scalerDefines.h
  215. 0 0 0 1 49 ./inc/unitTestIDs.h
  216. 0 0 1 1 62 ./inc/derivedVarsGenerator.h
  217. 0 0 53 1 170 ./inc/globalConstants.h
  218. 0 0 1 1 65 ./inc/main.h
  219. 0 0 5 1 156 ./inc/TunableConfigs.h
  220. 0 0 0 1 114 ./inc/packetTypes.h
  221. 0 0 0 1 170 ./inc/locationIDs.h
  222. 0 0 1 1 201 ./inc/commsCore.h
  223. 9 9 45 69 95 ./inc/injectorISR.c(69): InjectorXISR
  224. 9 9 46 1 163 ./inc/injectorISR.c
  225. 0 0 0 1 154 ./inc/errorDefines.h
  226. 0 0 0 1 156 ./inc/globalDefines.h
  227. 0 0 1 1 115 ./inc/init.h
  228. 0 0 34 1 341 ./inc/freeEMS.h
  229. 0 0 1 1 51 ./inc/flashBurn.h
  230. 0 0 1 1 109 ./inc/typeChecks.h
  231. 0 0 1 1 61 ./inc/blockDetailsLookup.h
  232. 0 0 0 1 62 ./inc/decodePacketAndRespond.h
  233. 0 0 13 1 242 ./inc/FixedConfigs.h
  234. 0 0 6 1 204 ./inc/containerTypes.h
  235. 0 0 2 1 127 ./inc/interrupts.h
  236. 0 0 0 1 209 ./inc/memory.h
  237. 0 0 1 1 74 ./inc/flashWrite.h
  238. 0 0 51 1 487 ./inc/decoderInterface.h
  239. 0 0 2 1 88 ./inc/tableTypes.h
  240. 0 0 1 1 87 ./inc/commsISRs.h
  241. 0 0 1 1 100 ./inc/fuelAndIgnitionCalcs.h
  242. 0 0 0 1 45 ./inc/flashGlobals.h
  243. 0 0 3 1 153 ./inc/counterTypes.h
  244. 0 0 1 1 62 ./inc/coreVarsGenerator.h
  245. 0 0 4 1 77 ./inc/utils.h
  246. 0 0 0 1 1016 ./inc/9S12XDP512.h
  247. 2 2 10 65 17 ./flashWrite.c(65): eraseSector
  248. 9 9 45 110 79 ./flashWrite.c(110): writeBlock
  249. 5 5 21 209 41 ./flashWrite.c(209): writeSector
  250. 2 2 7 269 13 ./flashWrite.c(269): writeWord
  251. 18 18 87 1 281 ./flashWrite.c
  252. 0 0 0 1 47 ./initialisers/FuelTables2.c
  253. 0 0 4 1 219 ./initialisers/TunableConfig.c
  254. 0 0 1 1 232 ./initialisers/FixedConfig1.c
  255. 0 0 1 1 68 ./initialisers/CHTTransferTable.c
  256. 0 0 4 1 160 ./initialisers/TimingTables.c
  257. 0 0 4 1 194 ./initialisers/FuelTables.c
  258. 0 0 0 1 47 ./initialisers/TimingTables2.c
  259. 0 0 1 1 172 ./initialisers/TestTransferTable.c
  260. 0 0 1 1 68 ./initialisers/IATTransferTable.c
  261. 0 0 1 1 138 ./initialisers/FixedConfig2.c
  262. 0 0 1 1 115 ./initialisers/MAFTransferTable.c
  263. 0 0 0 1 54 ./initialisers/TunableConfig2.c
  264. 0 0 0 1 37 ./xgateInit.c
  265. 21 21 49 57 133 ./fuelAndIgnitionCalcs.c(57): calculateFuelAndIgnition
  266. 21 21 50 1 189 ./fuelAndIgnitionCalcs.c
  267. 3 3 10 68 33 ./commsISRs.c(68): resetReceiveState
  268. 27 27 73 115 138 ./commsISRs.c(115): SCI0ISR
  269. 30 30 85 1 252 ./commsISRs.c
  270. 10 10 29 56 85 ./derivedVarsGenerator.c(56): generateDerivedVars
  271. 10 10 30 1 140 ./derivedVarsGenerator.c
  272. 619 723 6346 n/a 23412 Total
Add Comment
Please, Sign In to add comment