您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

arm-none-eabi-gcov-tool.1 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is turned on, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{
  60. . if \nF \{
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "GCOV-TOOL 1"
  136. .TH GCOV-TOOL 1 "2020-11-03" "gcc-10.2.1" "GNU"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. gcov\-tool \- offline gcda profile processing tool
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. gcov-tool [\fB\-v\fR|\fB\-\-version\fR] [\fB\-h\fR|\fB\-\-help\fR]
  146. .PP
  147. gcov-tool merge [merge\-options] \fIdirectory1\fR \fIdirectory2\fR
  148. [\fB\-o\fR|\fB\-\-output\fR \fIdirectory\fR]
  149. [\fB\-v\fR|\fB\-\-verbose\fR]
  150. [\fB\-w\fR|\fB\-\-weight\fR \fIw1,w2\fR]
  151. .PP
  152. gcov-tool rewrite [rewrite\-options] \fIdirectory\fR
  153. [\fB\-n\fR|\fB\-\-normalize\fR \fIlong_long_value\fR]
  154. [\fB\-o\fR|\fB\-\-output\fR \fIdirectory\fR]
  155. [\fB\-s\fR|\fB\-\-scale\fR \fIfloat_or_simple\-frac_value\fR]
  156. [\fB\-v\fR|\fB\-\-verbose\fR]
  157. .PP
  158. gcov-tool overlap [overlap\-options] \fIdirectory1\fR \fIdirectory2\fR
  159. [\fB\-f\fR|\fB\-\-function\fR]
  160. [\fB\-F\fR|\fB\-\-fullname\fR]
  161. [\fB\-h\fR|\fB\-\-hotonly\fR]
  162. [\fB\-o\fR|\fB\-\-object\fR]
  163. [\fB\-t\fR|\fB\-\-hot_threshold\fR] \fIfloat\fR
  164. [\fB\-v\fR|\fB\-\-verbose\fR]
  165. .SH "DESCRIPTION"
  166. .IX Header "DESCRIPTION"
  167. \&\fBgcov-tool\fR is an offline tool to process gcc's gcda profile files.
  168. .PP
  169. Current gcov-tool supports the following functionalities:
  170. .IP "*" 4
  171. merge two sets of profiles with weights.
  172. .IP "*" 4
  173. read one set of profile and rewrite profile contents. One can scale or
  174. normalize the count values.
  175. .PP
  176. Examples of the use cases for this tool are:
  177. .IP "*" 4
  178. Collect the profiles for different set of inputs, and use this tool to merge
  179. them. One can specify the weight to factor in the relative importance of
  180. each input.
  181. .IP "*" 4
  182. Rewrite the profile after removing a subset of the gcda files, while maintaining
  183. the consistency of the summary and the histogram.
  184. .IP "*" 4
  185. It can also be used to debug or libgcov code as the tools shares the majority
  186. code as the runtime library.
  187. .PP
  188. Note that for the merging operation, this profile generated offline may
  189. contain slight different values from the online merged profile. Here are
  190. a list of typical differences:
  191. .IP "*" 4
  192. histogram difference: This offline tool recomputes the histogram after merging
  193. the counters. The resulting histogram, therefore, is precise. The online
  194. merging does not have this capability \*(-- the histogram is merged from two
  195. histograms and the result is an approximation.
  196. .IP "*" 4
  197. summary checksum difference: Summary checksum uses a \s-1CRC32\s0 operation. The value
  198. depends on the link list order of gcov-info objects. This order is different in
  199. gcov-tool from that in the online merge. It's expected to have different
  200. summary checksums. It does not really matter as the compiler does not use this
  201. checksum anywhere.
  202. .IP "*" 4
  203. value profile counter values difference: Some counter values for value profile
  204. are runtime dependent, like heap addresses. It's normal to see some difference
  205. in these kind of counters.
  206. .SH "OPTIONS"
  207. .IX Header "OPTIONS"
  208. .IP "\fB\-h\fR" 4
  209. .IX Item "-h"
  210. .PD 0
  211. .IP "\fB\-\-help\fR" 4
  212. .IX Item "--help"
  213. .PD
  214. Display help about using \fBgcov-tool\fR (on the standard output), and
  215. exit without doing any further processing.
  216. .IP "\fB\-v\fR" 4
  217. .IX Item "-v"
  218. .PD 0
  219. .IP "\fB\-\-version\fR" 4
  220. .IX Item "--version"
  221. .PD
  222. Display the \fBgcov-tool\fR version number (on the standard output),
  223. and exit without doing any further processing.
  224. .IP "\fBmerge\fR" 4
  225. .IX Item "merge"
  226. Merge two profile directories.
  227. .RS 4
  228. .IP "\fB\-o\fR \fIdirectory\fR" 4
  229. .IX Item "-o directory"
  230. .PD 0
  231. .IP "\fB\-\-output\fR \fIdirectory\fR" 4
  232. .IX Item "--output directory"
  233. .PD
  234. Set the output profile directory. Default output directory name is
  235. \&\fImerged_profile\fR.
  236. .IP "\fB\-v\fR" 4
  237. .IX Item "-v"
  238. .PD 0
  239. .IP "\fB\-\-verbose\fR" 4
  240. .IX Item "--verbose"
  241. .PD
  242. Set the verbose mode.
  243. .IP "\fB\-w\fR \fIw1\fR\fB,\fR\fIw2\fR" 4
  244. .IX Item "-w w1,w2"
  245. .PD 0
  246. .IP "\fB\-\-weight\fR \fIw1\fR\fB,\fR\fIw2\fR" 4
  247. .IX Item "--weight w1,w2"
  248. .PD
  249. Set the merge weights of the \fIdirectory1\fR and \fIdirectory2\fR,
  250. respectively. The default weights are 1 for both.
  251. .RE
  252. .RS 4
  253. .RE
  254. .IP "\fBrewrite\fR" 4
  255. .IX Item "rewrite"
  256. Read the specified profile directory and rewrite to a new directory.
  257. .RS 4
  258. .IP "\fB\-n\fR \fIlong_long_value\fR" 4
  259. .IX Item "-n long_long_value"
  260. .PD 0
  261. .IP "\fB\-\-normalize <long_long_value>\fR" 4
  262. .IX Item "--normalize <long_long_value>"
  263. .PD
  264. Normalize the profile. The specified value is the max counter value
  265. in the new profile.
  266. .IP "\fB\-o\fR \fIdirectory\fR" 4
  267. .IX Item "-o directory"
  268. .PD 0
  269. .IP "\fB\-\-output\fR \fIdirectory\fR" 4
  270. .IX Item "--output directory"
  271. .PD
  272. Set the output profile directory. Default output name is \fIrewrite_profile\fR.
  273. .IP "\fB\-s\fR \fIfloat_or_simple\-frac_value\fR" 4
  274. .IX Item "-s float_or_simple-frac_value"
  275. .PD 0
  276. .IP "\fB\-\-scale\fR \fIfloat_or_simple\-frac_value\fR" 4
  277. .IX Item "--scale float_or_simple-frac_value"
  278. .PD
  279. Scale the profile counters. The specified value can be in floating point value,
  280. or simple fraction value form, such 1, 2, 2/3, and 5/3.
  281. .IP "\fB\-v\fR" 4
  282. .IX Item "-v"
  283. .PD 0
  284. .IP "\fB\-\-verbose\fR" 4
  285. .IX Item "--verbose"
  286. .PD
  287. Set the verbose mode.
  288. .RE
  289. .RS 4
  290. .RE
  291. .IP "\fBoverlap\fR" 4
  292. .IX Item "overlap"
  293. Compute the overlap score between the two specified profile directories.
  294. The overlap score is computed based on the arc profiles. It is defined as
  295. the sum of min (p1_counter[i] / p1_sum_all, p2_counter[i] / p2_sum_all),
  296. for all arc counter i, where p1_counter[i] and p2_counter[i] are two
  297. matched counters and p1_sum_all and p2_sum_all are the sum of counter
  298. values in profile 1 and profile 2, respectively.
  299. .RS 4
  300. .IP "\fB\-f\fR" 4
  301. .IX Item "-f"
  302. .PD 0
  303. .IP "\fB\-\-function\fR" 4
  304. .IX Item "--function"
  305. .PD
  306. Print function level overlap score.
  307. .IP "\fB\-F\fR" 4
  308. .IX Item "-F"
  309. .PD 0
  310. .IP "\fB\-\-fullname\fR" 4
  311. .IX Item "--fullname"
  312. .PD
  313. Print full gcda filename.
  314. .IP "\fB\-h\fR" 4
  315. .IX Item "-h"
  316. .PD 0
  317. .IP "\fB\-\-hotonly\fR" 4
  318. .IX Item "--hotonly"
  319. .PD
  320. Only print info for hot objects/functions.
  321. .IP "\fB\-o\fR" 4
  322. .IX Item "-o"
  323. .PD 0
  324. .IP "\fB\-\-object\fR" 4
  325. .IX Item "--object"
  326. .PD
  327. Print object level overlap score.
  328. .IP "\fB\-t\fR \fIfloat\fR" 4
  329. .IX Item "-t float"
  330. .PD 0
  331. .IP "\fB\-\-hot_threshold <float>\fR" 4
  332. .IX Item "--hot_threshold <float>"
  333. .PD
  334. Set the threshold for hot counter value.
  335. .IP "\fB\-v\fR" 4
  336. .IX Item "-v"
  337. .PD 0
  338. .IP "\fB\-\-verbose\fR" 4
  339. .IX Item "--verbose"
  340. .PD
  341. Set the verbose mode.
  342. .RE
  343. .RS 4
  344. .RE
  345. .SH "SEE ALSO"
  346. .IX Header "SEE ALSO"
  347. \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7), \fIgcc\fR\|(1), \fIgcov\fR\|(1) and the Info entry for
  348. \&\fIgcc\fR.
  349. .SH "COPYRIGHT"
  350. .IX Header "COPYRIGHT"
  351. Copyright (c) 2014\-2020 Free Software Foundation, Inc.
  352. .PP
  353. Permission is granted to copy, distribute and/or modify this document
  354. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  355. any later version published by the Free Software Foundation; with the
  356. Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
  357. Free Software\*(R", the Front-Cover texts being (a) (see below), and with
  358. the Back-Cover Texts being (b) (see below). A copy of the license is
  359. included in the \fIgfdl\fR\|(7) man page.
  360. .PP
  361. (a) The \s-1FSF\s0's Front-Cover Text is:
  362. .PP
  363. .Vb 1
  364. \& A GNU Manual
  365. .Ve
  366. .PP
  367. (b) The \s-1FSF\s0's Back-Cover Text is:
  368. .PP
  369. .Vb 3
  370. \& You have freedom to copy and modify this GNU Manual, like GNU
  371. \& software. Copies published by the Free Software Foundation raise
  372. \& funds for GNU development.
  373. .Ve