1. 05 10月, 2018 3 次提交
  2. 25 9月, 2018 5 次提交
  3. 20 9月, 2018 1 次提交
  4. 30 7月, 2018 1 次提交
  5. 27 7月, 2018 1 次提交
  6. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  7. 10 8月, 2017 1 次提交
  8. 13 7月, 2017 1 次提交
    • J
      Avoid hidden cgroup mount points · dacd160d
      Juan Hernandez 提交于
      Currently the scan of the /proc/mounts file used to find cgroup mount
      points doesn't take into account that mount points may hidden by other
      mount points. For, example in certain Kubernetes environments the
      /proc/mounts contains the following lines:
      
        cgroup /sys/fs/cgroup/net_prio,net_cls cgroup ...
        tmpfs /sys/fs/cgroup tmpfs ...
        cgroup /sys/fs/cgroup/net_cls,net_prio cgroup ...
      
      In this particular environment the first mount point is hidden by the
      second one. The correct mount point is the third one, but libvirt will
      never process it because it only checks the first mount point for each
      controller (net_cls in this case). So libvirt will try to use the first
      mount point, which doesn't actually exist, and the complete detection
      process will fail.
      
      To avoid that issue this patch changes the virCgroupDetectMountsFromFile
      function so that when there are duplicates it takes the information from
      the last line in /proc/mounts. This requires removing the previous
      explicit condition to skip duplicates, and adding code to free the
      memory used by the processing of duplicated lines.
      
      Related-To: https://bugzilla.redhat.com/1468214
      Related-To: https://github.com/kubevirt/libvirt/issues/4Signed-off-by: NJuan Hernandez <jhernand@redhat.com>
      dacd160d
  9. 04 4月, 2017 1 次提交
  10. 10 6月, 2016 3 次提交
  11. 08 6月, 2016 2 次提交
  12. 08 2月, 2016 1 次提交
  13. 09 12月, 2015 1 次提交
  14. 21 10月, 2015 1 次提交
  15. 14 7月, 2015 1 次提交
  16. 24 4月, 2015 1 次提交
  17. 16 4月, 2015 1 次提交
    • E
      tests: fix build on old 32-bit platforms · 9289c858
      Eric Blake 提交于
      gcc 4.1.2 (hello RHEL 5) on 32-bit platforms complains:
      
      vircgrouptest.c: In function 'testCgroupGetPercpuStats':
      vircgrouptest.c:627: warning: integer constant is too large for 'long' type
      vircgrouptest.c:628: warning: this decimal constant is unsigned only in ISO C90
      vircgrouptest.c:634: warning: integer constant is too large for 'long' type
      vircgrouptest.c:635: warning: this decimal constant is unsigned only in ISO C90
      vircgrouptest.c:636: warning: this decimal constant is unsigned only in ISO C90
      vircgrouptest.c:644: warning: integer constant is too large for 'long' type
      
      * tests/vircgrouptest.c (testCgroupGetPercpuStats): Use ULL suffix.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      9289c858
  18. 08 4月, 2015 1 次提交
  19. 18 3月, 2015 1 次提交
  20. 26 1月, 2015 1 次提交
  21. 23 1月, 2015 2 次提交
    • J
      Fix build with older gcc · d66e136b
      Ján Tomko 提交于
      My commit af1c98e4 broke the build on RHEL-6:
      vircgrouptest.c: In function 'testCgroupGetPercpuStats':
      vircgrouptest.c:566: error: nested extern declaration of
      '_gl_verify_function2' [-Wnested-externs]
      
      The only thing that needs checking is that the array size
      is at least EXPECTED_NCPUS, to prevent access beyond the array.
      
      We can ensure the minimum size also by specifying the array
      size upfront.
      d66e136b
    • J
      Fix virCgroupGetPercpuStats with non-continuous present CPUs · af1c98e4
      Ján Tomko 提交于
      Per-cpu stats are only shown for present CPUs in the cgroups,
      but we were only parsing the largest CPU number from
      /sys/devices/system/cpu/present and looking for stats even for
      non-present CPUs.
      This resulted in:
      internal error: cpuacct parse error
      af1c98e4
  22. 09 4月, 2014 1 次提交
    • J
      Extend virCgroupGetPercpuStats to fill in vcputime too · 897808e7
      Ján Tomko 提交于
      Currently, virCgroupGetPercpuStats is only used by the LXC driver,
      filling out the CPUTIME stats. qemuDomainGetPercpuStats does this
      and also filles out VCPUTIME stats.
      
      Extend virCgroupGetPercpuStats to also report VCPUTIME stats if
      nvcpupids is non-zero. In the LXC driver, we don't have cpupids.
      In the QEMU driver, there is at least one cpupid for a running domain,
      so the behavior shouldn't change for QEMU either.
      
      Also rename getSumVcpuPercpuStats to virCgroupGetPercpuVcpuSum.
      897808e7
  23. 25 3月, 2014 1 次提交
  24. 18 3月, 2014 2 次提交
  25. 22 2月, 2014 1 次提交
  26. 20 2月, 2014 3 次提交
  27. 08 10月, 2013 1 次提交