Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 10:53 PM, Thomas Gleixner wrote: On Wed, 8 Nov 2017, Yonghong Song wrote: On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 10:53 PM, Thomas Gleixner wrote: On Wed, 8 Nov 2017, Yonghong Song wrote: On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps.

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, Yonghong Song wrote: > On 11/8/17 4:06 PM, David Miller wrote: > > From: Yonghong Song > > Date: Wed, 8 Nov 2017 13:37:12 -0800 > > > > > Uprobe is a tracing mechanism for userspace programs. > > > Typical uprobe will incur overhead of two traps. > > > First trap

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, Yonghong Song wrote: > On 11/8/17 4:06 PM, David Miller wrote: > > From: Yonghong Song > > Date: Wed, 8 Nov 2017 13:37:12 -0800 > > > > > Uprobe is a tracing mechanism for userspace programs. > > > Typical uprobe will incur overhead of two traps. > > > First trap is caused by

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread David Miller
From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 > Uprobe is a tracing mechanism for userspace programs. > Typical uprobe will incur overhead of two traps. > First trap is caused by replaced trap insn, and > the second trap is to execute the original displaced > insn in user

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread David Miller
From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 > Uprobe is a tracing mechanism for userspace programs. > Typical uprobe will incur overhead of two traps. > First trap is caused by replaced trap insn, and > the second trap is to execute the original displaced > insn in user space. ...

[PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original displaced insn in user space. To reduce the overhead, kernel provides hooks for architectures to

[PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original displaced insn in user space. To reduce the overhead, kernel provides hooks for architectures to