History log of /external/ltp/testcases/kernel/include/regen.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ed5b6ad5eb85bc03840150d65f2a0eefd9c5f9c 15-Jul-2016 Yuexi Ma <yuexima@google.com> patched the repo for a small set of succesfull build

Change-Id: I03d2b4126c913c387e6c5cfbd07bd10e67ca805c
/external/ltp/testcases/kernel/include/regen.sh
bbdb9f78378c7e038f463efa39d2470e1c51ad54 16-Mar-2016 Cyril Hrubis <chrubis@suse.cz> lib: Add new test library API

The main features are:

o The cleanup callback is not passed directly to various library functions but
is set once globally in the structure that describes a test

- this makes the test API easier to use

- also fixes a few common mistakes such as passing cleanup callback
to functions executed from a cleanup

o Most of the boilerplate code is moved to library

- no more copying standard looping code around :)

o Various resources are initialized and freed automatically when requested

- this means much less race conditions and ordering problems in cleanups

o The result reporting functions now use shared memory to propagate
test results from child processes

- writing tests in child processes is now easier than ever

+ The test-writing-guidelines.txt were updated

Many thanks to Jan who reviewed numerous respins of this patches and
provided valuable suggestions and also to Alexey who pointed out some
stupid mistakes of mine.

Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/include/regen.sh
72f78d1f7bbd29b3151b9cacd480f2059d44453e 09-Jan-2016 Khem Raj <raj.khem@gmail.com> regen.sh: Include asm/unistd.h explicitly

on musl this is not included indirectly and it results in errors like
testcases/kernel/include/linux_syscall_numbers.h:1035:25: error:
'__NR_SYSCALL_BASE' undeclared (first use in this function)
| # define __NR_readdir (__NR_SYSCALL_BASE+ 89)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
36283230cbda75c5f9acc45d1656562a2096b330 07-Dec-2015 Jan Stancek <jstancek@redhat.com> linux_syscall_numbers: add syscall number to output

Some tests don't pass __NR_* as argument directly, but use a variable.
Because ltp_syscall is a macro that stringifies "NR" argument we get
output such as: "syscall tests[i].syscall not supported on your arch".

Add syscall number to output as well.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/include/regen.sh
a0dd3db40468c9a34c39fc9ea03eeb1ca280e0cd 08-Sep-2015 Jan Stancek <jstancek@redhat.com> linux_syscall_numbers.h: speed up generation

Replace cat with echo, which should be a builtin function
for most shells. Avoiding to spawn 'cat' for every syscall
entry saves time when generating linux_syscall_numbers.h:

$ time ./regen.sh

Before:
real 0m24.642s
user 0m1.263s
sys 0m7.135s

After:
real 0m0.130s
user 0m0.241s
sys 0m0.056s

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/include/regen.sh
cc634814d1881137a19287eeaa0cf6fd15ecf4da 25-Jun-2015 Jan Stancek <jstancek@redhat.com> getrandom: fix compilation with older kernels

Add lapi/getrandom.h as fallback for GRND_* defines
Add getrandom to syscalls number list for common architectures
Replace syscall with ltp_syscall

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/include/regen.sh
fc490bf54d064d06498832ef62abf913fd8c966d 13-Aug-2014 Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> sparc64 syscall definitions' fixes

1. Changed '__sparc64__' to 'defined(__sparc__) && defined(__arch64__)'
2. Removed non-implemented syscall numbers from sparc64.in (in accordance
to linux-stable/arch/sparc/include/uapi/asm/unistd.h)
2. Re-executed regen.sh

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/include/regen.sh
65b629a7d9f26d8a3e02bf924af69079e480d928 06-May-2013 Riku Voipio <riku.voipio@linaro.org> kernel: set invalid syscall as -1 instead of 0

