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 585832 Details for
Bug 822246
clocktest use of CPUSET_S not completely correct.
[?]
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.
[patch]
Fix sched_setaffinity error
setaffinity.patch (text/plain), 1.00 KB, created by
George Beshers
on 2012-05-21 14:37:22 UTC
(
hide
)
Description:
Fix sched_setaffinity error
Filename:
MIME Type:
Creator:
George Beshers
Created:
2012-05-21 14:37:22 UTC
Size:
1.00 KB
patch
obsolete
>diff -Naurp Orig/clocktest.c New/clocktest.c >--- Orig/clocktest.c 2012-05-17 12:44:04.854672435 -0500 >+++ New/clocktest.c 2012-05-21 09:13:02.041726445 -0500 >@@ -31,10 +31,14 @@ cpu_set_t* cpu_alloc(unsigned num_cpus){ > printf("using CPU_CALLOC\n"); > return CPU_ALLOC(num_cpus); > } >+#define cpu_zero(cpumask) CPU_ZERO_S(num_cpus, cpumask) >+#define cpu_set(cpu,cpumask) CPU_SET_S(cpu, num_cpus, cpumask) > #else > cpu_set_t* cpu_alloc(unsigned num_cpus){ > return malloc(sizeof(cpu_set_t)); > } >+#define cpu_zero(cpumask) CPU_ZERO(cpumask) >+#define cpu_set(cpu,cpumask) CPU_SET(cpu,cpumask) > #endif > > int test_clock_jitter(){ >@@ -64,8 +68,8 @@ int test_clock_jitter(){ > > for (iter=0; iter<ITERATIONS; iter++){ > for (cpu=0; cpu < num_cpus; cpu++) { >- CPU_ZERO(cpumask); CPU_SET(cpu,cpumask); >- if (setaffinity(cpumask) < 0){ >+ cpu_zero(cpumask); cpu_set(cpu,cpumask); >+ if (setaffinity(cpumask) < 0){ > perror ("sched_setaffinity"); return 1; > } > /*
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 822246
: 585832