Skip to content
Snippets Groups Projects
  1. Oct 11, 2024
  2. Oct 09, 2024
  3. Oct 08, 2024
  4. Oct 07, 2024
    • Tejun Heo's avatar
      sched_ext, scx_qmap: Add and use SCX_ENQ_CPU_SELECTED · 9b671793
      Tejun Heo authored
      
      scx_qmap and other schedulers in the SCX repo are using SCX_ENQ_WAKEUP to
      tell whether ops.select_cpu() was called. This is incorrect as
      ops.select_cpu() can be skipped in the wakeup path and leads to e.g.
      incorrectly skipping direct dispatch for tasks that are bound to a single
      CPU.
      
      sched core has been updated to specify ENQUEUE_RQ_SELECTED if
      ->select_task_rq() was called. Map it to SCX_ENQ_CPU_SELECTED and update
      scx_qmap to test it instead of SCX_ENQ_WAKEUP.
      
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Acked-by: default avatarDavid Vernet <void@manifault.com>
      Cc: Daniel Hodges <hodges.daniel.scott@gmail.com>
      Cc: Changwoo Min <multics69@gmail.com>
      Cc: Andrea Righi <andrea.righi@linux.dev>
      Cc: Dan Schatzberg <schatzberg.dan@gmail.com>
      9b671793
  5. Oct 04, 2024
  6. Oct 03, 2024
  7. Oct 02, 2024
    • Al Viro's avatar
      move asm/unaligned.h to linux/unaligned.h · 5f60d5f6
      Al Viro authored
      asm/unaligned.h is always an include of asm-generic/unaligned.h;
      might as well move that thing to linux/unaligned.h and include
      that - there's nothing arch-specific in that header.
      
      auto-generated by the following:
      
      for i in `git grep -l -w asm/unaligned.h`; do
      	sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $i
      done
      for i in `git grep -l -w asm-generic/unaligned.h`; do
      	sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $i
      done
      git mv include/asm-generic/unaligned.h include/linux/unaligned.h
      git mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.h
      sed -i -e "/unaligned.h/d" include/asm-generic/Kbuild
      sed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
      5f60d5f6
    • Ilkka Koskinen's avatar
      perf cs-etm: Fix the assert() to handle captured and unprocessed cpu trace · e934a35e
      Ilkka Koskinen authored
      
      If one builds perf with DEBUG=1, captures data on multiple CPUs and
      finally runs 'perf report -C <cpu>' for only one of the cpus, assert()
      aborts the program. This happens because there are empty queues with
      format set.
      
      This patch changes the condition to abort only if a queue is not empty
      and if the format is unset.
      
        $ make -C tools/perf DEBUG=1 CORESIGHT=1 CSLIBS=/usr/lib CSINCLUDES=/usr/include install
        $ perf record -o kcore --kcore -e cs_etm/timestamp/k -s -C 0-1 dd if=/dev/zero of=/dev/null bs=1M count=1
        $ perf report --input kcore/data --vmlinux=/home/ikoskine/projects/linux/vmlinux -C 1
        Aborted (core dumped)
      
      Fixes: 57880a79 ("perf: cs-etm: Allocate queues for all CPUs")
      Reviewed-by: default avatarJames Clark <james.clark@linaro.org>
      Signed-off-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Clark <james.clark@linaro.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@linux.dev>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Mike Leach <mike.leach@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
      Cc: Will Deacon <will@kernel.org>
      Link: https://lore.kernel.org/r/20240924233930.5193-1-ilkka@os.amperecomputing.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e934a35e
    • Yang Jihong's avatar
      perf build: Fix build feature-dwarf_getlocations fail for old libdw · a530337b
      Yang Jihong authored
      
      For libdw versions below 0.177, need to link libdl.a in addition to
      libbebl.a during static compilation, otherwise
      feature-dwarf_getlocations compilation will fail.
      
      Before:
      
        $ make LDFLAGS=-static
          BUILD:   Doing 'make -j20' parallel build
        <SNIP>
        Makefile.config:483: Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157
        <SNIP>
      
        $ cat ../build/feature/test-dwarf_getlocations.make.output
        /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libebl.a(eblclosebackend.o): in function `ebl_closebackend':
        (.text+0x20): undefined reference to `dlclose'
        collect2: error: ld returned 1 exit status
      
      After:
      
        $ make LDFLAGS=-static
        <SNIP>
          Auto-detecting system features:
        ...                                   dwarf: [ on  ]
        <SNIP>
      
          $ ./perf probe
         Usage: perf probe [<options>] 'PROBEDEF' ['PROBEDEF' ...]
            or: perf probe [<options>] --add 'PROBEDEF' [--add 'PROBEDEF' ...]
            or: perf probe [<options>] --del '[GROUP:]EVENT' ...
            or: perf probe --list [GROUP:]EVENT ...
        <SNIP>
      
      Fixes: 536661da ("perf: build: Only link libebl.a for old libdw")
      Reviewed-by: default avatarLeo Yan <leo.yan@arm.com>
      Signed-off-by: default avatarYang Jihong <yangjihong@bytedance.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20240919013513.118527-3-yangjihong@bytedance.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a530337b
    • Yang Jihong's avatar
      perf build: Fix static compilation error when libdw is not installed · 43f6564f
      Yang Jihong authored
      
      If libdw is not installed in build environment, the output of
      'pkg-config --modversion libdw' is empty, causing LIBDW_VERSION_2 to be
      empty and the shell test will have the following error:
      
        /bin/sh: 1: test: -lt: unexpected operator
      
      Before:
      
        $ pkg-config --modversion libdw
        Package libdw was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libdw.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libdw' found
        $ make LDFLAGS=-static -j16
          BUILD:   Doing 'make -j20' parallel build
        <SNIP>
        Package libdw was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libdw.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libdw' found
        /bin/sh: 1: test: -lt: unexpected operator
      
      After:
      
        1. libdw is not installed:
      
        $ pkg-config --modversion libdw
        Package libdw was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libdw.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libdw' found
        $ make LDFLAGS=-static -j16
          BUILD:   Doing 'make -j20' parallel build
        <SNIP>
        Package libdw was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libdw.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libdw' found
        Makefile.config:473: No libdw DWARF unwind found, Please install elfutils-devel/libdw-dev >= 0.158 and/or set LIBDW_DIR
      
        2. libdw version is lower than 0.177
      
        $ pkg-config --modversion libdw
        0.176
        $ make LDFLAGS=-static -j16
          BUILD:   Doing 'make -j20' parallel build
        <SNIP>
      
        Auto-detecting system features:
        ...                                   dwarf: [ on  ]
        <SNIP>
          INSTALL libsubcmd_headers
          INSTALL libapi_headers
          INSTALL libperf_headers
          INSTALL libsymbol_headers
          INSTALL libbpf_headers
          LINK    perf
      
        3. libdw version is higher than 0.177
      
        $ pkg-config --modversion libdw
        0.186
        $ make LDFLAGS=-static -j16
          BUILD:   Doing 'make -j20' parallel build
        <SNIP>
      
        Auto-detecting system features:
        ...                                   dwarf: [ on  ]
        <SNIP>
          CC      util/bpf-utils.o
          CC      util/pfm.o
          LD      util/perf-util-in.o
          LD      perf-util-in.o
          AR      libperf-util.a
          LINK    perf
      
      Fixes: 536661da ("perf: build: Only link libebl.a for old libdw")
      Reviewed-by: default avatarLeo Yan <leo.yan@arm.com>
      Signed-off-by: default avatarYang Jihong <yangjihong@bytedance.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20240919013513.118527-2-yangjihong@bytedance.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      43f6564f
    • James Clark's avatar
      perf dwarf-aux: Fix build with !HAVE_DWARF_GETLOCATIONS_SUPPORT · 008979cc
      James Clark authored
      
      The linked fixes commit added an #include "dwarf-aux.h" to disasm.h
      which gets picked up in a lot of places. Without
      HAVE_DWARF_GETLOCATIONS_SUPPORT the stubs return an errno, so include
      errno.h to fix the following build error:
      
        In file included from util/disasm.h:8,
                       from util/annotate.h:16,
                       from builtin-top.c:23:
        util/dwarf-aux.h: In function 'die_get_var_range':
        util/dwarf-aux.h:183:10: error: 'ENOTSUP' undeclared (first use in this function)
          183 |  return -ENOTSUP;
              |          ^~~~~~~
      
      Fixes: 782959ac ("perf annotate: Add "update_insn_state" callback function to handle arch specific instruction tracking")
      Signed-off-by: default avatarJames Clark <james.clark@linaro.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20241001123625.1063153-1-james.clark@linaro.org
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      008979cc
    • Yifei Liu's avatar
      selftests: breakpoints: use remaining time to check if suspend succeed · c66be905
      Yifei Liu authored
      
      step_after_suspend_test fails with device busy error while
      writing to /sys/power/state to start suspend. The test believes
      it failed to enter suspend state with
      
      $ sudo ./step_after_suspend_test
      TAP version 13
      Bail out! Failed to enter Suspend state
      
      However, in the kernel message, I indeed see the system get
      suspended and then wake up later.
      
      [611172.033108] PM: suspend entry (s2idle)
      [611172.044940] Filesystems sync: 0.006 seconds
      [611172.052254] Freezing user space processes
      [611172.059319] Freezing user space processes completed (elapsed 0.001 seconds)
      [611172.067920] OOM killer disabled.
      [611172.072465] Freezing remaining freezable tasks
      [611172.080332] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
      [611172.089724] printk: Suspending console(s) (use no_console_suspend to debug)
      [611172.117126] serial 00:03: disabled
      some other hardware get reconnected
      [611203.136277] OOM killer enabled.
      [611203.140637] Restarting tasks ...
      [611203.141135] usb 1-8.1: USB disconnect, device number 7
      [611203.141755] done.
      [611203.155268] random: crng reseeded on system resumption
      [611203.162059] PM: suspend exit
      
      After investigation, I noticed that for the code block
      if (write(power_state_fd, "mem", strlen("mem")) != strlen("mem"))
      	ksft_exit_fail_msg("Failed to enter Suspend state\n");
      
      The write will return -1 and errno is set to 16 (device busy).
      It should be caused by the write function is not successfully returned
      before the system suspend and the return value get messed when waking up.
      As a result, It may be better to check the time passed of those few
      instructions to determine whether the suspend is executed correctly for
      it is pretty hard to execute those few lines for 5 seconds.
      
      The timer to wake up the system is set to expire after 5 seconds and
      no re-arm. If the timer remaining time is 0 second and 0 nano secomd,
      it means the timer expired and wake the system up. Otherwise, the system
      could be considered to enter the suspend state failed if there is any
      remaining time.
      
      After appling this patch, the test would not fail for it believes the
      system does not go to suspend by mistake. It now could continue to the
      rest part of the test after suspend.
      
      Fixes: bfd092b8 ("selftests: breakpoint: add step_after_suspend_test")
      Reported-by: default avatarSinadin Shan <sinadin.shan@oracle.com>
      Signed-off-by: default avatarYifei Liu <yifei.l.liu@oracle.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      c66be905
    • Alessandro Zanni's avatar
      kselftest/devices/probe: Fix SyntaxWarning in regex strings for Python3 · a1900825
      Alessandro Zanni authored
      
      Insert raw strings to prevent Python3 from interpreting string literals
      as Unicode strings and "\d" as invalid escaped sequence.
      
      Fix the warnings:
      
      tools/testing/selftests/devices/probe/test_discoverable_devices.py:48:
      SyntaxWarning: invalid escape sequence '\d' usb_controller_sysfs_dir =
      "usb[\d]+"
      
      tools/testing/selftests/devices/probe/test_discoverable_devices.py: 94:
      SyntaxWarning: invalid escape sequence '\d' re_usb_version =
      re.compile("PRODUCT=.*/(\d)/.*")
      
      Fixes: dacf1d7a ("kselftest: Add test to verify probe of devices from discoverable buses")
      
      Reviewed-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
      Signed-off-by: default avatarAlessandro Zanni <alessandro.zanni87@gmail.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      a1900825
    • Arnaldo Carvalho de Melo's avatar
      tools headers arm64: Sync arm64's cputype.h with the kernel sources · b9efb596
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
        db0d8a84 ("arm64: errata: Enable the AC03_CPU_38 workaround for ampere1a")
      
      That makes this perf source code to be rebuilt:
      
        CC      /tmp/build/perf-tools/util/arm-spe.o
      
      The changes in the above patch add MIDR_AMPERE1A, used in arm-spe.c, so
      probably we need to add it to that array?  Or maybe we need to leave
      this for later when this is all tested on those machines?
      
        static const struct midr_range neoverse_spe[] = {
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
                {},
        };
      
      Mark Rutland recommended about arm-spe.c in a previous update to this
      file:
      
      "I would not touch this for now -- someone would have to go audit the
      TRMs to check that those other cores have the same encoding, and I think
      it'd be better to do that as a follow-up."
      
      That addresses this perf build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: D Scott Phillips <scott@os.amperecomputing.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Link: https://lore.kernel.org/lkml/ZvtFu7J-Awy2zuEJ@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      b9efb596
    • Arnaldo Carvalho de Melo's avatar
      perf tools: Cope with differences for lib/list_sort.c copy from the kernel · 36110669
      Arnaldo Carvalho de Melo authored
      
      With 6d74e1e3 ("tools/lib/list_sort: remove redundant code for
      cond_resched handling") we need to use the newly added hunk based
      exceptions when comparing the copy we carry in tools/lib/ to the
      original file, do it by adding the hunks that we know will be the
      expected diff.
      
      If at some point the original file is updated in other parts, then we
      should flag and check the file for update.
      
      Acked-by: default avatarKuan-Wei Chiu <visitorckw@gmail.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Link: https://lore.kernel.org/lkml/20240930202136.16904-3-acme@kernel.org
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      36110669
    • Arnaldo Carvalho de Melo's avatar
      tools check_headers.sh: Add check variant that excludes some hunks · cd46ea5a
      Arnaldo Carvalho de Melo authored
      
      With 6d74e1e3 ("tools/lib/list_sort: remove redundant code for
      cond_resched handling") we end up with a multi-line variation in the
      merge_final() implementation, one that the simple line based exceptions
      we had so far can't cope.
      
      Thus this check has been failing:
      
        Warning: Kernel ABI header differences:
          diff -u tools/lib/list_sort.c lib/list_sort.c
      
      So add a new check routine that uses grep -vf to exclude some hunks that
      we store in the tools/perf/check-header_ignore_hunks/ directory.
      
      This first patch is just the new check routine, the next one will use it
      to check lib/list_sort.c.
      
      Acked-by: default avatarKuan-Wei Chiu <visitorckw@gmail.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Link: https://lore.kernel.org/lkml/20240930202136.16904-2-acme@kernel.org
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      cd46ea5a
    • Vishal Chourasia's avatar
      sched_ext: Add __weak markers to BPF helper function decalarations · fcbc4235
      Vishal Chourasia authored
      Fix build errors by adding __weak markers to BPF helper function
      declarations in header files. This resolves static assertion failures
      in scx_qmap.bpf.c and scx_flatcg.bpf.c where functions like
      scx_bpf_dispatch_from_dsq_set_slice, scx_bpf_dispatch_from_dsq_set_vtime,
      and scx_bpf_task_cgroup were missing the __weak attribute.
      
      [1] https://lore.kernel.org/all/ZvvfUqRNM4-jYQzH@linux.ibm.com
      
      
      
      Signed-off-by: default avatarVishal Chourasia <vishalc@linux.ibm.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      fcbc4235
  8. Oct 01, 2024
    • Mark Brown's avatar
      KVM: selftests: Fix build on architectures other than x86_64 · 76f972c2
      Mark Brown authored
      
      The recent addition of support for testing with the x86 specific quirk
      KVM_X86_QUIRK_SLOT_ZAP_ALL disabled in the generic memslot tests broke the
      build of the KVM selftests for all other architectures:
      
      In file included from include/kvm_util.h:8,
                       from include/memstress.h:13,
                       from memslot_modification_stress_test.c:21:
      memslot_modification_stress_test.c: In function ‘main’:
      memslot_modification_stress_test.c:176:38: error: ‘KVM_X86_QUIRK_SLOT_ZAP_ALL’ undeclared (first use in this function)
        176 |                                      KVM_X86_QUIRK_SLOT_ZAP_ALL);
            |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Add __x86_64__ guard defines to avoid building the relevant code on other
      architectures.
      
      Fixes: 61de4c34 ("KVM: selftests: Test memslot move in memslot_perf_test with quirk disabled")
      Fixes: 218f6415 ("KVM: selftests: Allow slot modification stress test with quirk disabled")
      Reported-by: default avatarAishwarya TCV <aishwarya.tcv@arm.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Message-ID: <20240930-kvm-build-breakage-v1-1-866fad3cc164@kernel.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      76f972c2
    • Yun Lu's avatar
      selftest: hid: add missing run-hid-tools-tests.sh · 160c826b
      Yun Lu authored
      
      HID test cases run tests using the run-hid-tools-tests.sh script.
      When installed with "make install", the run-hid-tools-tests.sh
      script will not be copied over, resulting in the following error message.
      
        make -C tools/testing/selftests/ TARGETS=hid install \
        	  INSTALL_PATH=$KSFT_INSTALL_PATH
      
        cd $KSFT_INSTALL_PATH
        ./run_kselftest.sh -c hid
      
      selftests: hid: hid-core.sh
      bash: ./run-hid-tools-tests.sh: No such file or directory
      
      Add the run-hid-tools-tests.sh script to the TEST_FILES in the Makefile
      for it to be installed.
      
      Fixes: ffb85d5c ("selftests: hid: import hid-tools hid-core tests")
      Signed-off-by: default avatarYun Lu <luyun@kylinos.cn>
      Acked-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      160c826b
    • Jason A. Donenfeld's avatar
      selftests: vDSO: align getrandom states to cache line · a18c8357
      Jason A. Donenfeld authored
      
      This prevents false sharing, which makes a large difference on machines
      with several NUMA nodes, such as on a dual socket Intel(R) Xeon(R) Gold
      6338 CPU @ 2.00GHz, where the "bench-multi" test goes from 2.7s down to
      1.9s. While this is just test code, it also forms the basis of how folks
      will wind up implementing this in libraries, so we should implement this
      simple cache alignment improvement here.
      
      Suggested-by: Florian Weimer's avatarFlorian Weimer <fweimer@redhat.com>
      Cc: Adhemerval Zanella <adhemerval.zanella@linaro.org>
      Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      a18c8357
  9. Sep 30, 2024
Loading