Re: [PATCH v2] Add virtio-input driver.

2015-03-20 Thread Dmitry Torokhov
Hi Gerd, On Fri, Mar 20, 2015 at 01:39:29PM +0100, Gerd Hoffmann wrote: > virtio-input is basically evdev-events-over-virtio, so this driver isn't > much more than reading configuration from config space and forwarding > incoming events to the linux input layer. > > Signed-off-by: Gerd Hoffmann

Re: [PATCH v9 tip 0/9] tracing: attach eBPF programs to kprobes

2015-03-20 Thread Steven Rostedt
On Fri, 20 Mar 2015 16:30:01 -0700 Alexei Starovoitov wrote: > Hi Ingo, > > I think it's good to go. > Patch 1 is already in net-next. Patch 3 depends on it. > I'm assuming it's not going to be a problem during merge window. > Patch 3 will have a minor conflict in uapi/linux/bpf.h in linux-next,

[PATCH v9 tip 1/9] bpf: make internal bpf API independent of CONFIG_BPF_SYSCALL ifdefs

2015-03-20 Thread Alexei Starovoitov
From: Daniel Borkmann Socket filter code and other subsystems with upcoming eBPF support should not need to deal with the fact that we have CONFIG_BPF_SYSCALL defined or not. Having the bpf syscall as a config option is a nice thing and I'd expect it to stay that way for expert users (I presume

[PATCH v9 tip 6/9] samples: bpf: simple non-portable kprobe filter example

2015-03-20 Thread Alexei Starovoitov
tracex1_kern.c - C program compiled into BPF. It attaches to kprobe:netif_receive_skb When skb->dev->name == "lo", it prints sample debug message into trace_pipe via bpf_trace_printk() helper function. tracex1_user.c - corresponding user space component that: - loads bpf program via bpf() syscall

[PATCH v9 tip 2/9] tracing: add kprobe flag

2015-03-20 Thread Alexei Starovoitov
add TRACE_EVENT_FL_KPROBE flag to differentiate kprobe type of tracepoints, since bpf programs can only be attached to kprobe type of PERF_TYPE_TRACEPOINT perf events. Signed-off-by: Alexei Starovoitov Reviewed-by: Steven Rostedt --- include/linux/ftrace_event.h |3 +++ kernel/trace/trace_k

