1. 11 8月, 2017 1 次提交
  2. 19 7月, 2017 2 次提交
  3. 27 6月, 2017 1 次提交
  4. 25 4月, 2017 2 次提交
  5. 20 4月, 2017 2 次提交
  6. 20 2月, 2017 1 次提交
  7. 18 12月, 2015 1 次提交
  8. 17 12月, 2015 1 次提交
  9. 20 11月, 2015 1 次提交
    • A
      perf tests: Pass the subtest index to each test routine · 721a1f53
      Arnaldo Carvalho de Melo 提交于
      Some tests have sub-tests we want to run, so allow passing this.
      
      Wang tried to avoid having to touch all tests, but then, having the
      test.func in an anonymous union makes the build fail on older compilers,
      like the one in RHEL6, where:
      
        test a = {
      	.func = foo,
        };
      
      fails.
      
      To fix it leave the func pointer in the main structure and pass the subtest
      index to all tests, end result function is the same, but we have just one
      function pointer, not two, with and without the subtest index as an argument.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-5genj0ficwdmelpoqlds0u4y@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      721a1f53
  10. 03 11月, 2015 1 次提交
  11. 02 5月, 2014 1 次提交
  12. 12 4月, 2013 1 次提交
  13. 16 3月, 2013 1 次提交
  14. 30 1月, 2013 1 次提交
  15. 25 1月, 2013 2 次提交
    • N
      perf tests: Check python path on attr and binding test · 000ae33f
      Namhyung Kim 提交于
      Current perf test code tries to execute python version 2 in order to
      test attributes on perf_event_open syscall.  However it's not default
      python version anymore a system can have python v3 only or v2 with a
      different name (e.g. python2).  So if there's no such python interpreter
      with the name 'python', the test would fail like this (yes, it's
      happened on my new archlinux laptop :).
      
      13: struct perf_event_attr setup                 🇸🇭 python: command not found
       FAILED!
      
      As we can pass name of the python interpreter on make, use it for
      the attr test also.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Acked-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1355729101-31317-1-git-send-email-namhyung@kernel.org
      [ committer note: Added the same mechanism to the python binding test ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      000ae33f
    • A
      perf python: Fix breakage introduced by the test_attr infrastructure · 0c6332e9
      Arnaldo Carvalho de Melo 提交于
      The test_attr infrastructure hooks on the sys_perf_event_open call,
      checking if a variable is set and if so calling a function to intercept
      calls and do the checking.
      
      But both the variable and the function aren't on objects that are
      linked on the python binding, breaking it:
      
        # perf test -v 15
        15: Try 'use perf' in python, checking link problems       :
        --- start ---
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ImportError: /home/acme/git/build/perf//python/perf.so: undefined symbol: test_attr__enabled
        ---- end ----
        Try 'use perf' in python, checking link problems: FAILED!
        #
      
      Fix it by moving the variable to one of the linked object files and
      providing a stub for the function in the python.o object, that is only
      linked in the python binding.
      
      Now 'perf test' is happy again:
      
        # perf test 15
        15: Try 'use perf' in python, checking link problems       : Ok
        #
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-0rsca2kn44b38rgdpr3tz6n5@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      0c6332e9
  16. 15 11月, 2012 1 次提交
  17. 06 11月, 2012 3 次提交
  18. 02 11月, 2012 1 次提交
  19. 01 11月, 2012 1 次提交