X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=libringbuffer%2Fring_buffer_abi.c;h=3279ccd9ffc8b6e624aa564b722c8f32bfec5b01;hb=afdf9825400f1b975a98202a3e9dcbec0a572a56;hp=56423276ef9d3dd3f6552886a6aee115e7554899;hpb=a6352fd40a2090fd883a6c369144bf405c9e9ec4;p=lttng-ust.git diff --git a/libringbuffer/ring_buffer_abi.c b/libringbuffer/ring_buffer_abi.c index 56423276..3279ccd9 100644 --- a/libringbuffer/ring_buffer_abi.c +++ b/libringbuffer/ring_buffer_abi.c @@ -1,5 +1,5 @@ /* - * ring_buffer_vfs.c + * ring_buffer_abi.c * * Copyright (C) 2009-2010 - Mathieu Desnoyers * @@ -10,7 +10,7 @@ #include "backend.h" #include "frontend.h" -#include "vfs.h" +#include static int put_ulong(unsigned long val, unsigned long arg) { @@ -241,7 +241,7 @@ long lib_ring_buffer_ioctl(struct file *filp, unsigned int cmd, unsigned long ar arg); } case RING_BUFFER_FLUSH: - lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE); + lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE, handle); return 0; default: return -ENOIOCTLCMD; @@ -354,7 +354,7 @@ long lib_ring_buffer_compat_ioctl(struct file *filp, unsigned int cmd, return put_ulong(read_offset, arg); } case RING_BUFFER_FLUSH: - lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE); + lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE, handle); return 0; default: return -ENOIOCTLCMD;