summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-timerfd.c
blob: 8c5c083b4d3caadf8bc92b82910a261f3f91a16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * test for timerfd functions used by perf-kvm-stat-live
 */
#include <sys/timerfd.h>

int main(void)
{
	struct itimerspec new_value;

	int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
	if (fd < 0)
		return 1;

	if (timerfd_settime(fd, 0, &new_value, NULL) != 0)
		return 1;

	return 0;
}
ble summary='commit info' class='commit-info'> authorJoe Perches <joe@perches.com>2016-12-12 14:26:55 -0800 committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-12 20:41:52 -0800 commitfe6bce8d30a86c693bf7cfbf4759cbafd121289f (patch) tree0870fe4b44e9c2cb57a9883400cea2e7795fe05f /tools/perf/tests/parse-no-sample-id-all.c parentf082f02c4731900a5065de69eb0d8cb5aab66196 (diff)
treewide: Make remaining source files non-executable
.c and .h source files should not be executable, change the permissions to 0644. [ This would normally go through Andrew Morton, but his ancient patch-based toolchain doesn't do permission changes ] Signed-off-by: Joe Perches <joe@perches.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/tests/parse-no-sample-id-all.c')