src: Include <libxml/parser.h>
[virt-top.git] / ChangeLog
1 2019-08-20  Richard W.M. Jones  <rjones@redhat.com>
2
3         Version 1.0.9.
4
5         src/top.ml: Don't depend on exact value of Failure argument.
6         File "top.ml", line 423, characters 14-31:
7         423 |       Failure "float_of_string" ->
8                             ^^^^^^^^^^^^^^^^^
9         Warning 52: Code should not depend on the actual values of
10         this constructor's arguments. They are only for information
11         and may change in future versions. (See manual section 9.5)
12
13 2018-09-20  Richard W.M. Jones  <rjones@redhat.com>
14
15         build: Pass through CFLAGS and LDFLAGS to ocaml compiler (RHBZ#1630636).
16
17 2017-11-18  Richard W.M. Jones  <rjones@redhat.com>
18
19         Link with -fPIC runtime.
20
21         Fixes for -safe-string in OCaml 4.06.
22
23 2017-03-28  Richard W.M. Jones  <rjones@redhat.com>
24
25         chmod -x COPYING* files.
26
27         Use virConnectGetAllDomainStats API to collect domain stats (RHBZ#1422795).
28         This is much faster than using the basic libvirt APIs to collect
29         stats for each domain individually.
30
31         Note this will not work unless you have the latest ocaml-libvirt
32         package which includes this new API binding.
33
34         Remove unused variable is_calendar2.
35         Fixes commit effd1ec5897a2cac6e897ae7bce72f6b1e617b90.
36
37 2017-03-27  Richard W.M. Jones  <rjones@redhat.com>
38
39         Move block_in_bytes entirely to the presentation layer.
40         Simplifies and updates commit dbef8dd3bf00417e75a12c851b053e49c9e1a79e.
41
42         Split up huge Top module into smaller modules.
43         This change is hopefully pure refactoring, splitting up the very large
44         and highly interlinked module into more manageable modules with
45         well-defined (or at least *better*-defined) interfaces between them.
46
47         src: Fix some comments which referred to the old filenames.
48         Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.
49
50         Remove support for OCaml Calendar v1.
51         Calendar v2 was released in 2008 (9 years ago!), thus remove support
52         for v1.
53
54         This was already broken by commit dc0e217390132f7e76a4d9c0a8a81a9556d19081
55         so it likely didn't work anyway.
56
57         Update PO files.
58
59         Fix po/POTFILES for new location of source files.
60         Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.
61
62         Refresh HACKING file.
63         Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.
64
65         Remove +x (executable) permission on several source files.
66         Not sure why it was there, but it was incorrect.
67
68         Enable same warnings as libguestfs.
69         In particular 'warning 3' was still enabled before, meaning that the
70         code would fail with newer OCaml compilers:
71
72           File "top.ml", line 377, characters 12-25:
73           Warning 3: deprecated: String.create
74           Use Bytes.create instead.
75
76         Since we want to continue using old OCaml for now, don't enable
77         this warning.
78
79 2016-10-31  Richard W.M. Jones  <rjones@redhat.com>
80
81         Rename source directory and files.
82         This renames the source directory from virt-top to src/ and removes
83         the unnecessary virt_top_* prefix from many source files.
84
85         This is entirely refactoring and makes no functional change.
86
87         Also this fixes the MANIFEST file and removes old Transifex
88         configuration, fixing commit defe5bdd4a32e0206a786d279e0f9cfc238e5e17.
89
90 2016-01-04  Richard W.M. Jones  <rjones@redhat.com>
91
92         build: Add -g flag to ocamlopt.
93         Modern ocamlopt supports the -g flag fine (very old versions did not).
94
95 2015-02-21  Richard W.M. Jones  <rjones@redhat.com>
96
97         Update translations from Zanata.
98
99         Move upstream translations from Tranifex to Zanata.
100         This is at the request of the Fedora localization team.
101         For further information see:
102
103         https://www.redhat.com/archives/libguestfs/2015-February/msg00168.html
104
105 2014-08-02  Richard W.M. Jones  <rjones@redhat.com>
106
107         Disable warning about immutable strings (for OCaml 4.02).
108
109 2012-10-12  Richard W.M. Jones  <rjones@redhat.com>
110
111         Version 1.0.8.
112
113 2012-10-12  Hu Tao  <hutao@cn.fujitsu.com>
114
115         show `vcpu usages' by `virt-top -1'
116         Before this patch, `virt-top -1' shows total cpu usages
117         which euqal to `vcpu usages' + `hypervisor usages'. This
118         patch adds another column for domains showing `vcpu
119         usages'. An example is:
120
121         PHYCPU %CPU example_domain
122            0   10.4 10.4  0.8
123            1    1.6  1.6  1.4
124            2    2.6  2.6  2.6
125            3    0.0  0.0  0.1
126
127         RWMJ: I cleaned up this patch a little, but it should be
128         functionally the same.
129
130         Rename find_usages_from_stats as find_cpu_usages.
131         This is just code motion.
132
133 2012-10-12  Richard W.M. Jones  <rjones@redhat.com>
134
135         OCaml stable dependencies.
136
137         Remove D.get_cpu_stats second parameter.
138         In upstream ocaml-libvirt, this second parameter has been removed,
139         because it was found that nr_pcpus can be found by calling the libvirt
140         API directly.
141
142 2012-09-28  Richard W.M. Jones  <rjones@redhat.com>
143
144         Make the main code and exception handling simpler.
145
146         Better error messages when parsing the init file (RHBZ#836231).
147
148         Add missing sort order options in --help output (RHBZ#807176).
149
150         Man page: Add an explanation of columns (RHBZ#834208).
151
152         man page: Update copyright date.
153
154 2012-03-06  Richard W.M. Jones  <rjones@redhat.com>
155
156         Version 1.0.7.
157
158         Ignore aclocal.m4.
159
160         Document requirements in README file.
161
162 2012-03-06  Lai Jiangshan  <laijs@cn.fujitsu.com>
163
164         virt-top: correct "virt-top -1" command via cpuacct cgroup
165         Old "virt-top -1" is not correct, its output is generated by guess:
166         use average usage for pinned physical CPUs.
167
168         example(old "virt-top -1"):
169
170         PHYCPU %CPU rhel6  Windows
171            0    0.6  0.1=   0.5=
172            1    0.6  0.1=   0.5=#
173            2    0.6  0.1=   0.5=
174            3    0.6  0.1=#  0.5=
175
176         The output almost makes no sense(all the value are just average, not real).
177
178         This is new implement, it use cpuacct cgroup to gain *real* physical usages
179         via cpuacct cgroup by virDomainGetCPUStats() API.
180
181         new result:
182
183         PHYCPU %CPU rhel6  Windows
184            0    1.3  0.3     1.0
185            1    2.3  0.3     2.0
186            2    2.2  0.5     1.7
187            3    2.5  0.4     2.1
188
189         PHYCPU %CPU rhel6  Windows
190            0    1.7  0.4     1.3
191            1    3.6  1.0     2.7
192            2    1.6  0.4     1.2
193            3    4.8  3.1     1.7
194
195         Note: average flag(=) is dropped, there is not average value in here.
196         Note: running flag(#) is dropped, because if the value is not empty,
197               it means the guest was once running in the physical CPU in this period
198               between updates.
199
200         Changed from V3:
201                 use new virDomainGetCPUStats() libvirt-API.
202                 add a new function find_usages_from_stats() to gain cpu usages.
203
204 2011-08-15  Richard W.M. Jones  <rjones@redhat.com>
205
206         Ensure manpages get built when using native compiler (thanks Laurent Léonard).
207
208 2011-08-12  Richard W.M. Jones  <rjones@redhat.com>
209
210         Version 1.0.6.
211
212         Update MANIFEST and fix 'make dist'.
213         make dist now copies the generated manual pages into the tarball, so
214         that we don't have to keep these generated files in git.
215
216         Fix ordering of csv_mode and stream_mode in tuple.
217         Note that this bug could have been avoided by using a struct instead
218         of a tuple here.
219
220         This updates commit daf79631f3eff904ba89297148c4125ac7dfee39.
221
222 2011-08-11  Richard W.M. Jones  <rjones@redhat.com>
223
224         docs: Explain how to debug libvirt initialization problems (RHBZ#680031).
225
226 2011-04-02  Richard W.M. Jones  <rjones@redhat.com>
227
228         Pull translations from Transifex.
229
230 2011-03-08  Richard W.M. Jones  <rjones@redhat.com>
231
232         Fix --end-time option with absolute times.
233         Assume the user enters a local time, and convert it to UTC.
234
235         This also adds some clarifying comments to the relative time
236         code (but doesn't change that code).
237
238         Note that the obsolete Calendar1 code is *not* updated by this change.
239
240         docs: Fix documentation for virt-top -c option.
241         Because of changes in libvirt, this no longer connects to Xen by
242         default.  Instead the default is to connect to the libvirt default
243         hypervisor (which could be Xen, KVM or others).  Update the --help
244         documentation and manual page accordingly.
245
246         Remove generated man pages from git.
247
248 2011-03-07  KAMEZAWA Hiroyuki  <kamezawa@bluextal.(none)>
249
250         add memory stats to --csv mode.
251         In csv mode, memory usage in kbytes and %mem against total system
252         memory is shown.
253
254 2011-03-07  KAMEZAWA Hiroyuki  <kamezawa.hiroyu@jp.fujitsu.com>
255
256         Record memory statistics information to 'rd' object.
257         This helps to share the calculation (between modes) and
258         will help to show memory statistics in --csv mode
259
260         Signged-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
261
262 2011-03-07  Richard W.M. Jones  <rjones@redhat.com>
263
264         Import virt-top into transifex.
265         http://www.transifex.net/projects/p/virttop/
266
267 2011-02-02  Richard W.M. Jones  <rjones@redhat.com>
268
269         Update generated man page files.
270
271 2011-02-02  KAMEZAWA Hiroyuki  <kamezawa.hiroyu@jp.fujitsu.com>
272
273         Add --block-in-bytes option.
274         This option and the 'B' key toggles block I/O stats between
275         requests and bytes.
276
277         Add --stream flag.
278         Output is sent to stdout (similar to the top -b option).
279
280 2011-01-24  Richard W.M. Jones  <rjones@redhat.com>
281
282         Obey virt-top --end-time down to near millisecond accuracy (RHBZ#637964).
283         Adjust the final delay down so that the --end-time option is obeyed
284         down to near millisecond accuracy.
285
286         The 'usleep' function has been renamed more accurately as 'millisleep'
287         since it sleeps for milliseconds not microseconds.
288
289 2011-01-06  Richard W.M. Jones  <rjones@redhat.com>
290
291         Version 1.0.5.
292
293         Add aclocal.m4 file to git.
294         This file is sort of generated, but at the moment only has
295         a single line which includes m4/ocaml.m4, that is vital for
296         the build.
297
298         Re-add virt-top/README file.
299         This seems to have been dropped during the hg->git transition.
300
301         Document background noise of RX packets from bridges (RHBZ#647987).
302         For more information see:
303         https://bugzilla.redhat.com/show_bug.cgi?id=647987#c9
304
305         man page: Remove excess blank line.
306
307         main: Record and print full exception stack traces.
308         This turns on stack trace recording unconditionally (the same
309         effect as if OCAMLRUNPARAM=b was always supplied), and also prints
310         stack traces to the log file if there is an exception.
311
312         See also:
313         http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printexc.html
314
315         Note that this requires OCaml >= 3.11.0.
316
317         Fix pad function to work for negative widths (RHBZ#634435).
318         The pad function is supposed to pad a string to a width.  Under some
319         circumstances, the width parameter could be negative resulting in a
320         call to String.sub such as:
321
322           String.sub str 0 (-1)
323
324         which caused an exception to be thrown and not caught, causing
325         virt-top to exit.  Fix the pad function to return an empty string if
326         width <= 0 instead of throwing an exception.
327
328         See also:
329         https://bugzilla.redhat.com/show_bug.cgi?id=634435
330
331         Update dependencies.
332
333         Update generated man pages.
334
335         Fix virt-top --end-time option when TZ<>UTC (RHBZ#637964).
336         Return the end time as seconds since 1970, and don't adjust it
337         for timezone.  In the main module the end time is compared against
338         the result of Unix.gettimeofday, which is also seconds since 1970,
339         so the comparison now works.
340
341         Tested with TZ=UTC-05, TZ=UTC and TZ=UTC+05.
342
343         NB: This has not been tested against ocaml-calendar 1.x, although
344         that version of calendar is obsolete and no one should be using it.
345
346         Update dependencies file.
347
348         man page: memory option shows total guest memory (RHBZ#647991).
349
350         man page: Update copyright date and link to web pages.
351
352         Remove references to xm/xentop manual pages (RHBZ#648186).
353         These Xen tools are obsolete since virsh/virt-top works across
354         all hypervisors.
355
356 2010-09-02  Richard Jones  <rjones@redhat.com>
357
358         Change order of return values from getyx - fixes display of historical CPU.
359         In this commit:
360         http://cvs.savannah.gnu.org/viewvc/ocaml-tmk/functions.c?root=ocaml-tmk&r1=1.2&r2=1.3
361         Sam changed (fixed) the order that the coordinates are returned
362         from the ncurses 'getyx' call.  Since this commit was made 3 years
363         ago it should be safe to assume everyone is using the new ocaml-ncurses
364         by now.
365
366         This meant the historical %CPU was being displayed off the bottom of
367         the screen instead of on the top row at the right.  Now it is displayed
368         in the correct place.
369
370 2010-06-15  Kiyoto Hashida  <khashida@redhat.com>
371
372         Update Japanese translations (RHBZ#493799).
373
374 2010-03-05  Yulia  <ypoyarko@redhat.com>
375
376         Updated Russian translations (RHBZ#493799).
377
378 2010-03-05  Richard Jones  <rjones@redhat.com>
379
380         Newer autoconf adds PACKAGE_URL definition.
381
382 2010-02-12  Richard Jones  <rjones@redhat.com>
383
384         zh_CN: Remove bogus Plural-Forms line.
385
386         Japanese: update bogus 'Plural-Forms: Plural-Forms'.
387
388 2010-02-12  Hajime Taira  <htaira@redhat.com>
389
390         Update Japanese translations (RHBZ#493799).
391
392 2010-01-28  Richard Jones  <rjones@redhat.com>
393
394         Rename te_IN.po -> te.po (Piotr Drąg).
395
396         Telugu translation added by Krishna Babu K (RHBZ#493799c32)
397
398         Polish translation updated by Piotr Drag (RHBZ#493799c31)
399
400         Portuguese translation added by Glaucia Cintra (RHBZ#493799c30)
401
402         Chinese translation updated by Wei Liu (RHBZ#493799c29)
403
404         Oriya translation added by Manoj Kumar Giri (RHBZ#493799c28)
405
406         Spanish translation updated by Daniel Cabrera (RHBZ#493799c27)
407
408 2009-12-30  Richard Jones  <rjones@redhat.com>
409
410         Update to ocaml-autoconf macros 1.1
411
412         Fix detection of ocaml-findlib.
413
414 2009-10-06  Richard Jones  <rjones@trick.home.annexia.org>
415
416         HACKING file, update (C) messages.
417
418         Update PO files.
419
420         Remove extra spaces after s_ and f_ operators.
421
422         Safer curses functions.
423         Add safer curses functions which don't require use of dangerous
424         ignore() function.
425
426         Replace failwith (sprintf...) with failwithf
427
428         Remove -w s and fix so it compiles without warnings.
429
430         Remove NSIS installer.
431
432         Change over to using ocaml.m4 macros.
433
434 2009-10-05  Richard Jones  <rjones@trick.home.annexia.org>
435
436         Updated MANIFEST.
437
438         TODO.virt-top renamed as TODO
439
440         Typo fixed.
441
442         Update manpage with --version option.
443
444         Add virt-top --version command line option.
445
446         Add the real virt-top version to help display.
447
448         Version 1.0.4 for release.
449
450         Fix changelog and manifest files.
451
452         gitlog-to-changelog: If the date field is empty, don't barf.
453
454         Added Jim Meyering's gitlog-to-changelog program.
455
456         Add total hardware memory field (RHBZ#521785)
457
458         Don't need to explicitly link against ncurses.
459
460         Update PO files.
461
462         Add Japanese to list of translations.
463
464         Use msgfmt to generate *.mo files correctly.
465
466         Update documentation.
467
468         Update dependencies.
469
470         Rename .hgignore -> .gitignore, update dependencies.