History log of /external/ltp/testcases/misc/crash/crash02.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/misc/crash/crash02.c
829ac9d177bb1c713f1fe4266bdc44792b8c556d 08-Mar-2015 Mike Frysinger <vapier@gentoo.org> clean up some more old-style decls

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/misc/crash/crash02.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/misc/crash/crash02.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/misc/crash/crash02.c
0b9589f3f9c0345b29cfcf7da5a1253c708303eb 27-May-2014 Cyril Hrubis <chrubis@suse.cz> testcases: Constify char *msg variable.

The parse_opts() now returns const char * instead of char * this commit
fixes all warnings caused by the change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/misc/crash/crash02.c
d59a659cd639ca2780b00049d102acd2a783d585 07-Mar-2013 Caspar Zhang <caspar@casparzhang.com> s/Tst_count/tst_count/ to avoid CamelCase

when using latest checkpatch.pl, CamelCase variables are not encouraged,
this patch does a batch update to replace all var `Tst_count` with
`tst_count`.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/misc/crash/crash02.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/misc/crash/crash02.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/misc/crash/crash02.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
72521cf0741034f67dd17107453cda9a9819264c 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix more tests; remove more Tst_count externs.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
1ffecc92962736d20f878377773573f43b1f38b5 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix test.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
7d0a4a57fbcd47f72b67c08df532e8ef47f6fdae 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Cleanup style and get rid of conflicts problems.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
8fb1cdb0538640f295691929650408688537fb7f 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> More style cleanup.

Do a better job at detecting spurious leading and trailing whitespace in
branches and loop statements.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
df3eb16e38c6a163b0a7367c885679eed6140964 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Deal with a lot of annoying style nits.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/misc/crash/crash02.c
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/misc/crash/crash02.c
1b77909ea57ebbbc5be5852d259b66592c663344 25-May-2009 subrata_modak <subrata_modak> Crash02: Deal with SIGSTOP and SIGSEGV v3: Version 3 also fixed compilation failures on IA-64, since there is no SYS_fork either. It use clone2() instead. Version 2 fixed compilation failures on IA-64, because there is no SYS_vfork there. Instead, it uses clone() syscall for vfork(): clone(child_stack=0, flags=CLONE_VM|CLONE_VFORK|SIGCHLD). We have seen crash02 test can not finish due to the child process got SIGSTOP or SIGSEGV when calling random syscalls like this,
# ps aux
...
168 20121 0.0 0.0 3956 336 ? Ds 15:10 0:00 ./crash02 -e -v 100
168 20122 0.0 0.0 3956 336 ? T 15:10 0:00 ./crash02 -e -v 100
crash02 X ffff81007fb127a0 0 21272 21271 21273 (L-TLB)
ffff81004c185d58 0000000000000046 ffff81007b494e08 0000000000000002
0000000000000002 0000000000000002 ffff81007c5dc860 ffff81007fb127a0
00000d8ebb800862 000000000000c315 ffff81007c5dca48 0000000300000001
Call Trace:
[<ffffffff800235a7>] filp_close+0x5c/0x64
[<ffffffff8001595a>] do_exit+0x913/0x91f
[<ffffffff80048c18>] cpuset_exit+0x0/0x6c
[<ffffffff8002ad05>] get_signal_to_deliver+0x42c/0x45a
[<ffffffff8005a837>] do_notify_resume+0x9c/0x7af
[<ffffffff80096e2b>] specific_send_sig_info+0x44/0xac
[<ffffffff8009710e>] force_sig_info+0xae/0xb9
[<ffffffff80066eed>] do_page_fault+0x81e/0x830
[<ffffffff8005d6dc>] retint_signal+0x3d/0x79
crash02 X ffff810002376400 0 21273 21271 21272 (L-TLB)
ffff81004d201f18 0000000000000046 ffff81007b494e08 0000000000000046
0000000000000046 0000000000000002 ffff810078d3a040 ffffffff802eeae0
00000d8ebb803430 000000000001a60c ffff810078d3a228 0000000000000000
Call Trace:
[<ffffffff8001595a>] do_exit+0x913/0x91f
[<ffffffff80048c18>] cpuset_exit+0x0/0x6c
[<ffffffff8005d28d>] tracesys+0xd5/0xe0
So we use WUNTRACED option. Also, we found out that if it picks up vfork(), it will generate SIGSEGV. I am not sure what else can generate the same, so only blacklist vfork() at the moment. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/misc/crash/crash02.c
32cc0acd99e36836b13056c6d0e3e62a115678f3 22-Jun-2006 vapier <vapier> use memset() instead of bzero()
/external/ltp/testcases/misc/crash/crash02.c
865695bbc89088b9526ea9045410e5afb70a985c 28-Aug-2001 plars <plars> restructuring work done, and adding about 400 testcases
/external/ltp/testcases/misc/crash/crash02.c