Re: [LTP] Patch to record kernel dump message to each testcases log

hake huang
2010-10-12T12:56:35Z

[-- Attachment #1.1: Type: text/plain, Size: 582 bytes --]

Hi,

I wnat LTP to record the kernel dump message during each test case, and I
make a patch for this. Any comments?

@@ -1238,6 +1242,7 @@ write_test_end(struct tag_pgrp *running, const char
*init_status,
int term_id, struct tms *tms1, struct tms *tms2)
{
if (!strcmp(reporttype, "rts")) {
+ system("/bin/dmesg -c");
printf("%s\ninitiation_status=\"%s\"\nduration=%ld
termination_type=%s "
"termination_id=%d corefile=%s\ncutime=%d cstime=%d\n%s\n",
"<<<execution_status>>>", init_status,

Regards,

Hake

[-- Attachment #1.2: Type: text/html, Size: 717 bytes --]

[-- Attachment #2: Type: text/plain, Size: 369 bytes --]

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]