1. 10 4月, 2019 2 次提交
  2. 08 2月, 2019 1 次提交
  3. 14 12月, 2018 2 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  4. 07 8月, 2018 1 次提交
    • S
      util: perf: define cleanup function using VIR_DEFINE_AUTOPTR_FUNC · b99b66f8
      Sukrit Bhatnagar 提交于
      Using the new VIR_DEFINE_AUTOPTR_FUNC macro defined in
      src/util/viralloc.h, define a new wrapper around an existing
      cleanup function which will be called when a variable declared
      with VIR_AUTOPTR macro goes out of scope. Also, drop the redundant
      viralloc.h include, since that has moved from the source module into
      the header.
      
      When a variable of type virPerfPtr is declared using VIR_AUTOPTR,
      the function virPerfFree will be run automatically on it when it
      goes out of scope.
      
      This commit also adds an intermediate typedef for virPerf
      type for use with the cleanup macros.
      Signed-off-by: NSukrit Bhatnagar <skrtbhtngr@gmail.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      b99b66f8
  5. 08 3月, 2017 9 次提交
  6. 17 1月, 2017 1 次提交
  7. 10 1月, 2017 1 次提交
  8. 16 12月, 2016 4 次提交
  9. 13 12月, 2016 1 次提交
  10. 07 12月, 2016 1 次提交
  11. 08 10月, 2016 1 次提交
  12. 03 9月, 2016 2 次提交
  13. 03 6月, 2016 1 次提交
  14. 19 5月, 2016 1 次提交
    • Q
      perf: add support to perf event for MBM · 90b9995d
      Qiaowei Ren 提交于
      Some Intel processor families (e.g. the Intel Xeon processor E5 v3
      family) introduced some RDT (Resource Director Technology) features
      to monitor or control shared resource. Among these features, MBM
      (Memory Bandwidth Monitoring), which is build on the CMT (Cache
      Monitoring Technology) infrastructure, provides OS/VMM a way to
      monitor bandwidth from one level of cache to another.
      
      With current perf framework, this patch adds support to perf event
      for MBM.
      Signed-off-by: NQiaowei Ren <qiaowei.ren@intel.com>
      90b9995d
  15. 31 3月, 2016 1 次提交
    • M
      virDomain{Get,Set}PerfEvents: support --config --live --current · ed504ba3
      Michal Privoznik 提交于
      Now that we have @flags we can support changing perf events just
      in active or inactive configuration regardless of the other.
      Previously, calling virDomainSetPerfEvents set events in both
      active and inactive configuration at once. Even though we allow
      users to set perf events that are to be enabled once domain is
      started up. The virDomainGetPerfEvents API was flawed too. It
      returned just runtime info.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ed504ba3
  16. 29 3月, 2016 1 次提交