- 01 7月, 2017 1 次提交
-
-
由 Masami Hiramatsu 提交于
Use md5sum so that it takes less time of checking trace logs update. Since busybox tail/cat takes too long time to read the trace log, this uses md5sum to check whether trace log is updated or not. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Acked-by: NSteven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 28 6月, 2017 1 次提交
-
-
由 Orson Zhai 提交于
Sysctl test will fail in some items if the value of /proc/sys/kernel /sysctrl_writes_strict is 0 as the default value in kernel older than v4.5. Make this test more robus and compatible with older kernel by checking and update writes_strict value and restore it when test is done. Signed-off-by: NOrson Zhai <orson.zhai@linaro.org> Reviewed-by: NSumit Semwal <sumit.semwal@linaro.org> Tested-by: NSumit Semwal <sumit.semwal@linaro.org> Reviewed-by: NKees Cook <keescook@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 27 6月, 2017 1 次提交
-
-
由 Mauro Carvalho Chehab 提交于
Do some minor adjustments after ReST conversion: - On most documents, we use prepend a "$ " before command line arguments; - Prefer to use :: on the preceding line; - Split a multi-paragraph description as such. Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com> Acked-by: NJonathan Corbet <corbet@lwn.net> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 24 6月, 2017 3 次提交
-
-
由 SeongJae Park 提交于
After commit a8ba798b ("selftests: enable O and KBUILD_OUTPUT"), net selftest build fails because it points output file without $(OUTPUT) yet. This commit fixes the error. Signed-off-by: NSeongJae Park <sj38.park@gmail.com> Fixes: a8ba798b ("selftests: enable O and KBUILD_OUTPUT") Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 SeongJae Park 提交于
Build of aperf fails as below: ``` gcc -Wall -D_GNU_SOURCE -lm aperf.c -o /tools/testing/selftests/intel_pstate/aperf /tmp/ccKf3GF6.o: In function `main': aperf.c:(.text+0x278): undefined reference to `sqrt' collect2: error: ld returned 1 exit status ``` The faulure occurs because -lm was defined as LDFLAGS and implicit rule of make places LDFLAGS before source file. This commit fixes the problem by using LDLIBS instead of LDFLAGS. Signed-off-by: NSeongJae Park <sj38.park@gmail.com> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 SeongJae Park 提交于
Selftest for memfd shows build error as below: ``` gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ fuse_mnt.c -o /home/sjpark/linux/tools/testing/selftests/memfd/fuse_mnt /tmp/cc6NHdwJ.o: In function `main': fuse_mnt.c:(.text+0x249): undefined reference to `fuse_main_real' collect2: error: ld returned 1 exit status ``` The build fails because output file is specified without $(OUTPUT) and LDFLAGS is used though Makefile implicit rule is used. This commit fixes the error by specifying output file path with $(OUTPUT) and using LDLIBS instead of LDFLAGS. Signed-off-by: NSeongJae Park <sj38.park@gmail.com> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 23 6月, 2017 1 次提交
-
-
由 Sumit Semwal 提交于
With older kernels, printf.sh and bitmap.sh fail because they can't find the respective test modules they are looking for. Use modprobe dry run to check for missing test_XXX module. Error out with the same error code as prime_numbers.sh. Signed-off-by: NSumit Semwal <sumit.semwal@linaro.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 16 6月, 2017 3 次提交
-
-
由 Alice Ferrazzi 提交于
Make membarrier test names more informative. Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Paul Elder 提交于
Make the three tests that did use the old ksft_ext_skip() (breakpoints/breakpoint_test_arm64, breakpoints/step_after_suspend_test, and membarrier_test) use the new one, with an output for the reason for skipping all the tests. Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Paul Elder 提交于
Make ksft_exit_skip() input an optional message string as the reason for skipping all the tests and outputs it prior to exiting. Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 15 6月, 2017 1 次提交
-
-
由 Tim Bird 提交于
1. Add the TAP13 header 2. remove variable data from the test description line 3. move the plan count to the end of the file, for consistency with other kselftests 4. convert memory data from diagnostic (comment) format, to a YAML block Signed-off-by: NTim Bird <tim.bird@sony.com> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 14 6月, 2017 4 次提交
-
-
由 Paul Elder 提交于
Make the step_after_suspend test output in the TAP13 format by using the TAP13 output functions defined in kselftest.h Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Paul Elder 提交于
Make the breakpoints test output in the TAP13 format by using the TAP13 output functions defined in kselftest.h Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Paul Elder 提交于
Make the membarrier test output in the TAP13 format by using the TAP13 output functions defined in kselftest.h Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Paul Elder 提交于
Add TAP13 conformat output functions to kselftest.h. Also add exit functions that output TAP13 exiting text, as well as functions to keep track of testing progress. Signed-off-by: NPaul Elder <paul.elder@pitt.edu> Signed-off-by: NAlice Ferrazzi <alice.ferrazzi@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 13 6月, 2017 3 次提交
-
-
由 Mickaël Salaün 提交于
Do not confuse the compiler with a semicolon preceding a block. Replace the semicolon with an empty block to avoid a warning: gcc -Wl,-no-as-needed -Wall -lpthread seccomp_bpf.c -o /.../linux/tools/testing/selftests/seccomp/seccomp_bpf In file included from seccomp_bpf.c:40:0: seccomp_bpf.c: In function ‘change_syscall’: ../kselftest_harness.h:558:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (; _metadata->trigger; _metadata->trigger = __bail(_assert)) ^ ../kselftest_harness.h:574:14: note: in expansion of macro ‘OPTIONAL_HANDLER’ } while (0); OPTIONAL_HANDLER(_assert) ^~~~~~~~~~~~~~~~ ../kselftest_harness.h:440:2: note: in expansion of macro ‘__EXPECT’ __EXPECT(expected, seen, ==, 0) ^~~~~~~~ seccomp_bpf.c:1313:2: note: in expansion of macro ‘EXPECT_EQ’ EXPECT_EQ(0, ret); ^~~~~~~~~ seccomp_bpf.c:1317:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ { ^ Signed-off-by: NMickaël Salaün <mic@digikod.net> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Kees Cook <keescook@chromium.org> Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Will Drewry <wad@chromium.org> Acked-by: NKees Cook <keescook@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Shuah Khan 提交于
Add missing trailing slash to tools/testing/selftests to cover all files and directories below. Add kselftest documentation files. Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Greg Kroah-Hartman 提交于
There is a few more subdirectories needed in the git tree path for the linux-kselftest url in order to be able to properly clone it. Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 08 6月, 2017 17 次提交
-
-
由 Masami Hiramatsu 提交于
Return unsupported if the kernel is too old to support instance independent ftrace filter for some testcases. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Use top-level available_filter_function if the test case is running under an instance. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Add instance test indication in test log too. Current ftracetest shows instance test indication on the list of test, but not in the log for each test. This adds instance test indication on the top of each log, like below; execute (instance) : /ftrace/test.d/ftrace/func_set_ftrace_file.tc Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Since older kernel didn't support separated instance of set_ftrace_filter, if the test case set the filter in an instance, it will propagate to top-level instance. This means that the filter setting remains even if we remove the instance, and will cause other tests failure. To avoid this issue, reset the ftrace filter if we detect the propagation. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Check the kretprobe maxactive is supported by kprobe_events interface. To ensure the kernel feature, this changes ftrace README to describe it. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Current event/toplevel-enable.tc checking the trace buffer by dumping all events while recording events. However, this makes system very busy. To reduce this overhead comes from reading trace buffer and recording trace buffer, use head instead of cat and stop tracing while reading. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Masami Hiramatsu 提交于
Skip a part of ftrace filter test related to full-glob matching if we are sure that the testing kernel is so old that it does not support full-glob-matching yet. Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Rebuild the seccomp tests when kselftest_harness.h is updated. Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Shuah Khan <shuah@kernel.org> Cc: Will Drewry <wad@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Add ReST metadata to kselftest_harness.h to be able to include the comments in the Sphinx documentation. Signed-off-by: NMickaël Salaün <mic@digikod.net> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Kees Cook <keescook@chromium.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Will Drewry <wad@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Remove the TEST_API() wrapper to expose the underlying macro arguments to the documentation tools. Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Kees Cook <keescook@chromium.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Will Drewry <wad@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Include and convert kselftest to the Sphinx format. Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Move kselftest.txt to dev-tools/kselftest.rst . Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
Keep the content consistent with the new name. Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Shuah Khan <shuah@kernel.org> Cc: Will Drewry <wad@chromium.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Mickaël Salaün 提交于
The seccomp/test_harness.h file contains useful helpers to build tests. Moving it to the selftest directory should benefit to other test components. Keep seccomp maintainers for this file. Signed-off-by: NMickaël Salaün <mic@digikod.net> Acked-by: NKees Cook <keescook@chromium.org> Acked-by: NWill Drewry <wad@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Shuah Khan <shuah@kernel.org> Link: https://lkml.kernel.org/r/CAGXu5j+8CVz8vL51DRYXqOY=xc3zuKFf=PTENe88XYHzFYidUQ@mail.gmail.comSigned-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Michael Ellerman 提交于
The "Sync framework" test doesn't work if the kernel has no support, obviously. Rather than reporting a failure, check for the kernel support by looking for /sys/kernel/debug/sync/sw_sync, and if not found skip the test. Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au> Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.com> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Michal Suchanek 提交于
Arm64 has 256TB address space so fix the test to pass on Arm as well. Also remove unneeded numaif header. Signed-off-by: NMichal Suchanek <msuchanek@suse.de> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
由 Naresh Kamboju 提交于
Most of the tests under selftests follow a pattern for their results, which can then be parsed easily by other external tools easily. Though futex tests do print the test results very well, it doesn't really follow the general selftests pattern. This patch makes necessary changes to fix that. Output before this patch: futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns Result: PASS Output after this patch: futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns selftests: futex-requeue-pi [PASS] Signed-off-by: NNaresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
-
- 05 6月, 2017 5 次提交
-
-
由 Linus Torvalds 提交于
-
由 Richard Narron 提交于
This fixes a problem with reading files larger than 2GB from a UFS-2 file system: https://bugzilla.kernel.org/show_bug.cgi?id=195721 The incorrect UFS s_maxsize limit became a problem as of commit c2a9737f ("vfs,mm: fix a dead loop in truncate_inode_pages_range()") which started using s_maxbytes to avoid a page index overflow in do_generic_file_read(). That caused files to be truncated on UFS-2 file systems because the default maximum file size is 2GB (MAX_NON_LFS) and UFS didn't update it. Here I simply increase the default to a common value used by other file systems. Signed-off-by: NRichard Narron <comet.berkeley@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Will B <will.brokenbourgh2877@gmail.com> Cc: Theodore Ts'o <tytso@mit.edu> Cc: <stable@vger.kernel.org> # v4.9 and backports of c2a9737fSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
git://git.linux-nfs.org/projects/trondmy/linux-nfs由 Linus Torvalds 提交于
Pull NFS client bugfixes from Trond Myklebust: "Bugfixes include: - Fix a typo in commit e0926934 ("NFS append COMMIT after synchronous COPY") that breaks copy offload - Fix the connect error propagation in xs_tcp_setup_socket() - Fix a lock leak in nfs40_walk_client_list - Verify that pNFS requests lie within the offset range of the layout segment" * tag 'nfs-for-4.12-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: nfs: Mark unnecessarily extern functions as static SUNRPC: ensure correct error is reported by xs_tcp_setup_socket() NFSv4.0: Fix a lock leak in nfs40_walk_client_list pnfs: Fix the check for requests in range of layout segment xprtrdma: Delete an error message for a failed memory allocation in xprt_rdma_bc_setup() pNFS/flexfiles: missing error code in ff_layout_alloc_lseg() NFS fix COMMIT after COPY
-
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty由 Linus Torvalds 提交于
Pull tty fix from Greg KH: "Here is a single tty core fix for 4.12-rc4. It reverts a patch that a lot of people reported as causing lockdep and other warnings. Right after I reverted this in my tree, it seems like another "correct" fix might have shown up, but it's too late in the release cycle to be messing with tty core locking, so let's just revert this for now to go back how things always have been and try it again for 4.13. This has not been in linux-next as I only reverted it a few hours ago" * tag 'tty-4.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: Revert "tty: fix port buffer locking"
-
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input由 Linus Torvalds 提交于
Pull input subsystem fixes from Dmitry Torokhov: - a couple of regression fixes in synaptics and axp20x-pek drivers - try to ease transition from PS/2 to RMI for Synaptics touchpad users by ensuring we do not try to activate RMI mode when RMI SMBus support is not enabled, and nag users a bit to enable it - plus a couple of other changes that seemed worthwhile for this release * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: axp20x-pek - switch to acpi_dev_present and check for ACPI0011 too Input: axp20x-pek - only check for "INTCFD9" ACPI device on Cherry Trail Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL Input: synaptics - tell users to report when they should be using rmi-smbus Input: synaptics - warn the users when there is a better mode Input: synaptics - keep PS/2 around when RMI4_SMB is not enabled Input: synaptics - clear device info before filling in Input: silead - disable interrupt during suspend
-