System call number 0 might be in use in selected syscalls.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/include/regen.sh
bce0f51df79dc56e381ebd02102603b330958dde 27-Apr-2013 Mike Frysinger <vapier@gentoo.org> kernel: include: generate headers in parallel

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/include/regen.sh
359980f68b19c77c698b121b57a071dfe6e3ca31 15-Feb-2013 Jan Stancek <jstancek@redhat.com> rename syscall() macro to ltp_syscall()

This patch renames syscall() macro defined in linux_syscall_numbers.h
to reduce confusion with syscall(2). It also updates all places
where it was previously in use.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/include/regen.sh
c3411d96b4fa4f27d0466e0774abcab6ae3f8180 19-Dec-2009 vapier <vapier> drop old __NR_perf_counter_open syscall name and force everyone to use new __NR_perf_event_open
/external/ltp/testcases/kernel/include/regen.sh
6aa2737d5de9256fcdb5b68a6aa6b12249005049 06-Dec-2009 yaberauneya <yaberauneya> Older versions of binutils / gcc don't properly grok the weak symbols solution I put in before the 200911 release, so instead implement the code using a preprocessor define (CLEANUP), which can be defined before including cleanup.c, and thus the user can specify what cleanup function they wish to use before it's defined.

This works on Ubuntu 6.02 (dapper drake) with gcc 4.0 and binutils 2.16.9, but I'm not sure if it works with older tools, as I couldn't hunt down older distro sources...

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
2c6997bb61024cfe059b5b7e9f8082ae3c8f4877 01-Dec-2009 yaberauneya <yaberauneya> testcases/kernel/include/...:
.../Makefile: Remove unneeded set -e.
.../regen.sh: Quote variables.
.../strip_syscall.awk: Add an awk script to strip syscalls from the unistd.h headers.
testcases/kernel/syscalls/Makefile: yank libevent because something's missing from the distribution and it's not compiling after running ac-clean // ac-distclean // ac-maintainer-clean. BAH.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
3e9c43ced5064156fbace7f2c31dd397654ddc22 30-Nov-2009 yaberauneya <yaberauneya> Checkin the weak handlers change, so that compiles won't error out and test writers can define cleanup at the library level or the sourcefile(s) level, such that the sourcefile level version will overwrite the library level one.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
e4a5290826d1742533427b4e28da2e4fb5a69598 26-Nov-2009 yaberauneya <yaberauneya> Implement a weak handler so that libraries (like libcontrollers) can override cleanup in the respective user code, as it's required to get past compile-time issues with pidns, et all.

This only marks the beginning of our long journey of cleaning up the cleanup defined but not used warnings...

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
5b435cb86437887cceb54f39055ceaed80760c28 26-Nov-2009 yaberauneya <yaberauneya> All syscalls that aren't implemented on target architectures should be properly reported as missing instead of showing up as failures.

