Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143817391
D4927.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4927.diff
View Options
Index: head/usr.bin/numactl/numactl.c
===================================================================
--- head/usr.bin/numactl/numactl.c
+++ head/usr.bin/numactl/numactl.c
@@ -133,7 +133,7 @@
}
static int
-set_numa_domain_cpuaffinity(int cpu_domain)
+set_numa_domain_cpuaffinity(int cpu_domain, cpuwhich_t which, id_t id)
{
cpuset_t set;
int error;
@@ -142,8 +142,8 @@
cpu_domain, sizeof(set), &set);
if (error != 0)
err(1, "cpuset_getaffinity");
- error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
- sizeof(set), &set);
+ error = cpuset_setaffinity(CPU_LEVEL_WHICH, which, id, sizeof(set),
+ &set);
if (error != 0)
err(1, "cpuset_setaffinity");
@@ -228,7 +228,8 @@
/* If a CPU domain policy was given, include that too */
if (cpu_domain != -1)
- (void) set_numa_domain_cpuaffinity(cpu_domain);
+ (void) set_numa_domain_cpuaffinity(cpu_domain,
+ CPU_WHICH_PID, -1);
errno = 0;
execvp(*argv, argv);
@@ -278,7 +279,7 @@
/* If a CPU domain policy was given, include that too */
if (cpu_domain != -1)
- (void) set_numa_domain_cpuaffinity(cpu_domain);
+ (void) set_numa_domain_cpuaffinity(cpu_domain, which, id);
exit(0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 3:23 PM (5 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28399170
Default Alt Text
D4927.diff (1 KB)
Attached To
Mode
D4927: numactl: fix CPU affinity when modifying an existing process or thread
Attached
Detach File
Event Timeline
Log In to Comment