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 313441 Details for
Bug 457909
sched_football fails with MRG -69 kernel on LS21 machine in fairly long run
[?]
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.
Fix synchronization in the test
sf.patch (text/plain), 1.46 KB, created by
IBM Bug Proxy
on 2008-08-05 11:10:32 UTC
(
hide
)
Description:
Fix synchronization in the test
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2008-08-05 11:10:32 UTC
Size:
1.46 KB
patch
obsolete
>Index: ltp/testcases/realtime/func/sched_football/sched_football.c >=================================================================== >--- ltp.orig/testcases/realtime/func/sched_football/sched_football.c 2008-07-30 22:38:13.000000000 -0700 >+++ ltp/testcases/realtime/func/sched_football/sched_football.c 2008-07-31 22:50:01.000000000 -0700 >@@ -79,6 +79,7 @@ > > /* simple mutex for our atomic increments */ > pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; >+pthread_barrier_t barrier; > > static int run_jvmsim=0; > static int players_per_team = 0; >@@ -125,6 +126,8 @@ > defense_count++; > pthread_mutex_unlock(&mutex); > >+ pthread_barrier_wait(&barrier); >+ > /*keep the ball from being moved */ > while (1) { > sched_yield(); /* let other defenders run */ >@@ -140,6 +143,8 @@ > offense_count++; > pthread_mutex_unlock(&mutex); > >+ pthread_barrier_wait(&barrier); >+ > while (1) { > the_ball++; /* move the ball ahead one yard */ > sched_yield(); /* let other offensive players run */ >@@ -158,6 +163,8 @@ > now = start; > the_ball = 0; > >+ pthread_barrier_wait(&barrier); >+ > /* Watch the game */ > while ((now.tv_sec - start.tv_sec) < game_length) { > sleep(1); >@@ -189,6 +196,11 @@ > printf("jvmsim disabled\n"); > } > >+ if ((i = pthread_barrier_init(&barrier, NULL, players_per_team*2 + 1))) { >+ printf("pthread_barrier_init failed: %s\n", strerror(i)); >+ exit(i); >+ } >+ > printf("Running with: players_per_team=%d game_length=%d\n", > players_per_team, game_length); >
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 457909
:
313440
| 313441 |
348969
|
348970
|
349102
|
349154
|
349178