Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306351 Details for
Bug 447871
prio-wake testcase failures
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
make output of prio-wake easily readable
pw.patch (text/plain), 3.45 KB, created by
IBM Bug Proxy
on 2008-05-22 08:48:31 UTC
(
hide
)
Description:
make output of prio-wake easily readable
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2008-05-22 08:48:31 UTC
Size:
3.45 KB
patch
obsolete
>This patch re-organizes the output from prio-wake to make it more >intuitive. > >Output prior to the patch: >Worker Threads: 8 > >00000125 us: RealtimeThread-6316160 pri 004 started >00001281 us: RealtimeThread-6316160 pri 004 awake >00000535 us: Master thread about to wake the workers >00000477 us: RealtimeThread-6319632 pri 011 started >00000800 us: RealtimeThread-6319632 pri 011 awake >00000446 us: RealtimeThread-6319136 pri 010 started >00000864 us: RealtimeThread-6319136 pri 010 awake >00000366 us: RealtimeThread-6318144 pri 008 started >00000743 us: RealtimeThread-6318144 pri 008 awake >00000400 us: RealtimeThread-6318640 pri 009 started >00001051 us: RealtimeThread-6318640 pri 009 awake >00000329 us: RealtimeThread-6317648 pri 007 started >00001162 us: RealtimeThread-6317648 pri 007 awake >00000272 us: RealtimeThread-6317152 pri 006 started >00001199 us: RealtimeThread-6317152 pri 006 awake >00000168 us: RealtimeThread-6316656 pri 005 started >00001223 us: RealtimeThread-6316656 pri 005 awake > >Output with the patch applied: >Worker Threads: 8 > >00000141 us: RealtimeThread-6316160 pri 004 started >00000179 us: RealtimeThread-6316656 pri 005 started >00000346 us: RealtimeThread-6317152 pri 006 started >00000446 us: RealtimeThread-6317648 pri 007 started >00000471 us: RealtimeThread-6318144 pri 008 started >00000548 us: RealtimeThread-6318640 pri 009 started >00000680 us: RealtimeThread-6319136 pri 010 started >00000754 us: RealtimeThread-6319632 pri 011 started >00000850 us: Master thread about to wake the workers >00001044 us: RealtimeThread-6319632 pri 011 awake >00001126 us: RealtimeThread-6319136 pri 010 awake >00001213 us: RealtimeThread-6318640 pri 009 awake >00001278 us: RealtimeThread-6318144 pri 008 awake >00001346 us: RealtimeThread-6317648 pri 007 awake >00001395 us: RealtimeThread-6317152 pri 006 awake >00001453 us: RealtimeThread-6316656 pri 005 awake >00001506 us: RealtimeThread-6316160 pri 004 awake > >The output being is now in now ordered in time. > >Signed-off-by: Ankita Garg <ankita@in.ibm.com> > >Index: ltp-full-20080131/testcases/realtime/func/prio-wake/prio-wake.c >=================================================================== >--- ltp-full-20080131.orig/testcases/realtime/func/prio-wake/prio-wake.c 2008-05-15 15:52:35.000000000 +0530 >+++ ltp-full-20080131/testcases/realtime/func/prio-wake/prio-wake.c 2008-05-15 15:53:58.000000000 +0530 >@@ -111,6 +111,7 @@ > > start = rt_gettime() - beginrun; > >+ printf("%08lld us: Master thread about to wake the workers\n", start/NS_PER_US); > /* start the children threads */ > rc = pthread_mutex_lock(&mutex); > rc = pthread_cond_broadcast(&cond); >@@ -118,7 +119,6 @@ > > while (running_threads > 0) > sleep(1); >- printf("%08lld us: Master thread about to wake the workers\n", start/NS_PER_US); > return NULL; > } > >@@ -141,12 +141,15 @@ > } > > start = rt_gettime() - beginrun; >+ printf("%08lld us: RealtimeThread-%03d pri %03d started\n", start/NS_PER_US, j, mypri); > > rc = pthread_mutex_lock(&mutex); > running_threads++; > rc = pthread_cond_wait(&cond, &mutex); > > wake = rt_gettime() - beginrun; >+ printf("%08lld us: RealtimeThread-%03d pri %03d awake\n", wake/NS_PER_US, j, mypri); >+ > rc = pthread_mutex_unlock(&mutex); > > rc = pthread_mutex_lock(&mutex); >@@ -157,8 +160,6 @@ > /* wait for all threads to quit */ > while (running_threads > 0) > sleep(1); >- printf("%08lld us: RealtimeThread-%03d pri %03d started\n", start/NS_PER_US, j, mypri); >- printf("%08lld us: RealtimeThread-%03d pri %03d awake\n", wake/NS_PER_US, j, mypri); > return NULL; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 447871
:
306350
| 306351