1. 16 1月, 2021 2 次提交
    • A
      tools headers UAPI: Sync kvm.h headers with the kernel sources · 38c53947
      Arnaldo Carvalho de Melo 提交于
      To pick the changes in:
      
        647daca2 ("KVM: SVM: Add support for booting APs in an SEV-ES guest")
      
      That don't cause any tooling change, just silences this perf build
      warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h'
        diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      38c53947
    • A
      perf bpf examples: Fix bpf.h header include directive in 5sec.c example · 301f0203
      Arnaldo Carvalho de Melo 提交于
      It was looking at bpf/bpf.h, which caused this problem:
      
        # perf trace -e tools/perf/examples/bpf/5sec.c
        /home/acme/git/perf/tools/perf/examples/bpf/5sec.c:42:10: fatal error: 'bpf/bpf.h' file not found
        #include <bpf/bpf.h>
                 ^~~~~~~~~~~
        1 error generated.
        ERROR:	unable to compile tools/perf/examples/bpf/5sec.c
        Hint:	Check error message shown above.
        Hint:	You can also pre-compile it into .o using:
             		clang -target bpf -O2 -c tools/perf/examples/bpf/5sec.c
             	with proper -I and -D options.
        event syntax error: 'tools/perf/examples/bpf/5sec.c'
                             \___ Failed to load tools/perf/examples/bpf/5sec.c from source: Error when compiling BPF scriptlet
        #
      
      Change that to plain bpf.h, to make it work again:
      
        # perf trace -e tools/perf/examples/bpf/5sec.c sleep 5s
             0.000 perf_bpf_probe:hrtimer_nanosleep(__probe_ip: -1776891872, rqtp: 5000000000)
        # perf trace -e tools/perf/examples/bpf/5sec.c/max-stack=16/ sleep 5s
             0.000 perf_bpf_probe:hrtimer_nanosleep(__probe_ip: -1776891872, rqtp: 5000000000)
                                               hrtimer_nanosleep ([kernel.kallsyms])
                                               common_nsleep ([kernel.kallsyms])
                                               __x64_sys_clock_nanosleep ([kernel.kallsyms])
                                               do_syscall_64 ([kernel.kallsyms])
                                               entry_SYSCALL_64_after_hwframe ([kernel.kallsyms])
                                               __clock_nanosleep_2 (/usr/lib64/libc-2.32.so)
        # perf trace -e tools/perf/examples/bpf/5sec.c sleep 4s
        #
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      301f0203
  2. 14 1月, 2021 1 次提交
  3. 10 1月, 2021 2 次提交
  4. 08 1月, 2021 6 次提交
  5. 07 1月, 2021 1 次提交
  6. 06 1月, 2021 2 次提交
  7. 05 1月, 2021 5 次提交
    • I
      selftests: mlxsw: Set headroom size of correct port · 2ff2c7e2
      Ido Schimmel 提交于
      The test was setting the headroom size of the wrong port. This was not
      visible because of a firmware bug that canceled this bug.
      
      Set the headroom size of the correct port, so that the test will pass
      with both old and new firmware versions.
      
      Fixes: bfa80478 ("selftests: mlxsw: Add a PFC test")
      Signed-off-by: NIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: NPetr Machata <petrm@nvidia.com>
      Link: https://lore.kernel.org/r/20201230114251.394009-1-idosch@idosch.orgSigned-off-by: NJakub Kicinski <kuba@kernel.org>
      2ff2c7e2
    • M
      selftests: Skip BPF seftests by default · 7a6eb7c3
      Mark Brown 提交于
      The BPF selftests have build time dependencies on cutting edge versions
      of tools in the BPF ecosystem including LLVM which are more involved
      to satisfy than more typical requirements like installing a package from
      your distribution.  This causes issues for users looking at kselftest in
      as a whole who find that a default build of kselftest fails and that
      resolving this is time consuming and adds administrative overhead.  The
      fast pace of BPF development and the need for a full BPF stack to do
      substantial development or validation work on the code mean that people
      working directly on it don't see a reasonable way to keep supporting
      older environments without causing problems with the usability of the
      BPF tests in BPF development so these requirements are unlikely to be
      relaxed in the immediate future.
      
      There is already support for skipping targets so in order to reduce the
      barrier to entry for people interested in kselftest as a whole let's use
      that to skip the BPF tests by default when people work with the top
      level kselftest build system.  Users can still build the BPF selftests
      as part of the wider kselftest build by specifying SKIP_TARGETS,
      including setting an empty SKIP_TARGETS to build everything.  They can
      also continue to build the BPF selftests individually in cases where
      they are specifically focused on BPF.
      
      This isn't ideal since it means people will need to take special steps
      to build the BPF tests but the dependencies mean that realistically this
      is already the case to some extent and it makes it easier for people to
      pick up and work with the other selftests which is hopefully a net win.
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      7a6eb7c3
    • T
      selftests/vDSO: fix -Wformat warning in vdso_test_correctness · df00d029
      Tobias Klauser 提交于
      Fix the following -Wformat warnings in vdso_test_correctness.c:
      
      vdso_test_correctness.c: In function ‘test_one_clock_gettime64’:
      vdso_test_correctness.c:352:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=]
        352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
            |                 ~~~~^
            |                     |
            |                     long int
            |                 %09lld
        353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
            |                                           ~~~~~~~~~~~~~
            |                                                |
            |                                                long long int
      vdso_test_correctness.c:352:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
        352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
            |                            ~~~~^
            |                                |
            |                                long int
            |                            %09lld
        353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
        354 |         (unsigned long long)vdso.tv_sec, vdso.tv_nsec,
            |                                          ~~~~~~~~~~~~
            |                                              |
            |                                              long long int
      vdso_test_correctness.c:352:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=]
      
      The tv_sec member of __kernel_timespec is long long, both in
      uapi/linux/time_types.h and locally in vdso_test_correctness.c.
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      df00d029
    • T
      selftests/vDSO: add additional binaries to .gitignore · 3b4cf848
      Tobias Klauser 提交于
      Add the test binaries introduced by commit 693f5ca0 ("kselftest:
      Extend vDSO selftest"), commit 03f55c79 ("kselftest: Extend vDSO
      selftest to clock_getres") and commit c7e5789b ("kselftest: Move
      test_vdso to the vDSO test suite") to .gitignore.
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      3b4cf848
    • D
      kunit: tool: Force the use of the 'tty' console for UML · 65a4e529
      David Gow 提交于
      kunit_tool relies on the UML console outputting printk() output to the
      tty in order to get results. Since the default console driver could
      change, pass 'console=tty' to the kernel.
      
      This is triggered by a change[1] to use ttynull as a fallback console
      driver which -- by chance or by design -- seems to have changed the
      default console output on UML, breaking kunit_tool. While this may be
      fixed, we should be less fragile to such changes in the default.
      
      [1]:
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=757055ae8dedf5333af17b3b5b4b70ba9bc9da4eSigned-off-by: NDavid Gow <davidgow@google.com>
      Fixes: 757055ae ("init/console: Use ttynull as a fallback when there is no console")
      Reported-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Tested-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: NBrendan Higgins <brendanhiggins@google.com>
      Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
      65a4e529
  8. 30 12月, 2020 1 次提交
  9. 29 12月, 2020 1 次提交
  10. 24 12月, 2020 19 次提交