Re: [PATCH net-next] openvswitch: Fix conntrack compilation without mark.

2015-08-28 Thread David Miller
From: Joe Stringer Date: Fri, 28 Aug 2015 19:22:11 -0700 > Fix build with !CONFIG_NF_CONNTRACK_MARK && CONFIG_OPENVSWITCH_CONNTRACK > > Fixes: 182e304 ("openvswitch: Allow matching on conntrack mark") > Reported-by: Simon Horman > Signed-off-by: Joe Stringer Applied, thanks. -- To

Re: [PATCH RFC V2 2/2] net: Optimize snmp stat aggregation by walking all the percpu data at once

2015-08-28 Thread David Miller
From: Raghavendra K T Date: Sat, 29 Aug 2015 08:27:15 +0530 > resending the patch with memset. Please let me know if you want to > resend all the patches. Do not post patches as replies to existing discussion threads. Instead, make a new, fresh, patch posting, updating the Subject line as

Re: [PATCH net-next 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-28 Thread David Miller
From: Alexey Klimov Date: Sat, 29 Aug 2015 04:45:03 +0300 >> @@ -717,9 +833,24 @@ static void nic_unregister_interrupts(struct nicpf *nic) >> nic_disable_msix(nic); >> } >> >> +static int nic_num_sqs_en(struct nicpf *nic, int vf_en) >> +{ >> + int pos = 0, sqs_per_vf =

[PATCH 13/31] perf tools: Attach eBPF program to perf event

2015-08-28 Thread Wang Nan
This is the final patch which makes basic BPF filter work. After applying this patch, users are allowed to use BPF filter like: # perf record --event ./hello_world.c ls In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor

[PATCH 12/31] perf tools: Allow filter option to be applied to bof object

2015-08-28 Thread Wang Nan
Before this patch, --filter options can't be applied to BPF object 'events'. For example, the following command: # perf record -e cycles -e test_bpf.o --exclude-perf -a sleep 1 doesn't apply '--exclude-perf' to events in test_bpf.o. Instead, the filter will be applied to 'cycles' event. This is

[PATCH 30/31] perf tools: Fix cross compiling error

2015-08-28 Thread Wang Nan
Cross compiling perf to other platform failed due to missing symbol: ... AR /pathofperf/libperf.a LD /pathofperf/tests/perf-in.o LD /pathofperf/perf-in.o LINK /pathofperf/perf /pathofperf/libperf.a(libperf-in.o): In function `intel_pt_synth_branch_sample':

[PATCH 05/31] perf ebpf: Add the libbpf glue

2015-08-28 Thread Wang Nan
The 'bpf-loader.[ch]' files are introduced in this patch. Which will be the interface between perf and libbpf. bpf__prepare_load() resides in bpf-loader.c. Dummy functions should be used because bpf-loader.c is available only when CONFIG_LIBBPF is on. Functions in bpf-loader.c should not report

[PATCH 03/31] perf tools: Introduce dummy evsel

2015-08-28 Thread Wang Nan
This patch allows linking dummy evsel onto evlist as a placeholder. It is for following patch which allows passing BPF object using '--event object.o'. Doesn't link other event selectors, if passing a BPF object file to '--event', nothing is linked onto evlist. Instead, events described in BPF

[PATCH 18/31] perf test: Add 'perf test BPF'

2015-08-28 Thread Wang Nan
This patch adds BPF testcase for testing BPF event filtering. By utilizing the result of 'perf test LLVM', this patch compiles the eBPF sample program then test it ability. The BPF script in 'perf test LLVM' collects half of execution of epoll_pwait(). This patch runs 111 times of it, so the

[PATCH 01/31] bpf tools: New API to get name from a BPF object

2015-08-28 Thread Wang Nan
Before this patch there's no way to connect a loaded bpf object to its source file. However, during applying perf's '--filter' to BPF object, without this connection makes things harder, because perf loads all programs together, but '--filter' setting is for each object. API of

[PATCH 02/31] perf tools: Don't set cmdline_group_boundary if no evsel is collected

2015-08-28 Thread Wang Nan
If parse_events__scanner() collects no entry, perf_evlist__last(evlist) is invalid. Then setting of cmdline_group_boundary touches invalid. It could happend in currect BPF implementation. See [1]. Although it can be fixed, for safety reason it whould be better to introduce this check. Instead of

[PATCH 17/31] perf tests: Enforce LLVM test for BPF test

2015-08-28 Thread Wang Nan
This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program at 'sys_epoll_pwait()', and collect half samples from it. perf itself never use that syscall, so

[PATCH 07/31] perf probe: Attach trace_probe_event with perf_probe_event

2015-08-28 Thread Wang Nan
This patch drops struct __event_package structure. Instead, it adds trace_probe_event into 'struct perf_probe_event'. trace_probe_event information gives further patches a chance to access actual probe points and actual arguments. Using them, bpf_loader will be able to attach one bpf program to

[PATCH 06/31] perf tools: Enable passing bpf object file to --event

2015-08-28 Thread Wang Nan
By introducing new rules in tools/perf/util/parse-events.[ly], this patch enables 'perf record --event bpf_file.o' to select events by an eBPF object file. It calls parse_events_load_bpf() to load that file, which uses bpf__prepare_load() and finally calls bpf_object__open() for the object files.

[PATCH 09/31] perf bpf: Collect 'struct perf_probe_event' for bpf_program

2015-08-28 Thread Wang Nan
This patch utilizes bpf_program__set_private(), binding perf_probe_event with bpf program by private field. Saving those information so 'perf record' knows which kprobe point a program should be attached. Since data in 'struct perf_probe_event' is build by 2 stages, tev_ready is used to mark

[PATCH 31/31] tools lib traceevent: Support function __get_dynamic_array_len

2015-08-28 Thread Wang Nan
From: He Kuang Support helper function __get_dynamic_array_len() in libtraceevent, this function is used accompany with __print_array() or __print_hex(), but currently it is not an available function in the function list of process_function(). The total allocated length of the dynamic array is

[PATCH 24/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-08-28 Thread Wang Nan
This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) { return 1; } This patch passes at most

[PATCH 28/31] perf probe: Init symbol as kprobe

2015-08-28 Thread Wang Nan
Before this patch, add_perf_probe_events() init symbol maps only for uprobe if the first 'struct perf_probe_event' passed to it is a uprobe event. This is a trick because 'perf probe''s command line syntax constrains the first elements of the probe_event arrays must be kprobes if there is one

[PATCH 10/31] perf record: Load all eBPF object into kernel

2015-08-28 Thread Wang Nan
This patch utilizes bpf_object__load() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Paul

[PATCH 27/31] perf record: Support custom vmlinux path

2015-08-28 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short

[PATCH 22/31] perf tools: Add BPF_PROLOGUE config options for further patches

2015-08-28 Thread Wang Nan
If both LIBBPF and DWARF are detected, it is possible to create prologue for eBPF programs to help them accessing kernel data. HAVE_BPF_PROLOGUE and CONFIG_BPF_PROLOGUE is added as flags for this feature. PERF_HAVE_ARCH_GET_REG_OFFSET indicates an architecture supports converting name of a

[PATCH 25/31] perf tools: Generate prologue for BPF programs

2015-08-28 Thread Wang Nan
This patch generates prologue for each 'struct probe_trace_event' for fetching arguments for BPF programs. After bpf__probe(), iterate over each programs to check whether prologue is required. If none of 'struct perf_probe_event' a program will attach to has at least one argument, simply skip

[PATCH 26/31] perf tools: Use same BPF program if arguments are identical

2015-08-28 Thread Wang Nan
This patch allows creating only one BPF program for different 'probe_trace_event'(tev) generated by one 'perf_probe_event'(pev), if their prologues are identical. This is done by comparing argument list of different tev, and maps type of prologue and tev using a mapping array. This patch utilizes

[PATCH 23/31] perf tools: Introduce arch_get_reg_info() for x86

2015-08-28 Thread Wang Nan
From: He Kuang arch_get_reg_info() is a helper function which converts register name like "%rax" to offset of a register in 'struct pt_regs', which is required by BPF prologue generator. This patch replaces original string table by a 'struct reg_info' table, which records offset of registers

[PATCH 11/31] perf tools: Add bpf_fd field to evsel and config it

2015-08-28 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__foreach_tev() function is added, which calls the callback function for each 'struct probe_trace_event' events for each bpf program with their file descriptors. In evlist.c,

[PATCH 19/31] bpf tools: Load a program with different instances using preprocessor

2015-08-28 Thread Wang Nan
In this patch, caller of libbpf is able to control the loaded programs by installing a preprocessor callback for a BPF program. With preprocessor, different instances can be created from one BPF program. This patch will be used by perf to generate different prologue for different 'struct

[PATCH 21/31] perf tools: Move linux/filter.h to tools/include

2015-08-28 Thread Wang Nan
From: He Kuang This patch moves filter.h from include/linux/kernel.h to tools/include/linux/filter.h to enable other libraries use macros in it, like libbpf which will be introduced by further patches. Currenty, the moved filter.h only contains the useful macros needed by libbpf for not

[PATCH 29/31] perf tools: Support attach BPF program on uprobe events

2015-08-28 Thread Wang Nan
This patch appends new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target=/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a program, before the main config

[PATCH 20/31] perf probe: Reset args and nargs for probe_trace_event when failure

2015-08-28 Thread Wang Nan
When failure occures in add_probe_trace_event(), args in probe_trace_event is incomplete. Since information in it may be used in further, this patch frees the allocated memory and set it to NULL to avoid dangling pointer. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc:

[PATCH 14/31] perf tools: Suppress probing messages when probing by BPF loading

2015-08-28 Thread Wang Nan
This patch suppresses message output by add_perf_probe_events() and del_perf_probe_events() if they are triggered by BPF loading. Before this patch, when using 'perf record' with BPF object/source as event selector, following message will be output: Added new event:

[PATCH 15/31] perf record: Add clang options for compiling BPF scripts

2015-08-28 Thread Wang Nan
Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan Cc: Alexei

[PATCH 16/31] perf tools: Infrastructure for compiling scriptlets when passing '.c' to --event

2015-08-28 Thread Wang Nan
This patch provides infrastructure for passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the passed file is

[PATCH 08/31] perf record, bpf: Parse and probe eBPF programs probe points

2015-08-28 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names of BPF programs. It parses the section names of each eBPF program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do

[PATCH 04/31] perf tools: Make perf depend on libbpf

2015-08-28 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enables perf to build libbpf during building if libelf is found and neither NO_LIBELF nor NO_LIBBPF is set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. MANIFEST is also updated for 'make

[GIT PULL 00/31] perf tools: filtering events using eBPF programs

2015-08-28 Thread Wang Nan
Hi Arnaldo and Ingo, Several small proglems are fixed based on yesterday's pull request. Please see below. Since patch order is changed (original 20/32 and 32/32 are dropped), I decide to send all of them again. Sorry for the noisy. In addition: I collect a cross-compiling fix I posted yesterday

Re: Problems loading firmware using built-in drivers with kernels that use initramfs.

2015-08-28 Thread Ming Lei
On Sat, Aug 29, 2015 at 9:11 AM, Luis R. Rodriguez wrote: > On Thu, Aug 27, 2015 at 08:55:13AM +0800, Ming Lei wrote: >> On Thu, Aug 27, 2015 at 2:07 AM, Linus Torvalds >> wrote: >> > On Wed, Aug 26, 2015 at 1:06 AM, Liam Girdwood >> > wrote: >> >> >> >> I think the options are to either :- >>

Re: [PATCH v2 5/9] x86, pmem: push fallback handling to arch code

2015-08-28 Thread Williams, Dan J
On Fri, 2015-08-28 at 15:48 -0600, Toshi Kani wrote: > On Fri, 2015-08-28 at 14:47 -0700, Dan Williams wrote: > > On Fri, Aug 28, 2015 at 2:41 PM, Toshi Kani wrote: > > > On Wed, 2015-08-26 at 21:34 +, Williams, Dan J wrote: > > [..] > > > > -#define ARCH_MEMREMAP_PMEM MEMREMAP_WB > > > > >

Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off

2015-08-28 Thread Maxime Ripard
Hi Mike, On Tue, Aug 25, 2015 at 02:50:51PM -0700, Michael Turquette wrote: > Quoting Maxime Ripard (2015-08-20 08:15:10) > > On Tue, Aug 18, 2015 at 09:43:56AM -0700, Michael Turquette wrote: > > > Quoting Maxime Ripard (2015-08-18 08:45:52) > > > > Hi Mike, > > > > > > > > On Fri, Aug 07, 2015

Re: [PATCH RFC RFT 0/3] clk: detect per-user enable imbalances and implement hand-off

2015-08-28 Thread Maxime Ripard
On Wed, Aug 26, 2015 at 07:54:23AM +0100, Lee Jones wrote: > On Tue, 25 Aug 2015, Michael Turquette wrote: > > > Quoting Maxime Ripard (2015-08-20 08:15:10) > > > On Tue, Aug 18, 2015 at 09:43:56AM -0700, Michael Turquette wrote: > > > > Quoting Maxime Ripard (2015-08-18 08:45:52) > > > > > Hi

[PATCH RFC tip/core/rcu 6/9] locking/percpu-rwsem: Make use of the rcu_sync infrastructure

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov Currently down_write/up_write calls synchronize_sched_expedited() twice, which is evil. Change this code to rely on rcu-sync primitives. This avoids the _expedited "big hammer", and this can be faster in the contended case or even in the case when a single thread does

[PATCH RFC tip/core/rcu 2/9] rcu_sync: Simplify rcu_sync using new rcu_sync_ops structure

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov This commit adds the new struct rcu_sync_ops which holds sync/call methods, and turns the function pointers in rcu_sync_struct into an array of struct rcu_sync_ops. This simplifies the "init" helpers by collapsing a switch statement and explicit multiple definitions into a

[PATCH RFC tip/core/rcu 1/9] rcu: Create rcu_sync infrastructure

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov The rcu_sync infrastructure can be thought of as infrastructure to be used to implement reader-writer primitives having extremely lightweight readers during times when there are no writers. The first use is in the percpu_rwsem used by the VFS subsystem. This infrastructure

[PATCH RFC tip/core/rcu 9/9] rcu: Change _wait_rcu_gp() to work around GCC bug 67055

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov Code like this in inline functions confuses some recent versions of gcc: const int n = const-expr; whatever_t array[n]; For more details, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67055#c13 This compiler bug results in the following failure

[PATCH RFC tip/core/rcu 7/9] locking/percpu-rwsem: Fix the comments outdated by rcu_sync

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov Update the comments broken by the previous change. Signed-off-by: Oleg Nesterov Signed-off-by: Paul E. McKenney --- kernel/locking/percpu-rwsem.c | 50 ++- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git

[PATCH RFC tip/core/rcu 0/9] Add rcu_sync and implement percpu_rwsem in terms of it

2015-08-28 Thread Paul E. McKenney
Hello! This series implements an rcu_sync primitive and updates percpu_rwsem to be implemented in terms of it. This is an updated version of the series posted by Oleg Nesterov, responding to feedback from Ingo Molnar. The patches in this series, all courtesy of Oleg (and some in turn based on

[PATCH RFC tip/core/rcu 5/9] locking/percpu-rwsem: Make percpu_free_rwsem() after kzalloc() safe

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov This is the temporary ugly hack which will be reverted later. We only need it to ensure that the next patch will not break "change sb_writers to use percpu_rw_semaphore" patches routed via the VFS tree. The alloc_super()->destroy_super() error path assumes that it is safe to

[PATCH RFC tip/core/rcu 8/9] locking/percpu-rwsem: Clean up the lockdep annotations in percpu_down_read()

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov Based on Peter Zijlstra's earlier patch. Change percpu_down_read() to use __down_read(), this way we can do rwsem_acquire_read() unconditionally at the start to make this code more symmetric and clean. Originally-From: Peter Zijlstra Signed-off-by: Oleg Nesterov

[PATCH RFC tip/core/rcu 3/9] rcu_sync: Add CONFIG_PROVE_RCU checks

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov This commit validates that the caller of rcu_sync_is_idle() holds the corresponding type of RCU read-side lock, but only in kernels built with CONFIG_PROVE_RCU=y. This validation is carried out via a new rcu_sync_ops->held() method that is checked within rcu_sync_is_idle().

[PATCH RFC tip/core/rcu 4/9] rcu_sync: Introduce rcu_sync_dtor()

2015-08-28 Thread Paul E. McKenney
From: Oleg Nesterov This commit allows rcu_sync structures to be safely deallocated, The trick is to add a new ->wait field to the gp_ops array. This field is a pointer to the rcu_barrier() function corresponding to the flavor of RCU in question. This allows a new rcu_sync_dtor() to wait for

Re: [PATCH] pmem, nfit: Fix ARCH_MEMREMAP_PMEM handling on x86_32

2015-08-28 Thread Dan Williams
On Fri, Aug 28, 2015 at 5:16 PM, Toshi Kani wrote: > ARCH_MEMREMAP_PMEM is defined on x86_64 only per ARCH_HAS_PMEM_API. > The following compile error in __nfit_spa_map() was observed on > x86_32 as it refers ARCH_MEMREMAP_PMEM without #ifdef. > > drivers/acpi/nfit.c:1205:8: error:

Re: [PATCH] nfit: Fix undefined mmio_flush_range on x86_32

2015-08-28 Thread Dan Williams
On Fri, Aug 28, 2015 at 6:18 PM, Toshi Kani wrote: > The following compile error was observed on x86_32 since nfit.c > relies on to include , which only > works when CONFIG_ARCH_HAS_PMEM_API is set on x86_64. > > drivers/acpi/nfit.c:1085:5: error: implicit declaration of > function

Re: [PATCH RFC V2 2/2] net: Optimize snmp stat aggregation by walking all the percpu data at once

2015-08-28 Thread Eric Dumazet
On Sat, 2015-08-29 at 08:27 +0530, Raghavendra K T wrote: > > /* Use put_unaligned() because stats may not be aligned for u64. */ > put_unaligned(items, [0]); > for (i = 1; i < items; i++) > - put_unaligned(snmp_fold_field64(mib, i, syncpoff), [i]); > +

Re: [PATCH] task_work: remove fifo ordering guarantee

2015-08-28 Thread Linus Torvalds
On Fri, Aug 28, 2015 at 7:42 PM, Eric Dumazet wrote: > > We could add yet another cond_resched() in the reverse loop, or we > can simply remove the reversal, as I do not think anything > would depend on order of task_work_add() submitted works. So I think this should be ok, with things like file

[PATCH] perf tools: Support bpf prologue for arm64

2015-08-28 Thread He Kuang
This patch implements arch_get_reg_info() for arm64 to enable HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is not composed by fields of register names but an array of regs, so here we simply multiply fixed register size by index number to get the byte offset. Signed-off-by: He Kuang

Re: [PATCH v4 1/2] Add the driver of mbigen interrupt controller

2015-08-28 Thread Alexey Klimov
Hi Ma Jun, On Wed, Aug 19, 2015 at 5:55 AM, MaJun wrote: > From: Ma Jun > > Mbigen means Message Based Interrupt Generator(MBIGEN). > > Its a kind of interrupt controller that collects > > the interrupts from external devices and generate msi interrupt. > > Mbigen is applied to reduce the

Re: [PATCH] btrfs: trimming some start_transaction() code away

2015-08-28 Thread Alexandru Moise
On Fri, Aug 28, 2015 at 07:38:56PM +0200, David Sterba wrote: > On Thu, Aug 27, 2015 at 11:53:45PM +, Alexandru Moise wrote: > > Just call kmem_cache_zalloc() instead of calling kmem_cache_alloc(). > > We're just initializing most fields to 0, false and NULL later on > > _anyway_, so to make

Re: [PATCH RFC V2 2/2] net: Optimize snmp stat aggregation by walking all the percpu data at once

2015-08-28 Thread Raghavendra K T
* David Miller [2015-08-28 11:24:13]: > From: Raghavendra K T > Date: Fri, 28 Aug 2015 12:09:52 +0530 > > > On 08/28/2015 12:08 AM, David Miller wrote: > >> From: Raghavendra K T > >> Date: Wed, 26 Aug 2015 23:07:33 +0530 > >> > >>> @@ -4641,10 +4647,12 @@ static inline void

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Wangnan (F)
On 2015/8/29 10:49, Alexei Starovoitov wrote: On 8/28/15 7:36 PM, Wangnan (F) wrote: For current patch 32/32, I think it is useful enough for some simple cases, and we have already start using it internally. What about keep it as what it is now and create a independent method for your

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 7:36 PM, Wangnan (F) wrote: For current patch 32/32, I think it is useful enough for some simple cases, and we have already start using it internally. What about keep it as what it is now and create a independent method for your usecase? well, though the patch is small and

Re: [RFC PATCH 0/4] perf tools: Use the new ability of eBPF programs to access hardware PMU counter

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 7:14 PM, xiakaixu wrote: Right, this is just a little example. Actually, I have tested this ability on kernel side and user space side, that is kprobe and uprobe. great to hear. At this time i wish to get your comment on the current chosen implementation. Now the struct

[PATCH] task_work: remove fifo ordering guarantee

2015-08-28 Thread Eric Dumazet
From: Eric Dumazet In commit f341861fb0b ("task_work: add a scheduling point in task_work_run()") I fixed a latency problem adding a cond_resched() call. Later, commit ac3d0da8f329 added yet another loop to reverse a list, bringing back the latency spike : I've seen in some cases this loop

Re: [PATCH net-next] openvswitch: Fix conntrack compilation without mark.

2015-08-28 Thread Simon Horman
On Fri, Aug 28, 2015 at 07:22:11PM -0700, Joe Stringer wrote: > Fix build with !CONFIG_NF_CONNTRACK_MARK && CONFIG_OPENVSWITCH_CONNTRACK > > Fixes: 182e304 ("openvswitch: Allow matching on conntrack mark") > Reported-by: Simon Horman > Signed-off-by: Joe Stringer Thanks Joe, this seems to

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Wangnan (F)
On 2015/8/29 10:22, Alexei Starovoitov wrote: On 8/28/15 7:15 PM, Wangnan (F) wrote: I'd like to see whether it is possible to create dynamic tracepoints so different receivers can listen on different tracepoints. see my proposal A. I think ftrace instances might work for this. I'm not

Re: [PATCHv6 net-next 00/10] OVS conntrack support

2015-08-28 Thread Joe Stringer
On 28 August 2015 at 16:57, Simon Horman wrote: > On Wed, Aug 26, 2015 at 11:31:43AM -0700, Joe Stringer wrote: >> The goal of this series is to allow OVS to send packets through the Linux >> kernel connection tracker, and subsequently match on fields populated by >> conntrack. This functionality

[PATCH net-next] openvswitch: Fix conntrack compilation without mark.

2015-08-28 Thread Joe Stringer
Fix build with !CONFIG_NF_CONNTRACK_MARK && CONFIG_OPENVSWITCH_CONNTRACK Fixes: 182e304 ("openvswitch: Allow matching on conntrack mark") Reported-by: Simon Horman Signed-off-by: Joe Stringer --- net/openvswitch/conntrack.c | 17 ++--- 1 file changed, 14 insertions(+), 3

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 7:15 PM, Wangnan (F) wrote: I'd like to see whether it is possible to create dynamic tracepoints so different receivers can listen on different tracepoints. see my proposal A. I think ftrace instances might work for this. I'm not sure about 'format' part though. Kernel side

Re: Linux Firmware Signing

2015-08-28 Thread Luis R. Rodriguez
On Thu, Aug 27, 2015 at 07:54:33PM -0400, Mimi Zohar wrote: > On Thu, 2015-08-27 at 23:29 +0200, Luis R. Rodriguez wrote: > > On Thu, Aug 27, 2015 at 10:57:23AM -, David Woodhouse wrote: > > > > Luis R. Rodriguez wrote: > > > > > > > >> "PKCS#7: Add an optional authenticated attribute to hold

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Wangnan (F)
On 2015/8/29 9:34, Alexei Starovoitov wrote: On 8/28/15 6:19 PM, Wangnan (F) wrote: For me, I use bpf_output_trace_data() to output information like PMU count value. Perf is the only receiver, so global collector is perfect. Could you please describe your usecase in more detail? there is

Re: [RFC PATCH 0/4] perf tools: Use the new ability of eBPF programs to access hardware PMU counter

2015-08-28 Thread xiakaixu
于 2015/8/29 9:28, Alexei Starovoitov 写道: > On 8/27/15 3:42 AM, Kaixu Xia wrote: >> An example is pasted at the bottom of this cover letter. In that example, >> we can get the cpu_cycles and exception taken in sys_write. >> >> $ cat /sys/kernel/debug/tracing/trace_pipe >> $ ./perf record

[RFC / BUG] mtd: provide proper 32/64-bit compat_ioctl() support for BLKPG

2015-08-28 Thread Brian Norris
After a bit of poking around wondering why my 32-bit user-space can't seem to send a proper ioctl(BLKPG) to an MTD on my 64-bit kernel (ARM64), I noticed that struct blkpg_ioctl_arg is actually pretty unsuitable for use in the ioctl() ABI, due to its use of raw pointers, and its lack of

Re: [RFC] asm-generic/pci_iomap.h: make custom PCI BAR requirements explicit

2015-08-28 Thread Randy Dunlap
On 08/28/15 17:17, Luis R. Rodriguez wrote: > > arch/s390/Kconfig | 8 + > arch/s390/include/asm/io.h| 11 --- > arch/s390/include/asm/pci.h | 2 -- > arch/s390/include/asm/pci_iomap.h | 33 + > arch/s390/pci/pci.c | 2 ++

Re: Linux Firmware Signing

2015-08-28 Thread Luis R. Rodriguez
On Fri, Aug 28, 2015 at 06:26:05PM -0400, Paul Moore wrote: > On Fri, Aug 28, 2015 at 7:20 AM, Roberts, William C > wrote: > > Even triggered updates make sense, since you can at least have some form of > > trust > > of where that binary policy came from. > > It isn't always that simple, see my

Re: Linux Firmware Signing

2015-08-28 Thread Luis R. Rodriguez
On Fri, Aug 28, 2015 at 11:20:10AM +, Roberts, William C wrote: > > -Original Message- > > From: Paul Moore [mailto:p...@paul-moore.com] > > > > While I question the usefulness of a SELinux policy signature in the > > general case, > > there are some situations where it might make

Re: [RFC PATCH 1/2] x86: PCI bus specific MSI operations

2015-08-28 Thread Jiang Liu
On 2015/8/29 0:54, Thomas Gleixner wrote: > On Thu, 27 Aug 2015, Keith Busch wrote: > >> This patch adds struct x86_msi_ops to x86's PCI sysdata. This gives a >> host bridge driver the option to provide alternate MSI Data Register >> and MSI-X Table Entry programming for devices in PCI domains

Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler

2015-08-28 Thread Alexey Klimov
Hi Aleksey, let me add few minor points below. On Fri, Aug 28, 2015 at 5:59 PM, Aleksey Makarov wrote: > From: Sunil Goutham > > Rework interrupt handler to avoid checking IRQ affinity of > CQ interrupts. Now separate handlers are registered for each IRQ > including RBDR. Also register

Re: [PATCH net-next 7/8] net: thunderx: Support for upto 96 queues for a VF

2015-08-28 Thread Alexey Klimov
On Fri, Aug 28, 2015 at 5:59 PM, Aleksey Makarov wrote: > From: Sunil Goutham > > This patch adds support for handling multiple qsets assigned to a > single VF. There by increasing no of queues from earlier 8 to max > no of CPUs in the system i.e 48 queues on a single node and 96 on > dual node

Re: Persistent Reservation API V3

2015-08-28 Thread Jeremy Linton
Hello, So, looking at this, I don't see how it supports the algorithm I've been using for years. For that algorithm to successfully migrate PRs across multiple paths on a single machine without affecting other possible users (who may legitimately have PR'ed the same device) I need PR_IN

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 6:19 PM, Wangnan (F) wrote: For me, I use bpf_output_trace_data() to output information like PMU count value. Perf is the only receiver, so global collector is perfect. Could you please describe your usecase in more detail? there is a special receiver in user space that only wants

Re: futex atomic vs ordering constraints

2015-08-28 Thread Davidlohr Bueso
On Wed, 2015-08-26 at 20:16 +0200, Peter Zijlstra wrote: > Of course, if anything else prior to futex_atomic_op_inuser() implies an > (RCsc) RELEASE or stronger the primitive can do without providing > anything itself. > > This turns out to be the case, a successful get_futex_key() implies a >

Re: [RFC PATCH 0/4] perf tools: Use the new ability of eBPF programs to access hardware PMU counter

2015-08-28 Thread Alexei Starovoitov
On 8/27/15 3:42 AM, Kaixu Xia wrote: An example is pasted at the bottom of this cover letter. In that example, we can get the cpu_cycles and exception taken in sys_write. $ cat /sys/kernel/debug/tracing/trace_pipe $ ./perf record --event perf-bpf.o ls ... cat-1653

[PATCH v3 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller binding

2015-08-28 Thread Florian Fainelli
Add a binding documentation for the Broadcom BCM7038 PWM controller found in BCM7xxx chips. Signed-off-by: Florian Fainelli --- Changes in v3: - list 'clocks' property as mandatory .../devicetree/bindings/pwm/brcm,bcm7038-pwm.txt | 20 1 file changed, 20 insertions(+)

[PATCH v3 2/2] pwm: Add Broadcom BCM7038 PWM controller support

2015-08-28 Thread Florian Fainelli
Add support for the BCM7038-style PWM controller found in all BCM7xxx STB SoCs. This controller has a hardcoded 2 channels per controller, and cascades a variable frequency generator on top of a fixed frequency generator which offers a range of a 148ns period all the way to ~622ms periods.

[PATCH v3 0/2] pwm: Broadcom BCM7038 PWM controller (v3)

2015-08-28 Thread Florian Fainelli
Hi, This patch series add PWM support for the Broadcom BCM7xxx chips which feature one or more PWM controllers capable of output periods from 148ns to ~622ms using a combination of variable and fixed frequency settings. The controller does not support setting a polarity. This is based on

[PATCH] nfit: Fix undefined mmio_flush_range on x86_32

2015-08-28 Thread Toshi Kani
The following compile error was observed on x86_32 since nfit.c relies on to include , which only works when CONFIG_ARCH_HAS_PMEM_API is set on x86_64. drivers/acpi/nfit.c:1085:5: error: implicit declaration of function 'mmio_flush_range' [-Werror=implicit-function-declaration] Change

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Wangnan (F)
On 2015/8/29 8:45, Alexei Starovoitov wrote: On 8/28/15 12:06 AM, Wang Nan wrote: his patch adds a new trace event to establish infrastruction for bpf to output data to perf. Userspace perf tools can detect and use this event as using the existing tracepoint events. New bpf trace event entry

[RFC] firmware: annotate thou shalt not request fw on init or probe

2015-08-28 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" We are phasing out the usermode helper from the kernel, systemd already ripped support for this a while ago, the only remaining valid user is the Dell rbu driver. The firmware is now being read directly from the filesystem by the kernel. What this means is that if you

Re: Problems loading firmware using built-in drivers with kernels that use initramfs.

2015-08-28 Thread Luis R. Rodriguez
On Thu, Aug 27, 2015 at 08:55:13AM +0800, Ming Lei wrote: > On Thu, Aug 27, 2015 at 2:07 AM, Linus Torvalds > wrote: > > On Wed, Aug 26, 2015 at 1:06 AM, Liam Girdwood > > wrote: > >> > >> I think the options are to either :- > >> > >> 1) Don not support audio DSP drivers using topology data as

[PATCH] remoteproc: report error if resource table doesn't exist

2015-08-28 Thread Stefan Agner
Currently, if the resource table is completely missing in the firmware, powering up the remoteproc fails silently. Add a message indicating that the resource table is missing in the firmware. Signed-off-by: Stefan Agner --- Hi Ohad, I am currently working on remoteproc support for Freescale

[PATCH] Input: cyttsp - Remove unnecessary MODULE_ALIAS()

2015-08-28 Thread Javier Martinez Canillas
The drivers have a I2C device ID table that is used to create the module aliases and also "cyttsp" and "cyttsp4" are not supported I2C device IDs so these module aliases are never used. Signed-off-by: Javier Martinez Canillas --- drivers/input/touchscreen/cyttsp4_i2c.c | 1 -

Re: [RFC v6 03/40] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2015-08-28 Thread Andy Lutomirski
On Aug 28, 2015 2:54 PM, "Andreas Grünbacher" wrote: > > 2015-08-28 23:36 GMT+02:00 Andy Lutomirski : > > Silly question from the peanut gallery: is there any such thing as > > opening an fd pointing at a file such that the "open file description" > > (i.e. the struct file) captures the right to

Re: [PATCH RFC V2 2/2] net: Optimize snmp stat aggregation by walking all the percpu data at once

2015-08-28 Thread Eric Dumazet
On Fri, 2015-08-28 at 17:35 -0700, Joe Perches wrote: > That of course depends on what a "leaf" is and > whether or not any other function call in the > "leaf" consumes stack. > > inet6_fill_ifla6_attrs does call other functions > (none of which has the stack frame size of k.alloc) Just

Re: [PATCH 06/32] perf tools: Enable passing bpf object file to --event

2015-08-28 Thread Wangnan (F)
On 2015/8/28 15:05, Wang Nan wrote: diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index ef5fde6..24c8b63 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -3090,6 +3090,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix

Re: [PATCH 32/32] bpf: Introduce function for outputing data to perf event

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 12:06 AM, Wang Nan wrote: his patch adds a new trace event to establish infrastruction for bpf to output data to perf. Userspace perf tools can detect and use this event as using the existing tracepoint events. New bpf trace event entry in debugfs:

[PATCH] soc: qcom: smem: Handle big endian CPUs

2015-08-28 Thread Stephen Boyd
The contents of smem are always in little endian, but the smem driver is not capable of being used on big endian CPUs. Annotate the little endian data members and update the code to do the proper byte swapping. Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- drivers/soc/qcom/smem.c | 230

[PATCH] regulator: pfuze100: Remove unnecessary MODULE_ALIAS()

2015-08-28 Thread Javier Martinez Canillas
The driver has a I2C device id table that is used to create the modaliases and also "pfuze100-regulator" is not a supported I2C id, so is never used. Signed-off-by: Javier Martinez Canillas --- drivers/regulator/pfuze100-regulator.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH RFC V2 2/2] net: Optimize snmp stat aggregation by walking all the percpu data at once

2015-08-28 Thread Joe Perches
On Fri, 2015-08-28 at 17:06 -0700, Eric Dumazet wrote: > On Fri, 2015-08-28 at 16:12 -0700, Joe Perches wrote: > > Generally true. It's always difficult to know how much > > stack has been consumed though and smaller stack frames > > are generally better. [] > So for a _leaf_ function, it is

Re: [PATCH] Input: max8997_haptic - Fix module alias

2015-08-28 Thread Dmitry Torokhov
On Wed, Aug 26, 2015 at 02:19:41AM +0200, Javier Martinez Canillas wrote: > The driver is a platform driver and not a I2C driver so its modalias > should be exported with MODULE_DEVICE_TABLE(platform,...) instead of > MODULE_DEVICE_TABLE(i2c,...). > > Also, remove the unnecessary

Re: [PATCH] Input: elan_i2c - Fix typos for validpage_count

2015-08-28 Thread Dmitry Torokhov
On Wed, Aug 26, 2015 at 11:19:31AM -0700, Benson Leung wrote: > Search for "vaildpage_count" and replace with "validpage_count". > > Signed-off-by: Benson Leung Applied, thank you. > --- > drivers/input/mouse/elan_i2c_core.c | 18 +- > 1 file changed, 9 insertions(+), 9

Re: [PATCH 31/32] tools lib traceevent: Support function __get_dynamic_array_len

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 12:06 AM, Wang Nan wrote: From: He Kuang Support helper function __get_dynamic_array_len() in libtraceevent, this function is used accompany with __print_array() or __print_hex(), but currently it is not an available function in the function list of process_function(). The total

Re: [GIT PULL 00/32] perf tools: filtering events using eBPF programs

2015-08-28 Thread Alexei Starovoitov
On 8/28/15 12:05 AM, Wang Nan wrote: Hi Arnaldo, This time I adjust all Cc and Link field in each patch. Four new patches (1,2,3,12/32) is newly introduced for fixing a bug related to '--filter' option. Patch 06/32 is also modified. Please keep an eye on it. Arnaldo, what is the latest news

  1   2   3   4   5   6   7   8   9   10   >