Noticed by Mitani-san after he encountered several mbind(2) failures on an older kernel (2.6.9), as mbind(2) wasn't implemented until 2.6.17.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
651735da6fea157c964bfe3415154e9e11b2436a 19-Nov-2009 yaberauneya <yaberauneya> Append the PID to linux_syscall_numbers.h to avoid EBUSY / multiple file accesses with corrupt data at once if make(1) isn't doing the right thing and multiple jobs try to modify the header at the same time. This was based on personal experience with binutils and libtool modifying one file multiple times with parallel jobs via libtool.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
ef77253961f909f87e82e6d2b620e87af33e9665 09-Oct-2009 yaberauneya <yaberauneya> 1. Please see README.mk-devel for a full description of the changes
from a Make perspective.
2. Several files were changed to accomodate correct installation
practices, most notably ones in testcases/network/{ipv6,tcp_cmds},
testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items
in tools/..., and also to avoid collisions as far as installed
testcases (scripts, compiled C apps) were concerned.
3. Several apps weren't autoconf safe and some autoconf tests and
conditional statements have been placed in sourcecode and in Makefiles
to either a) prevent the tests from being built / installed or b) turn
the tests into dummy apps which print out TCONF messages due to
lack-of-build support.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/include/regen.sh
56c02145c9d98fcf92ef665243261dd9b981ac10 20-Jul-2009 vapier <vapier> move leading __NR_ to script to make all the .in files simpler
/external/ltp/testcases/kernel/include/regen.sh
115006cf220af34eb49d343bce4692382ccae941 04-Feb-2009 subrata_modak <subrata_modak> Fix build failures of some new syscall tests on non-x86 archs: I report build failures of some new syscall tests introduced in ltp-full-20090131. Failures happen on non-x86 arch systems.I made a patch for it; stopping #error macro and including linux_syscall_numbers.h instead. Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>.
/external/ltp/testcases/kernel/include/regen.sh
8c28dd56a7baefb0e5494fca7c26425336a895ec 12-Nov-2008 vapier <vapier> generate stub list on the fly based on *.in files
/external/ltp/testcases/kernel/include/regen.sh
1d76c753d7a74f71c40c9307b022cefc042729a3 12-Nov-2008 vapier <vapier> make syscall() wrapper a bit more readable
/external/ltp/testcases/kernel/include/regen.sh
24fc21390fe719f9f71d6e3bd707fce4f0826164 11-Nov-2008 subrata_modak <subrata_modak> when building Debian ltp package on alpha, the package failed to build, because alpha lacks some of the syscalls (the xxx_16 ones). See:
http://experimental.debian.net/fetch.php?&pkg=ltp&ver=20081031%2Bdfsg-1&arch=alpha&stamp=1225968365&file=log&as=raw
I have created some patches, which fix this behaviour (ie. the build doesn't fail then). They work like this:
1. Syscalls which are potentially missing on some architectures are listed in the stub-list,
2. If a syscall(x) is called and x is 0 (a value of undefined stub syscalls), the test is aborted by tst_brk(). This is accomplished by a macro wrapper over the syscall() function (this almost eliminates the need of changing the tests in question, and allows the compiler to eliminate parts of tests of nonexistent syscalls as dead code). The attached patches implement this. Some remarks:
- the syscalls added to the stub list are the ones which appear in the kernel sources as __IGNORE_name-of-syscall,
- the macro is for gcc only. The test using this mechanism (ie. #including linux_syscall_numbers.h and calling syscall()) must define static function void cleanup(void) to be called when the syscall is missing (the patch also handles this for tests that lack it).
Signed-off-by: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/include/regen.sh
5002f731204cad24f9d30ff35ed31dd0eec51af4 03-Nov-2008 vapier <vapier> check input files and abort if broken line is found
/external/ltp/testcases/kernel/include/regen.sh
2084d4433e5f9e69d02f3fd60f51d570aed069c9 16-Oct-2008 subrata_modak <subrata_modak> Hello. I had two errors when compiling the CVS version with Ubuntu. The one in regen.sh might have to do with some dash limitation (it complains about not supporting more than 32 shifts.) The one with the Makefile has to do with the version of lex I have here (lex 2.5.33) complaining about -l not accepting an extra argument (I believe it interprets the w as such). I did a quick check after applying the changes and they seem not to break anything. Signed-Off-By: Elder Costa <elder.costa@terra.com.br>.
/external/ltp/testcases/kernel/include/regen.sh
6153b207018cbec3a5aa5d552d8ccd9f2bf03e20 07-Dec-2007 vapier <vapier> use caps in "generated warning" since people dont read comments
/external/ltp/testcases/kernel/include/regen.sh
ab7f81e10a7b4f28dad6e7536fb19978a3abe93f 13-Mar-2007 vapier <vapier> make sure people dont try and patch the generated file
/external/ltp/testcases/kernel/include/regen.sh
51f039e807d447c69e07ce68138e8db3471cc964 10-Sep-2006 vapier <vapier> break out ugly linux __NR_ logic here
/external/ltp/testcases/kernel/include/regen.sh