[PATCH v9 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-20 Thread Alexei Starovoitov
User interface: struct perf_event_attr attr = {.type = PERF_TYPE_TRACEPOINT, .config = event_id, ...}; event_fd = perf_event_open(&attr,...); ioctl(event_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd is a file descriptor associated with BPF program previously loaded. event_id is an ID of created

[PATCH v9 tip 7/9] samples: bpf: counting example for kfree_skb and write syscall

2015-03-20 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space pr

[PATCH v9 tip 4/9] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-20 Thread Alexei Starovoitov
bpf_ktime_get_ns() is used by programs to compute time delta between events or as a timestamp Signed-off-by: Alexei Starovoitov Reviewed-by: Steven Rostedt --- include/uapi/linux/bpf.h |1 + kernel/trace/bpf_trace.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/incl

[PATCH v9 tip 8/9] samples: bpf: IO latency analysis (iosnoop/heatmap)

2015-03-20 Thread Alexei Starovoitov
BPF C program attaches to blk_mq_start_request/blk_update_request kprobe events to calculate IO latency. For every completed block IO event it computes the time delta in nsec and records in a histogram map: map[log10(delta)*10]++ User space reads this histogram map every 2 seconds and prints it as

[PATCH v9 tip 9/9] samples: bpf: kmem_alloc/free tracker

2015-03-20 Thread Alexei Starovoitov
One bpf program attaches to kmem_cache_alloc_node() and remembers all allocated objects in the map. Another program attaches to kmem_cache_free() and deletes corresponding object from the map. User space walks the map every second and prints any objects which are older than 1 second. Usage: $ sud

[PATCH v9 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-20 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk b

[PATCH v9 tip 0/9] tracing: attach eBPF programs to kprobes

2015-03-20 Thread Alexei Starovoitov
Hi Ingo, I think it's good to go. Patch 1 is already in net-next. Patch 3 depends on it. I'm assuming it's not going to be a problem during merge window. Patch 3 will have a minor conflict in uapi/linux/bpf.h in linux-next, since net-next has added new lines to the bpf_prog_type and bpf_func_id en

Re: [PATCH V7] Allow compaction of unevictable pages

2015-03-20 Thread Andrew Morton
On Fri, 20 Mar 2015 09:49:50 -0400 Eric B Munson wrote: > Documentation/sysctl/vm.txt | 11 +++ > include/linux/compaction.h |1 + > kernel/sysctl.c |9 + > mm/compaction.c |7 +++ Documentation/vm/unevictable-lru.txt might benefit from

Re: [PATCH V7] Allow compaction of unevictable pages

2015-03-20 Thread Andrew Morton
On Fri, 20 Mar 2015 09:49:50 -0400 Eric B Munson wrote: > Currently, pages which are marked as unevictable are protected from > compaction, but not from other types of migration. The POSIX real time > extension explicitly states that mlock() will prevent a major page > fault, but the spirit of t

Re: [PATCH v8 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-20 Thread Alexei Starovoitov
On 3/20/15 2:22 PM, Steven Rostedt wrote: +/* limited trace_printk() + * only %d %u %x %ld %lu %lx %lld %llu %llx %p conversion specifiers allowed + */ Ah! Again, don't contaminate the rest of the kernel with net comment styles! :-) ok :) + } else if (fmt[i] == 'p') { +

Re: [PATCH v8 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-20 Thread Alexei Starovoitov
On 3/20/15 2:09 PM, Steven Rostedt wrote: +/** + * trace_call_bpf - invoke BPF program + * @prog - BPF program + * @ctx - opaque context pointer + * + * kprobe handlers execute BPF programs via this helper. + * Can be used from static tracepoints in the future. Should also state what the expe

Re: [PATCH v8 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-20 Thread Steven Rostedt
On Thu, 19 Mar 2015 18:59:43 -0700 Alexei Starovoitov wrote: > Debugging of BPF programs needs some form of printk from the program, > so let programs call limited trace_printk() with %d %u %x %p modifiers only. > > Similar to kernel modules, during program load verifier checks whether program >

Re: [PATCH v2 5/7] clone4: Add a CLONE_AUTOREAP flag to automatically reap the child process

2015-03-20 Thread josh
On Fri, Mar 20, 2015 at 08:09:14PM +0100, Oleg Nesterov wrote: > On 03/20, Thiago Macieira wrote: > > > > On Friday 20 March 2015 19:14:04 Oleg Nesterov wrote: > > > Also. I forgot that the kernel always resets ->exit_signal to SIGCHLD on > > > exec or reparenting. Reparenting is probably fine. But

Re: [PATCH v8 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-20 Thread Steven Rostedt
On Thu, 19 Mar 2015 18:59:41 -0700 Alexei Starovoitov wrote: Some nits... > --- /dev/null > +++ b/kernel/trace/bpf_trace.c > @@ -0,0 +1,123 @@ > +/* Copyright (c) 2011-2015 PLUMgrid, http://plumgrid.com > + * > + * This program is free software; you can redistribute it and/or > + * modify it u

Re: [PATCH 05/45] drm.h: include stdlib.h in userspace

2015-03-20 Thread Emil Velikov
On 23 February 2015 at 10:35, Mikko Rapeli wrote: > On Mon, Feb 23, 2015 at 10:26:58AM +, Emil Velikov wrote: >> On 16/02/15 23:05, Mikko Rapeli wrote: >> > Fixes compilation error: >> > >> > drm/drm.h:132:2: error: unknown type name ‘size_t’ >> > >> Hi Mikko, >> >> Can you let us know how yo

Re: [PATCH v8 tip 2/9] tracing: add kprobe flag

2015-03-20 Thread Steven Rostedt
On Thu, 19 Mar 2015 18:59:40 -0700 Alexei Starovoitov wrote: > add TRACE_EVENT_FL_KPROBE flag to differentiate kprobe type of tracepoints, > since bpf programs can only be attached to kprobe type of > PERF_TYPE_TRACEPOINT perf events. > > Signed-off-by: Alexei Starovoitov > --- > include/linux

Re: [PATCH v2 5/7] clone4: Add a CLONE_AUTOREAP flag to automatically reap the child process

2015-03-20 Thread Oleg Nesterov
On 03/20, Thiago Macieira wrote: > > On Friday 20 March 2015 19:14:04 Oleg Nesterov wrote: > > Also. I forgot that the kernel always resets ->exit_signal to SIGCHLD on > > exec or reparenting. Reparenting is probably fine. But what about exec? > > Should it keep ->exit_signal == 0 if "autoreap" ? I

Re: [PATCH v2 5/7] clone4: Add a CLONE_AUTOREAP flag to automatically reap the child process

2015-03-20 Thread Thiago Macieira
On Friday 20 March 2015 19:14:04 Oleg Nesterov wrote: > Also. I forgot that the kernel always resets ->exit_signal to SIGCHLD on > exec or reparenting. Reparenting is probably fine. But what about exec? > Should it keep ->exit_signal == 0 if "autoreap" ? I think it should not, to > avoid the strang

[v11 4/5] ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support

2015-03-20 Thread Li Xi
This patch adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR ioctl interface support for ext4. The interface is kept consistent with XFS_IOC_FSGETXATTR/XFS_IOC_FSGETXATTR. Signed-off-by: Li Xi --- fs/ext4/ext4.h |9 ++ fs/ext4/ioctl.c | 366 --

[v11 5/5] ext4: cleanup inode flag definitions

2015-03-20 Thread Li Xi
The inode flags defined in uapi/linux/fs.h were migrated from ext4.h. This patch changes the inode flag definitions in ext4.h to VFS definitions to make the gaps between them clearer. Signed-off-by: Li Xi Reviewed-by: Andreas Dilger --- fs/ext4/ext4.h | 50 +---

[v11 2/5] ext4: adds project ID support

2015-03-20 Thread Li Xi
This patch adds a new internal field of ext4 inode to save project identifier. Also a new flag EXT4_INODE_PROJINHERIT is added for inheriting project ID from parent directory. Signed-off-by: Li Xi Reviewed-by: Jan Kara --- fs/ext4/ext4.h | 21 + fs/ext4/ialloc.c

[v11 3/5] ext4: adds project quota support

2015-03-20 Thread Li Xi
This patch adds mount options for enabling/disabling project quota accounting and enforcement. A new specific inode is also used for project quota accounting. Signed-off-by: Li Xi Signed-off-by: Dmitry Monakhov Reviewed-by: Jan Kara --- fs/ext4/ext4.h |6 +++- fs/ext4/super.c | 56 +

[v11 0/5] ext4: add project quota support

2015-03-20 Thread Li Xi
The following patches propose an implementation of project quota support for ext4. A project is an aggregate of unrelated inodes which might scatter in different directories. Inodes that belong to the same project possess an identical identification i.e. 'project ID', just like every inode has its

[v11 1/5] vfs: adds general codes to enforces project quota limits

2015-03-20 Thread Li Xi
This patch adds support for a new quota type PRJQUOTA for project quota enforcement. Also a new method get_projid() is added into dquot_operations structure. Signed-off-by: Li Xi Signed-off-by: Dmitry Monakhov Reviewed-by: Jan Kara --- fs/quota/dquot.c | 35

[v5 3/5] ext4: adds project quota support

2015-03-20 Thread Li Xi
This patch adds mount options for enabling/disabling project quota accounting and enforcement. A new specific inode is also used for project quota accounting. Signed-off-by: Li Xi Signed-off-by: Dmitry Monakhov Reviewed-by: Jan Kara --- fs/ext4/ext4.h |6 +++- fs/ext4/super.c | 56 +

[v5 2/5] ext4: adds project ID support

2015-03-20 Thread Li Xi
This patch adds a new internal field of ext4 inode to save project identifier. Also a new flag EXT4_INODE_PROJINHERIT is added for inheriting project ID from parent directory. Signed-off-by: Li Xi Reviewed-by: Jan Kara --- fs/ext4/ext4.h | 21 + fs/ext4/ialloc.c

[v5 1/5] vfs: adds general codes to enforces project quota limits

2015-03-20 Thread Li Xi
This patch adds support for a new quota type PRJQUOTA for project quota enforcement. Also a new method get_projid() is added into dquot_operations structure. Signed-off-by: Li Xi Signed-off-by: Dmitry Monakhov Reviewed-by: Jan Kara --- fs/quota/dquot.c | 35

[v11 0/5] ext4: add project quota support

2015-03-20 Thread Li Xi
The following patches propose an implementation of project quota support for ext4. A project is an aggregate of unrelated inodes which might scatter in different directories. Inodes that belong to the same project possess an identical identification i.e. 'project ID', just like every inode has its

Re: [PATCH v2 5/7] clone4: Add a CLONE_AUTOREAP flag to automatically reap the child process

2015-03-20 Thread Oleg Nesterov
Josh, I am really sorry for delay. On 03/15, Josh Triplett wrote: > > On Sun, Mar 15, 2015 at 08:55:06PM +0100, Oleg Nesterov wrote: > > > It should be per-process simply because this "autoreap" affects the whole > > process. And the sub-threads are already "autoreap". And these 2 autoreap's > >

[PATCH v1 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-20 Thread Alexander Shishkin
A System Trace Module (STM) is a device exporting data in System Trace Protocol (STP) format as defined by MIPI STP standards. Examples of such devices are Intel Trace Hub and Coresight STM. This abstraction provides a unified interface for software trace sources to send their data over an STM dev

[PATCH v2] coresight: moving to new "hwtracing" directory

2015-03-20 Thread Mathieu Poirier
Keeping drivers related to HW tracing on ARM, i.e coresight, under "drivers/coresight" doesn't make sense when other architectures start rolling out technologies of the same nature. As such creating a new "drivers/hwtracing" directory where all drivers of the same kind can reside, reducing namespa

[PATCH v5] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data,

Re: [PATCH] Input: Add MT_TOOL_PALM

2015-03-20 Thread Dmitry Torokhov
On Fri, Mar 20, 2015 at 08:41:55AM +1000, Peter Hutterer wrote: > On Wed, Mar 18, 2015 at 03:26:35PM -0700, Charlie Mooney wrote: > > Currently there are only two "tools" that can be specified by a > > multi-touch driver: MT_TOOL_FINGER and MT_TOOL_PEN. In working with > > Elan (The touch vendor)

Re: [PATCH v0 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-20 Thread Mathieu Poirier
On 20 March 2015 at 08:53, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> As promised I worked on a prototype that connects the coresight-stm >> driver with the generic STM interface you have suggested. Things work >> quite well and aside from the enhancement related to the ioctl() and

Re: [PATCH v0 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-20 Thread Alexander Shishkin
Mathieu Poirier writes: > As promised I worked on a prototype that connects the coresight-stm > driver with the generic STM interface you have suggested. Things work > quite well and aside from the enhancement related to the ioctl() and > private member as discussed above, we should move ahead w

Re: [PATCH V7] Allow compaction of unevictable pages

2015-03-20 Thread Rik van Riel
On 03/20/2015 09:49 AM, Eric B Munson wrote: > Currently, pages which are marked as unevictable are protected from > compaction, but not from other types of migration. The POSIX real time > extension explicitly states that mlock() will prevent a major page > fault, but the spirit of this is that m

[PATCH v5] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data,

Re: [PATCH v2] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-20 um 13:27 schrieb Benjamin Tissoires: > On Fri, Mar 20, 2015 at 7:26 AM, Martin Kepplinger > wrote: >> Am 2015-03-19 um 11:22 schrieb Bastien Nocera: >>> On Wed, 2015-03-18 at 19:28 +0100, Martin Kepplinger wrote: Am 2015-03-18 um 19:05 schrieb Bastien Nocera: > On Wed, 2015-

[PATCH V7] Allow compaction of unevictable pages

2015-03-20 Thread Eric B Munson
Currently, pages which are marked as unevictable are protected from compaction, but not from other types of migration. The POSIX real time extension explicitly states that mlock() will prevent a major page fault, but the spirit of this is that mlock() should give a process the ability to control s

Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-20 um 12:31 schrieb Varka Bhadram: > On 03/20/2015 04:50 PM, Martin Kepplinger wrote: >> From: Martin Kepplinger >> ( ...) >> +return 0; >> + >> + err_free_irq: >> +if (mma->irq) >> +free_irq(mma->irq, mma); >> + err_free_mem: >> +kfree(mma); > > If we use devm_* AP

Re: [PATCH] audit.h: remove the macro AUDIT_ARCH_ARMEB definition

2015-03-20 Thread Paul Moore
On Fri, Mar 20, 2015 at 12:55 AM, wrote: > From: Li RongQing > > After 2f9783669 [ARM: 7412/1: audit: use only AUDIT_ARCH_ARM regardless > of endianness], no kernel user uses this macro; > > Keeping this macro, only makes the compiling old version audit [before > changeset 931 Improve ARM and AA

Re: [v10 4/5] ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support

2015-03-20 Thread Li Xi
On Thu, Mar 19, 2015 at 5:56 PM, Jan Kara wrote: > On Thu 19-03-15 04:04:56, Li Xi wrote: >> This patch adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR ioctl interface >> support for ext4. The interface is kept consistent with >> XFS_IOC_FSGETXATTR/XFS_IOC_FSGETXATTR. > Two more comments below. > >> >>

Re: [v10 3/5] ext4: adds project quota support

2015-03-20 Thread Li Xi
On Fri, Mar 20, 2015 at 3:23 AM, Andreas Dilger wrote: > On Mar 18, 2015, at 1:04 PM, Li Xi wrote: >> >> This patch adds mount options for enabling/disabling project quota >> accounting and enforcement. A new specific inode is also used for >> project quota accounting. >> >> Signed-off-by: Li Xi

[PATCH v2] Add virtio-input driver.

2015-03-20 Thread Gerd Hoffmann
virtio-input is basically evdev-events-over-virtio, so this driver isn't much more than reading configuration from config space and forwarding incoming events to the linux input layer. Signed-off-by: Gerd Hoffmann --- MAINTAINERS | 6 + drivers/virtio/Kconfig|

Re: [Patch] firmware: dmi_scan: split dmisubsystem from dmi-sysfs

2015-03-20 Thread Jean Delvare
On Fri, 20 Mar 2015 12:00:34 +, Matt Fleming wrote: > On Fri, 2015-03-20 at 09:16 +0100, Jean Delvare wrote: > > > > OK, I understand. Now I see the two patches I was missing, I'll pick > > them so that I can apply your patch cleanly on top of my tree. > > > > I would have appreciated to be C

Re: [PATCH v2] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Benjamin Tissoires
On Fri, Mar 20, 2015 at 7:26 AM, Martin Kepplinger wrote: > Am 2015-03-19 um 11:22 schrieb Bastien Nocera: >> On Wed, 2015-03-18 at 19:28 +0100, Martin Kepplinger wrote: >>> Am 2015-03-18 um 19:05 schrieb Bastien Nocera: On Wed, 2015-03-18 at 19:02 +0100, Martin Kepplinger wrote: > Am 201

Re: [PATCH v2] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-19 um 11:22 schrieb Bastien Nocera: > On Wed, 2015-03-18 at 19:28 +0100, Martin Kepplinger wrote: >> Am 2015-03-18 um 19:05 schrieb Bastien Nocera: >>> On Wed, 2015-03-18 at 19:02 +0100, Martin Kepplinger wrote: Am 2015-03-18 um 17:59 schrieb Bastien Nocera: > On Wed, 2015-03-18

Re: [PATCH v3] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-19 um 17:03 schrieb Mark Rutland: >> diff --git a/Documentation/devicetree/bindings/misc/fsl,mma8653fc.txt >> b/Documentation/devicetree/bindings/misc/fsl,mma8653fc.txt >> new file mode 100644 >> index 000..3921acb >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/misc/fsl

Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Varka Bhadram
On 03/20/2015 04:50 PM, Martin Kepplinger wrote: From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving

[PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data,

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread David Herrmann
Hi On Fri, Mar 20, 2015 at 11:36 AM, Gerd Hoffmann wrote: >> I'd like to see all four forwarded from the host. I'd be fine with >> "bus" being set to VIRTUAL, but I'm not sure why that would be a good >> thing to do? > > I think for the emulated devices it's fine to use VIRTUAL. Yes, on the host

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread Gerd Hoffmann
Hi, > > There will also be pass-through support, i.e. qemu > > opening /dev/input/event and forwarding everything to the guest. > > How should that be handled best? Copy all four from the host? Even > > though the bustype is BUS_USB? Not sure this actually improves things > > because the gues

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread Gerd Hoffmann
Hi, > > +static int virtinput_send_status(struct virtio_input *vi, > > +u16 type, u16 code, s32 value) > > +{ > > + struct virtio_input_event *stsbuf; > > + struct scatterlist sg[1]; > > + > > + stsbuf = kzalloc(sizeof(*stsbuf), GFP_ATOMIC); > > + if (!stsbuf)

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread Gerd Hoffmann
Hi, > > > +static ssize_t serial_show(struct device *dev, > > > + struct device_attribute *attr, char *buf) > > > +{ > > > + struct input_dev *idev = to_input_dev(dev); > > > + struct virtio_input *vi = input_get_drvdata(idev); > > > + return sprintf(bu

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread David Herrmann
Hi On Fri, Mar 20, 2015 at 10:48 AM, Gerd Hoffmann wrote: > > Hi, > >> > +static int virtinput_send_status(struct virtio_input *vi, >> > +u16 type, u16 code, s32 value) >> > +{ >> > + struct virtio_input_event *stsbuf; >> > + struct scatterlist sg[1];

Re: [PATCH 1/1] Add virtio-input driver.

2015-03-20 Thread Gerd Hoffmann
Hi, > > +static int virtinput_send_status(struct virtio_input *vi, > > +u16 type, u16 code, s32 value) > > +{ > > + struct virtio_input_event *stsbuf; > > + struct scatterlist sg[1]; > > + > > + stsbuf = kzalloc(sizeof(*stsbuf), GFP_ATOMIC); > >

Re: [PATCH v7 tip 2/8] tracing: attach BPF programs to kprobes

2015-03-20 Thread Masami Hiramatsu
(2015/03/17 6:49), Alexei Starovoitov wrote: > User interface: > struct perf_event_attr attr = {.type = PERF_TYPE_TRACEPOINT, .config = > event_id, ...}; > event_fd = perf_event_open(&attr,...); > ioctl(event_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); > > prog_fd is a file descriptor associated with B

Re: [Patch] firmware: dmi_scan: split dmisubsystem from dmi-sysfs

2015-03-20 Thread Jean Delvare
Hi Ivan, On Thu, 19 Mar 2015 19:35:34 +0200, Ivan.khoronzhuk wrote: > On 19.03.15 17:30, Jean Delvare wrote: > > Le Monday 16 March 2015 à 22:57 +0200, Ivan Khoronzhuk a écrit : > >> Some utils, like dmidecode and smbios, need to access SMBIOS entry > >> table area in order to get information like

Re: [PATCH] coresight: moving to new "hwtracing" directory

2015-03-20 Thread Greg KH
On Thu, Mar 19, 2015 at 06:21:56PM -0600, Mathieu Poirier wrote: > On 19 March 2015 at 16:27, Greg KH wrote: > > On Thu, Mar 19, 2015 at 04:02:02PM -0600, Mathieu Poirier wrote: > >> Keeping drivers related to HW tracing on ARM, i.e coresight, > >> under "drivers/coresight" doesn't make sense when