Re: [RFC][PATCH 0/5] tracing: Add new file system tracefs

From: Tejun Heo
Date: Thu Jan 22 2015 - 10:24:46 EST


On Thu, Jan 22, 2015 at 10:15:30AM -0500, Steven Rostedt wrote:
> > kernfs provides two sets of file operations. One is seq_file based
> > and the other is direct read/write. In both cases, bouncing data
> > between userland and kernel is handled by kernfs. If you already have
> > existing read write ops implemented doing custom buffer handling and
> > direct userland memory access, it'll take some adaptation but for a
> > lot of cases this would consolidate duplicate code paths.
>
> Does it also handle splice? That's a key part of the tracing code.

It doesn't yet. We can add it as a part of kernfs_syscall_ops tho
which exists to support these specialized bypass operations. kernfs
doesn't do much with these. It just passes over the calls to the
registered callbacks.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/