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 585859 Details for
Bug 822249
clocktest jitter test don't allow for large cpu count.
[?]
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]
Added some debug printfs w/ start, end time
debug.patch (text/plain), 1.19 KB, created by
George Beshers
on 2012-05-21 15:41:34 UTC
(
hide
)
Description:
Added some debug printfs w/ start, end time
Filename:
MIME Type:
Creator:
George Beshers
Created:
2012-05-21 15:41:34 UTC
Size:
1.19 KB
patch
obsolete
>Only in Debug/: clocktest >diff Orig/clocktest.c Debug/clocktest.c >14c14 >< #define ITERATIONS 10000 >--- >> #define ITERATIONS 1 >33a34,35 >> #define cpu_zero(cpumask) CPU_ZERO_S(num_cpus, cpumask) >> #define cpu_set(cpu,cpumask) CPU_SET_S(cpu, num_cpus, cpumask) >37a40,41 >> #define cpu_zero(cpumask) CPU_ZERO(cpumask) >> #define cpu_set(cpu,cpumask) CPU_SET(cpu,cpumask) >42c46 >< struct timespec *time; >--- >> struct timespec *time, time_start, time_end; >65a70,72 >> if (clock_gettime(CLOCK_REALTIME, &time_start) < 0) { >> perror("clock_gettime"); return 1; >> } >67,68c74,75 >< CPU_ZERO(cpumask); CPU_SET(cpu,cpumask); >< if (setaffinity(cpumask) < 0){ >--- >> cpu_zero(cpumask); cpu_set(cpu,cpumask); >> if (setaffinity(cpumask) < 0){ >79a87,89 >> if (clock_gettime(CLOCK_REALTIME, &time_end) < 0) { >> perror("clock_gettime"); return 1; >> } >90a101,109 >> printf("DEBUG time_start=%ld time_end%ld total_nsec=%ld\n\n", >> NSEC(time_start), NSEC(time_end), >> NSEC(time_end) - NSEC(time_start)); >> >> for (cpu=0; cpu < num_cpus; cpu++) { >> printf("\tcpu=%d nsec=%ld\n", cpu, >> NSEC(time[cpu]) - NSEC(time_start)); >> } >> >Only in Debug/: clocktest.c~
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 822249
: 585859 |
734372