public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [regression] sched_getaffinity fails with EINVAL in 2.6.31-rc4
@ 2009-07-27 17:16 Gregory Haskins
  2009-07-27 17:35 ` Steven Rostedt
  2009-07-27 18:12 ` David Rientjes
  0 siblings, 2 replies; 6+ messages in thread
From: Gregory Haskins @ 2009-07-27 17:16 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

I am not sure when this started, but noticed that sched_getaffinity is
not working in -rc4.

[pid  6254] sched_getaffinity(0, 128, 0x7f80586b1fe0) = -1 EINVAL
(Invalid argument)

Here is a simple program for reproduction:

#include <sched.h>

int main(void)
{
	cpu_set_t mask;
	int ret;

	ret = sched_getaffinity(0, sizeof(mask), &mask);
	if (ret < 0)
		perror("getaffinity");

	return ret;
}

If I get time, I will bisect this later today.

Regards,
-Greg


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 267 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-29  3:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 17:16 [regression] sched_getaffinity fails with EINVAL in 2.6.31-rc4 Gregory Haskins
2009-07-27 17:35 ` Steven Rostedt
2009-07-27 18:12 ` David Rientjes
2009-07-29  1:48   ` Rusty Russell
2009-07-29  3:30     ` David Rientjes
2009-07-29  3:48     ` Gregory Haskins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox