All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] misc trinity patches
@ 2013-06-30 19:33 Tommi Rantala
  2013-06-30 19:33 ` [PATCH 1/8] Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c Tommi Rantala
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

Hello, some fairly small trinity patches, please take a look.

Thanks,
Tommi

Tommi Rantala (8):
  Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c
  Fix open() result check in check_tainted()
  Avoid needless get_filename() calls in generate_pathname()
  Fix double rand() in generate_pathname()
  move perf_event.h to include/
  msgrcv() and msgsnd() IPC_NOWAIT msgflg
  ioctls/drm: add deprecated nouveau ioctls
  ioctls/vhost: VHOST_SCSI_* ioctls

 files.c                            |   5 +-
 {syscalls => include}/perf_event.h |   0
 ioctls/drm.c                       | 102 +++++++++++++++++++++++++++++++++++++
 ioctls/vhost.c                     |  15 ++++++
 main.c                             |   2 +-
 syscalls/msgrcv.c                  |   4 +-
 syscalls/msgsnd.c                  |   4 +-
 syscalls/socket.c                  |   2 +-
 8 files changed, 125 insertions(+), 9 deletions(-)
 rename {syscalls => include}/perf_event.h (100%)

-- 
1.8.1.4

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

* [PATCH 1/8] Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 2/8] Fix open() result check in check_tainted() Tommi Rantala
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

---
 syscalls/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syscalls/socket.c b/syscalls/socket.c
index 26e3a6e..3601c04 100644
--- a/syscalls/socket.c
+++ b/syscalls/socket.c
@@ -47,7 +47,7 @@ void sanitise_socket(int childno)
 	if (do_specific_proto == TRUE)
 		family = specific_proto;
 	else
-		family = rand() % PF_MAX;
+		family = rand() % TRINITY_PF_MAX;
 
 	type = rand() % TYPE_MAX;
 	protocol = rand() % PROTO_MAX;
-- 
1.8.1.4

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

* [PATCH 2/8] Fix open() result check in check_tainted()
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
  2013-06-30 19:33 ` [PATCH 1/8] Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 3/8] Avoid needless get_filename() calls in generate_pathname() Tommi Rantala
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 648e56d..0e58433 100644
--- a/main.c
+++ b/main.c
@@ -57,7 +57,7 @@ int check_tainted(void)
 	char buffer[4];
 
 	fd = open("/proc/sys/kernel/tainted", O_RDONLY);
-	if (!fd)
+	if (fd < 0)
 		return -1;
 	ret = read(fd, buffer, 3);
 	close(fd);
-- 
1.8.1.4

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

* [PATCH 3/8] Avoid needless get_filename() calls in generate_pathname()
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
  2013-06-30 19:33 ` [PATCH 1/8] Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c Tommi Rantala
  2013-06-30 19:33 ` [PATCH 2/8] Fix open() result check in check_tainted() Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 4/8] Fix double rand() " Tommi Rantala
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

---
 files.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/files.c b/files.c
index 89a11d4..3319eef 100644
--- a/files.c
+++ b/files.c
@@ -363,13 +363,13 @@ char * generate_pathname(void)
 	case 0 ... 90:
 		/* 90% chance of returning an unmangled filename */
 		if ((rand() % 100) > 10)
-			return get_filename();
+			return pathname;
 
 	case 91 ... 99:
 		/* Create a bogus filename. */
 		newpath = malloc(page_size);	// FIXME: We leak this.
 		if (newpath == NULL)
-			return get_filename();	// give up.
+			return pathname;	// give up.
 
 		generate_random_page(newpath);
 
-- 
1.8.1.4

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

* [PATCH 4/8] Fix double rand() in generate_pathname()
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
                   ` (2 preceding siblings ...)
  2013-06-30 19:33 ` [PATCH 3/8] Avoid needless get_filename() calls in generate_pathname() Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 5/8] move perf_event.h to include/ Tommi Rantala
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

We take 90% chance two times in the "unmangled" path in
generate_pathname(); looks accidental to me.
---
 files.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/files.c b/files.c
index 3319eef..ef44ee2 100644
--- a/files.c
+++ b/files.c
@@ -362,8 +362,7 @@ char * generate_pathname(void)
 
 	case 0 ... 90:
 		/* 90% chance of returning an unmangled filename */
-		if ((rand() % 100) > 10)
-			return pathname;
+		return pathname;
 
 	case 91 ... 99:
 		/* Create a bogus filename. */
-- 
1.8.1.4

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

* [PATCH 5/8] move perf_event.h to include/
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
                   ` (3 preceding siblings ...)
  2013-06-30 19:33 ` [PATCH 4/8] Fix double rand() " Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 23:29   ` Dave Jones
  2013-06-30 19:33 ` [PATCH 6/8] msgrcv() and msgsnd() IPC_NOWAIT msgflg Tommi Rantala
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

The perf header will be used also in a few other places beyond syscalls,
so move it to the include/ directory so that it is easily available.
---
 {syscalls => include}/perf_event.h | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {syscalls => include}/perf_event.h (100%)

diff --git a/syscalls/perf_event.h b/include/perf_event.h
similarity index 100%
rename from syscalls/perf_event.h
rename to include/perf_event.h
-- 
1.8.1.4

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

* [PATCH 6/8] msgrcv() and msgsnd() IPC_NOWAIT msgflg
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
                   ` (4 preceding siblings ...)
  2013-06-30 19:33 ` [PATCH 5/8] move perf_event.h to include/ Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 7/8] ioctls/drm: add deprecated nouveau ioctls Tommi Rantala
  2013-06-30 19:33 ` [PATCH 8/8] ioctls/vhost: VHOST_SCSI_* ioctls Tommi Rantala
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

---
 syscalls/msgrcv.c | 4 ++--
 syscalls/msgsnd.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/syscalls/msgrcv.c b/syscalls/msgrcv.c
index b730ba6..2200472 100644
--- a/syscalls/msgrcv.c
+++ b/syscalls/msgrcv.c
@@ -17,7 +17,7 @@ struct syscall syscall_msgrcv = {
 	.arg5name = "msgflg",
 	.arg5type = ARG_LIST,
 	.arg5list = {
-		.num = 3,
-		.values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY },
+		.num = 4,
+		.values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY, IPC_NOWAIT },
 	},
 };
diff --git a/syscalls/msgsnd.c b/syscalls/msgsnd.c
index 132336b..3e3a91d 100644
--- a/syscalls/msgsnd.c
+++ b/syscalls/msgsnd.c
@@ -16,7 +16,7 @@ struct syscall syscall_msgsnd = {
 	.arg4name = "msgflg",
 	.arg4type = ARG_LIST,
 	.arg4list = {
-		.num = 3,
-		.values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY },
+		.num = 4,
+		.values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY, IPC_NOWAIT },
 	},
 };
-- 
1.8.1.4

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

* [PATCH 7/8] ioctls/drm: add deprecated nouveau ioctls
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
                   ` (5 preceding siblings ...)
  2013-06-30 19:33 ` [PATCH 6/8] msgrcv() and msgsnd() IPC_NOWAIT msgflg Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  2013-06-30 19:33 ` [PATCH 8/8] ioctls/vhost: VHOST_SCSI_* ioctls Tommi Rantala
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

nouveau has some deprecated ioctls that the kernel implements, but the
ioctl definitions are no longer available in the kernel headers.
---
 ioctls/drm.c | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)

diff --git a/ioctls/drm.c b/ioctls/drm.c
index 736c264..952a356 100644
--- a/ioctls/drm.c
+++ b/ioctls/drm.c
@@ -45,6 +45,101 @@
 #define DRM_IOCTL_SIS_FLIP_FINAL	DRM_IO(  0x50)
 */
 
+/* deprecated nouveau ioctls */
+/*
+ * Copyright 2005 Stephane Marchesin.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef DRM_IOCTL_NOUVEAU_GETPARAM
+struct drm_nouveau_getparam {
+	uint64_t param;
+	uint64_t value;
+};
+#define DRM_IOCTL_NOUVEAU_GETPARAM           DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GETPARAM, struct drm_nouveau_getparam)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_SETPARAM
+struct drm_nouveau_setparam {
+	uint64_t param;
+	uint64_t value;
+};
+#define DRM_IOCTL_NOUVEAU_SETPARAM           DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_SETPARAM, struct drm_nouveau_setparam)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC
+struct drm_nouveau_channel_alloc {
+	uint32_t     fb_ctxdma_handle;
+	uint32_t     tt_ctxdma_handle;
+
+	int          channel;
+	uint32_t     pushbuf_domains;
+
+	/* Notifier memory */
+	uint32_t     notifier_handle;
+
+	/* DRM-enforced subchannel assignments */
+	struct {
+		uint32_t handle;
+		uint32_t grclass;
+	} subchan[8];
+	uint32_t nr_subchan;
+};
+#define DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC      DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_CHANNEL_ALLOC, struct drm_nouveau_channel_alloc)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_CHANNEL_FREE
+struct drm_nouveau_channel_free {
+	int channel;
+};
+#define DRM_IOCTL_NOUVEAU_CHANNEL_FREE       DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_CHANNEL_FREE, struct drm_nouveau_channel_free)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_GROBJ_ALLOC
+struct drm_nouveau_grobj_alloc {
+	int      channel;
+	uint32_t handle;
+	int      class;
+};
+#define DRM_IOCTL_NOUVEAU_GROBJ_ALLOC        DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GROBJ_ALLOC, struct drm_nouveau_grobj_alloc)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_NOTIFIEROBJ_ALLOC
+struct drm_nouveau_notifierobj_alloc {
+	uint32_t channel;
+	uint32_t handle;
+	uint32_t size;
+	uint32_t offset;
+};
+#define DRM_IOCTL_NOUVEAU_NOTIFIEROBJ_ALLOC  DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_NOTIFIEROBJ_ALLOC, struct drm_nouveau_notifierobj_alloc)
+#endif
+
+#ifndef DRM_IOCTL_NOUVEAU_GPUOBJ_FREE
+struct drm_nouveau_gpuobj_free {
+	int      channel;
+	uint32_t handle;
+};
+#define DRM_IOCTL_NOUVEAU_GPUOBJ_FREE        DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GPUOBJ_FREE, struct drm_nouveau_gpuobj_free)
+#endif
+
 typedef struct {
 	int context;
 	unsigned long offset;
@@ -294,6 +389,13 @@ static const struct ioctl drm_ioctls[] = {
 	IOCTL(DRM_IOCTL_MGA_DMA_BOOTSTRAP),
 
 	/* nouveau_drm.h */
+	IOCTL(DRM_IOCTL_NOUVEAU_GETPARAM),
+	IOCTL(DRM_IOCTL_NOUVEAU_SETPARAM),
+	IOCTL(DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC),
+	IOCTL(DRM_IOCTL_NOUVEAU_CHANNEL_FREE),
+	IOCTL(DRM_IOCTL_NOUVEAU_GROBJ_ALLOC),
+	IOCTL(DRM_IOCTL_NOUVEAU_NOTIFIEROBJ_ALLOC),
+	IOCTL(DRM_IOCTL_NOUVEAU_GPUOBJ_FREE),
 #ifdef DRM_IOCTL_NOUVEAU_GEM_NEW
 	IOCTL(DRM_IOCTL_NOUVEAU_GEM_NEW),
 #endif
-- 
1.8.1.4

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

* [PATCH 8/8] ioctls/vhost: VHOST_SCSI_* ioctls
  2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
                   ` (6 preceding siblings ...)
  2013-06-30 19:33 ` [PATCH 7/8] ioctls/drm: add deprecated nouveau ioctls Tommi Rantala
@ 2013-06-30 19:33 ` Tommi Rantala
  7 siblings, 0 replies; 13+ messages in thread
From: Tommi Rantala @ 2013-06-30 19:33 UTC (permalink / raw)
  To: davej; +Cc: trinity, Tommi Rantala

---
 ioctls/vhost.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ioctls/vhost.c b/ioctls/vhost.c
index 58a8b09..3842678 100644
--- a/ioctls/vhost.c
+++ b/ioctls/vhost.c
@@ -22,6 +22,21 @@ static const struct ioctl vhost_ioctls[] = {
 	IOCTL(VHOST_SET_VRING_CALL),
 	IOCTL(VHOST_SET_VRING_ERR),
 	IOCTL(VHOST_NET_SET_BACKEND),
+#ifdef VHOST_SCSI_SET_ENDPOINT
+	IOCTL(VHOST_SCSI_SET_ENDPOINT),
+#endif
+#ifdef VHOST_SCSI_CLEAR_ENDPOINT
+	IOCTL(VHOST_SCSI_CLEAR_ENDPOINT),
+#endif
+#ifdef VHOST_SCSI_GET_ABI_VERSION
+	IOCTL(VHOST_SCSI_GET_ABI_VERSION),
+#endif
+#ifdef VHOST_SCSI_SET_EVENTS_MISSED
+	IOCTL(VHOST_SCSI_SET_EVENTS_MISSED),
+#endif
+#ifdef VHOST_SCSI_GET_EVENTS_MISSED
+	IOCTL(VHOST_SCSI_GET_EVENTS_MISSED),
+#endif
 };
 
 static const char *const vhost_devs[] = {
-- 
1.8.1.4

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

* Re: [PATCH 5/8] move perf_event.h to include/
  2013-06-30 19:33 ` [PATCH 5/8] move perf_event.h to include/ Tommi Rantala
@ 2013-06-30 23:29   ` Dave Jones
  2013-07-01 14:35     ` Tommi Rantala
  0 siblings, 1 reply; 13+ messages in thread
From: Dave Jones @ 2013-06-30 23:29 UTC (permalink / raw)
  To: Tommi Rantala; +Cc: trinity

On Sun, Jun 30, 2013 at 10:33:09PM +0300, Tommi Rantala wrote:
 > The perf header will be used also in a few other places beyond syscalls,
 > so move it to the include/ directory so that it is easily available.
 > ---
 >  {syscalls => include}/perf_event.h | 0
 >  1 file changed, 0 insertions(+), 0 deletions(-)
 >  rename {syscalls => include}/perf_event.h (100%)
 > 
 > diff --git a/syscalls/perf_event.h b/include/perf_event.h
 > similarity index 100%
 > rename from syscalls/perf_event.h
 > rename to include/perf_event.h

can you elaborate on this one ?

	Dave

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

* Re: [PATCH 5/8] move perf_event.h to include/
  2013-06-30 23:29   ` Dave Jones
@ 2013-07-01 14:35     ` Tommi Rantala
  2013-07-01 14:43       ` Dave Jones
  0 siblings, 1 reply; 13+ messages in thread
From: Tommi Rantala @ 2013-07-01 14:35 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

2013/7/1 Dave Jones <davej@redhat.com>:
> On Sun, Jun 30, 2013 at 10:33:09PM +0300, Tommi Rantala wrote:
>  > The perf header will be used also in a few other places beyond syscalls,
>  > so move it to the include/ directory so that it is easily available.
>  > ---
>  >  {syscalls => include}/perf_event.h | 0
>  >  1 file changed, 0 insertions(+), 0 deletions(-)
>  >  rename {syscalls => include}/perf_event.h (100%)
>  >
>  > diff --git a/syscalls/perf_event.h b/include/perf_event.h
>  > similarity index 100%
>  > rename from syscalls/perf_event.h
>  > rename to include/perf_event.h
>
> can you elaborate on this one ?

I'm working on some patches (that I hope to finish sometime soon) to
open more types of file descriptors at Trinity startup, and this
header will be useful for that purpose. (Might also be possible to use
something from syscalls/perf_event_open.c, and perhaps avoid requiring
the header, but did not look into that.)

I also want the ioctl definitions from the header (in code living in ioctls/).

Tommi

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

* Re: [PATCH 5/8] move perf_event.h to include/
  2013-07-01 14:35     ` Tommi Rantala
@ 2013-07-01 14:43       ` Dave Jones
  2013-07-01 15:30         ` Vince Weaver
  0 siblings, 1 reply; 13+ messages in thread
From: Dave Jones @ 2013-07-01 14:43 UTC (permalink / raw)
  To: Tommi Rantala; +Cc: trinity

On Mon, Jul 01, 2013 at 05:35:05PM +0300, Tommi Rantala wrote:
 > 2013/7/1 Dave Jones <davej@redhat.com>:
 > > can you elaborate on this one ?
 > 
 > I'm working on some patches (that I hope to finish sometime soon) to
 > open more types of file descriptors at Trinity startup

Ah, excellent. I was thinking of that after seeing your hack a while back
for epoll descriptors. Looking forward to it. (And glad I don't have to
do it now ;)

 > and this header will be useful for that purpose. (Might also be possible to use
 > something from syscalls/perf_event_open.c, and perhaps avoid requiring
 > the header, but did not look into that.)
 > 
 > I also want the ioctl definitions from the header (in code living in ioctls/).

Sounds good, I'll merge it and the other patches in a while.

	Dave

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

* Re: [PATCH 5/8] move perf_event.h to include/
  2013-07-01 14:43       ` Dave Jones
@ 2013-07-01 15:30         ` Vince Weaver
  0 siblings, 0 replies; 13+ messages in thread
From: Vince Weaver @ 2013-07-01 15:30 UTC (permalink / raw)
  To: Dave Jones; +Cc: Tommi Rantala, trinity

On Mon, 1 Jul 2013, Dave Jones wrote:
> On Mon, Jul 01, 2013 at 05:35:05PM +0300, Tommi Rantala wrote:
>  > I also want the ioctl definitions from the header (in code living in ioctls/).
> 
> Sounds good, I'll merge it and the other patches in a while.

I looked into adding the perf_event ioctls myself, but got lost a bit in 
trinity's ioctl code.  It seems to expect you are opening a file in /dev
to operate on, and perf_event ioctls don't work that way.  I could have 
been misunderstanding what it is doing though.

In any case, feel free to steal code from my perf_fuzzer which exercises 
all of the perf_event ioctls, although I need to add in code to explicitly 
fuzz the PERF_IOC_FLAG_GROUP ioctl paramater which I somehow didn't learn 
about until a few days ago.

Vince

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

end of thread, other threads:[~2013-07-01 15:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-30 19:33 [PATCH 0/8] misc trinity patches Tommi Rantala
2013-06-30 19:33 ` [PATCH 1/8] Use TRINITY_PF_MAX instead of PF_MAX in syscalls/socket.c Tommi Rantala
2013-06-30 19:33 ` [PATCH 2/8] Fix open() result check in check_tainted() Tommi Rantala
2013-06-30 19:33 ` [PATCH 3/8] Avoid needless get_filename() calls in generate_pathname() Tommi Rantala
2013-06-30 19:33 ` [PATCH 4/8] Fix double rand() " Tommi Rantala
2013-06-30 19:33 ` [PATCH 5/8] move perf_event.h to include/ Tommi Rantala
2013-06-30 23:29   ` Dave Jones
2013-07-01 14:35     ` Tommi Rantala
2013-07-01 14:43       ` Dave Jones
2013-07-01 15:30         ` Vince Weaver
2013-06-30 19:33 ` [PATCH 6/8] msgrcv() and msgsnd() IPC_NOWAIT msgflg Tommi Rantala
2013-06-30 19:33 ` [PATCH 7/8] ioctls/drm: add deprecated nouveau ioctls Tommi Rantala
2013-06-30 19:33 ` [PATCH 8/8] ioctls/vhost: VHOST_SCSI_* ioctls Tommi Rantala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.