Re: latency histogram with BPF

2015-06-11 Thread Wangnan (F)
On 2015/6/11 15:25, Daniel Wagner wrote: Hi Steven and Tom, I was playing a bit with BPF to see if it would be possible to get a preempt off latency histogram. On paper this looks like doable but adding kprobes on trace_preempt_[on|off] is not a clever idea. Who would have thought? :) In both

Re: [PATCH v1] ARM: zynq: Fix earlyprintk in big endian mode

2015-06-11 Thread Arun Chandran
On Thu, Jun 11, 2015 at 11:43 PM, Michal Simek wrote: > On 06/10/2015 04:13 PM, Arun Chandran wrote: >> earlyprintk messages are not appearing on the terminal >> emulator during a big endian kernel boot. If we >> byte swap the sending data it comes properly. >> >> Signed-off-by: Arun Chandran >>

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Herbert Xu
On Thu, Jun 11, 2015 at 11:50:06PM -0700, Tadeusz Struk wrote: > > Should I make it MPI[] rather than void * It should be in encoded format since only the algorithms should be decoding it. Otherwise you have craziness where RSA-specific knowledge is placed into x509_cert_parser.c to parse RSA key

[PATCH v2] ARM: zynq: Fix earlyprintk in big endian mode

2015-06-11 Thread Arun Chandran
earlyprintk messages are not appearing on the terminal emulator during a big endian kernel boot. In BE mode sending full words to UART will result in unprintable characters as they are byte swapped versions of printable ones. So send only bytes. Signed-off-by: Arun Chandran --- --- Changes since

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Tadeusz Struk
On 06/11/2015 07:59 PM, Herbert Xu wrote: >> +int crypto_akcipher_setkey(struct crypto_akcipher *tfm, >> > + const struct public_key *pkey) >> > +{ >> > + if (tfm->pkey) >> > + akcipher_free_key(tfm->pkey); >> > + >> > + return akcipher_clone_key(tfm, pkey); >> > +} >

Re: [PATCH] x86: General protection fault after STR (32 bit systems only)

2015-06-11 Thread Andy Lutomirski
On Thu, Jun 11, 2015 at 11:07 PM, Ingo Molnar wrote: > > * Srinivas Pandruvada wrote: > >> Suspend to RAM process is returning to userspsace with DS set to KERNEL_DS >> after resume, this cause general protection fault. [...] > > But s2ram has no influence on 'returning to user-space'. So unless

Re: [PATCH kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-11 Thread Gavin Shan
On Fri, Jun 12, 2015 at 04:19:17PM +1000, Alexey Kardashevskiy wrote: >The existing code puts all devices from a root PE to the same IOMMU group. >However it is a possible situation when subordinate buses belong to >separate PEs, in this case devices from these subordinate buses >should be added to

Re: [PATCH] staging: ste_rmi4: Add IRQF_ONESHOT flag

2015-06-11 Thread Abdul, Hussain (H.)
On Thursday 11 June 2015 08:06 PM, gre...@linuxfoundation.org wrote: > On Thu, Jun 11, 2015 at 10:14:49AM +, Abdul, Hussain (H.) wrote: >> This patch add IRQF_ONESHOT flag in threaded IRQs request without a primary >> handler. >> >> Signed-off-by: Abdul Hussain >> --- >> drivers/staging/ste_

Re: [PATCH v2] selinux: reduce locking overhead in inode_free_security()

2015-06-11 Thread Raghavendra K T
On 06/12/2015 03:01 AM, Waiman Long wrote: The inode_free_security() function just took the superblock's isec_lock before checking and trying to remove the inode security struct from the linked list. In many cases, the list was empty and so the lock taking is wasteful as no useful work is done. O

Re: [RFC PATCH v2] arm DMA: Fix allocation from CMA for coherent DMA

2015-06-11 Thread Lorenzo Nava
On Thu, Jun 11, 2015 at 4:26 PM, Catalin Marinas wrote: > On Wed, Jun 10, 2015 at 09:34:43PM +0200, Lorenzo Nava wrote: >> On Wed, Jun 10, 2015 at 6:28 PM, Catalin Marinas >> wrote: >> > On Wed, Jun 03, 2015 at 07:15:45PM +0200, Lorenzo Nava wrote: >> > > This patch allows the use of CMA for DMA

Re: [alsa-devel][PATCH 1/4] ASoC: wm8960: codec mclk should be enabled early to avoid jack detect error

2015-06-11 Thread Zidan Wang
On Thu, Jun 11, 2015 at 05:20:28PM +0100, Mark Brown wrote: > On Thu, Jun 11, 2015 at 07:14:33PM +0800, Zidan Wang wrote: > > It will playback from speaker in the first 2 seconds, then switch to > > headphone. Steps to reproduce this issue: > > 1. plug out headphone and playback a wav. > > 2. stop

Re: [PATCH] mvsas: always iounmap resources

2015-06-11 Thread Hannes Reinecke
On 05/22/2015 11:15 AM, Johannes Thumshirn wrote: > In case pci_resource_start() or pci_resource_len() reutrn 0, mvsas_ioremap > returns without doing an iounmap() of mvi->regs_ex. > > Found by the cocinelle tool. > > Signed-off-by: Johannes Thumshirn > --- > drivers/scsi/mvsas/mv_init.c | 5 ++

[RFC PATCH v7 37/37 -fix] perf record: Add clang options for compiling BPF scripts

2015-06-11 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 --- tools/perf/b

[PATCH kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-11 Thread Alexey Kardashevskiy
The existing code puts all devices from a root PE to the same IOMMU group. However it is a possible situation when subordinate buses belong to separate PEs, in this case devices from these subordinate buses should be added to lower level PE rather to the root PE. This limits pnv_ioda_setup_bus_dma

Re: [PATCH 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-11 Thread Lu, Baolu
On 06/12/2015 12:32 PM, Greg Kroah-Hartman wrote: On Fri, Jun 12, 2015 at 09:29:37AM +0800, Lu Baolu wrote: Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed root hub. The intention of that change was t

Re: latency histogram with BPF

2015-06-11 Thread Daniel Wagner
On 06/12/2015 12:08 AM, Alexei Starovoitov wrote: > On 6/11/15 12:25 AM, Daniel Wagner wrote: >> In both cases BPF or based on Tom's 'hist' triggers' patches, there is >> some trickery necessary to get it working. While the first approach >> has more flexibility what you want to measure or how you

Re: [RFC PATCH v7 37/37] perf record: Add clang options for compiling BPF scripts

2015-06-11 Thread Wangnan (F)
On 2015/6/12 13:35, Wang Nan wrote: 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. Si

Re: [PATCH] x86: General protection fault after STR (32 bit systems only)

2015-06-11 Thread Ingo Molnar
* Srinivas Pandruvada wrote: > Suspend to RAM process is returning to userspsace with DS set to KERNEL_DS > after resume, this cause general protection fault. [...] But s2ram has no influence on 'returning to user-space'. So unless I'm missing something this changelog makes no sense. Unfortun

[PATCH 3.4] ipv6: add check for blackhole or prohibited entry in rt6_redirect

2015-06-11 Thread Chen Weilong
From: Weilong Chen There's a check for ip6_null_entry, but it's not enough if the config CONFIG_IPV6_MULTIPLE_TABLES is selected. Blackhole or prohibited entries should also be ignored. This path is for kernel before v3.6, as there's a commit b94f1c0 use icmpv6_notify() instead of rt6_redirect()

[PATCH] perf, tools: Fix crash in 'perf trace'

2015-06-11 Thread Sukadev Bhattiprolu
>From 6669ed960a3ee4f9a02790f60b6a73ffc82fd6de Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Fri, 12 Jun 2015 01:28:36 -0400 Subject: [PATCH] perf, tools: Fix crash in perf trace I get following crash on multiple systems and across several releases (at least since v3.18). Cor

Re: [PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-11 Thread Krzysztof Kozlowski
On 12.06.2015 14:43, Javier Martinez Canillas wrote: > The Exynos interrupt combiner IP loses its state when the SoC enters > into a low power state during a Suspend-to-RAM. This means that if a > IRQ is used as a source, the interrupts for the devices are disabled > when the system is resumed from

Re: iio: what does in_accel_x_thresh_rising_en ?

2015-06-11 Thread Jonathan Cameron
On 11 June 2015 18:34:12 BST, Martin Kepplinger wrote: >Am 2015-06-10 um 22:49 schrieb Jonathan Cameron: >> On 09/06/15 17:03, Martin Kepplinger wrote: >>> hi >>> >>> Is the in_accel_thresh_rising_value (or falling) threshold value >signed >>> or unsigned? >>> >>> In other words: Is a RISING ev

Re: [PATCH v4 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-06-11 Thread Ming Lin
On Wed, 2015-06-10 at 15:06 -0700, Ming Lin wrote: > On Wed, Jun 10, 2015 at 2:46 PM, Mike Snitzer wrote: > > On Wed, Jun 10 2015 at 5:20pm -0400, > > Ming Lin wrote: > > > >> On Mon, Jun 8, 2015 at 11:09 PM, Ming Lin wrote: > >> > On Thu, 2015-06-04 at 17:06 -0400, Mike Snitzer wrote: > >> >>

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-06-11 Thread Javier Martinez Canillas
Hello Krzysztof, On Fri, Jun 12, 2015 at 3:53 AM, Krzysztof Kozlowski wrote: > The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. > However TSADC is present only on Exynos4210 so on Trats2 board (with > Exynos4412 SoC) the exynos-adc driver could not be probed: >ERROR: co

[RFC PATCH v7 14/37] bpf tools: Add bpf.c/h for common bpf operations

2015-06-11 Thread Wang Nan
This patch introduces bpf.c and bpf.h, which hold common functions issuing bpf syscall. The goal of these two files is to hide syscall completly from user. Note that bpf.c and bpf.h only deal with kernel interface. Things like structure of 'map' section in the ELF object is not cared by of bpf.[ch

[RFC PATCH v7 16/37] bpf tools: Relocate eBPF programs

2015-06-11 Thread Wang Nan
If an eBPF program accesses a map, LLVM generates a load instruction which loads an absolute address into a register, like this: ld_64 r1, ... call2 That ld_64 instruction will be recorded in relocation section. To enable the usage of that map, relocation must be done by replacing th

[RFC PATCH v7 11/37] bpf tools: Collect eBPF programs from their own sections

2015-06-11 Thread Wang Nan
This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I still prefer to ca

[RFC PATCH v7 15/37] bpf tools: Create eBPF maps defined in an object file

2015-06-11 Thread Wang Nan
This patch creates maps based on 'map' section in object file using bpf_create_map(), and stores the fds into an array in 'struct bpf_object'. Previous patches parse ELF object file and collecte required data, but doesn't play with kernel. They belong to 'opening' phase. This patch is the first pa

[RFC PATCH v7 10/37] bpf tools: Collect symbol table from SHT_SYMTAB section

2015-06-11 Thread Wang Nan
This patch collects symbols section. This section is useful when linking ELF maps. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/libbpf.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 3315f00..77ad7

[RFC PATCH v7 13/37] bpf tools: Record map accessing instructions for each program

2015-06-11 Thread Wang Nan
This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase), the collected instructions will be replaced by map loading instructions. Since we

[RFC PATCH v7 12/37] bpf tools: Collect relocation sections from SHT_REL sections

2015-06-11 Thread Wang Nan
This patch collects relocation sections into 'struct object'. Such sections are used for connecting maps to bpf programs. 'reloc' field in 'struct bpf_object' is introduced for storing such informations. This patch simply store the data into 'reloc' field. Following patch will parse them to know t

[RFC PATCH v7 17/37] bpf tools: Introduce bpf_load_program() to bpf.c

2015-06-11 Thread Wang Nan
bpf_load_program() can be used to load bpf program into kernel. To make loading faster, first try to load without logbuf. Try again with logbuf if the first try failed. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c | 34 ++ tools/li

[RFC PATCH v7 19/37] bpf tools: Introduce accessors for struct bpf_program

2015-06-11 Thread Wang Nan
This patch introduces accessors for user of libbpf to retrive section name and fd of a opened/loaded eBPF program. 'struct bpf_prog_handler' is used for that purpose. Accessors of programs section name and file descriptor are provided. Set/get private data are also impelmented. Signed-off-by: Wang

[PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-11 Thread Javier Martinez Canillas
The Exynos interrupt combiner IP loses its state when the SoC enters into a low power state during a Suspend-to-RAM. This means that if a IRQ is used as a source, the interrupts for the devices are disabled when the system is resumed from a sleep state so are not triggered. Save the interrupt enab

[RFC PATCH v7 20/37] bpf tools: Introduce accessors for struct bpf_object

2015-06-11 Thread Wang Nan
This patch add an accessor which allows caller to get count of programs in an object file. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/libbpf.c | 9 + tools/lib/bpf/libbpf.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tool

[RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-11 Thread Wang Nan
This is the 7th version which tries to introduce eBPF programs to perf. It enables 'perf record' to filter events using eBPF programs like: # perf record --event bpf-file.c sleep 1 and # perf record --event bpf-file.o sleep 1 This patch series is based on tip/perf/core (028c63b). Compare wit

[RFC PATCH v7 22/37] perf tools: Make perf depend on libbpf

2015-06-11 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 perf-*-src-pk

[RFC PATCH v7 18/37] bpf tools: Load eBPF programs in object files into kernel

2015-06-11 Thread Wang Nan
This patch utilizes previous introduced bpf_load_program to load programs in the ELF file into kernel. Result is stored in 'fd' field in 'struct bpf_program'. During loading, it allocs a log buffer and free it before return. Note that that buffer is not passed to bpf_load_program() if the first lo

[RFC PATCH v7 04/37] bpf tools: Open eBPF object file and do basic validation

2015-06-11 Thread Wang Nan
This patch defines basic interface of libbpf. 'struct bpf_object' will be the handler of each object file. Its internal structure is hide to user. eBPF object files are compiled by LLVM as ELF format. In this patch, libelf is used to open those files, read EHDR and do basic validation according to

[RFC PATCH v7 06/37] bpf tools: Check endianess and make libbpf fail early

2015-06-11 Thread Wang Nan
Check endianess according to EHDR. Code is taken from tools/perf/util/symbol-elf.c. Libbpf doesn't magically convert missmatched endianess. Even if we swap eBPF instructions to correct byte order, we are unable to deal with endianess in code logical generated by LLVM. Therefore, libbpf should sim

[RFC PATCH v7 26/37] perf tools: Auto detecting kernel build directory

2015-06-11 Thread Wang Nan
This patch detects kernel build directory using a embedded shell script 'kbuild_detector', which does this by checking existance of include/generated/autoconf.h. clang working directory is changed to kbuild directory if it is found, to help user use relative include path. Following patch will dete

[RFC PATCH v7 24/37] perf tools: Call clang to compile C source to object code

2015-06-11 Thread Wang Nan
This is the core patch for supporting eBPF on-the-fly compiling, does the following work: 1. Search clang compiler using search_program(). 2. Run command template defined in llvm-bpf-cmd-template option in [llvm] config section using read_from_pipe(). Patch of clang and source code path

[RFC PATCH v7 25/37] perf tests: Add LLVM test for eBPF on-the-fly compiling

2015-06-11 Thread Wang Nan
Previous patch introduces llvm__compile_bpf() to compile source file to eBPF object. This patch adds testcase to test it. It also test libbpf by opening generated object. Signed-off-by: Wang Nan --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 ++ tools/perf/tests

[RFC PATCH v7 02/37] bpf tools: Introduce 'bpf' library to tools

2015-06-11 Thread Wang Nan
This is the first patch of libbpf. The goal of libbpf is to create a standard way for accessing eBPF object files. This patch creates 'Makefile' and 'Build' for it, allows 'make' to build libbpf.a and libbpf.so, 'make install' to put them into proper directories. Most part of Makefile is borrowed f

[RFC PATCH v7 07/37] bpf tools: Iterate over ELF sections to collect information

2015-06-11 Thread Wang Nan
bpf_obj_elf_collect() is introduced to iterate over each elf sections to collection informations in eBPF object files. This function will futher enhanced to collect license, kernel version, programs, configs and map information. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib

[RFC PATCH v7 28/37] perf record: Enable passing bpf object file to --event

2015-06-11 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.

[RFC PATCH v7 05/37] bpf tools: Read eBPF object from buffer

2015-06-11 Thread Wang Nan
To support dynamic compiling, this patch allows caller to pass a in-memory buffer to libbpf by bpf_object__open_buffer(). libbpf calls elf_memory() to open it as ELF object file. Because __bpf_object__open() collects all required data and won't need that buffer anymore, libbpf uses that buffer dir

[RFC PATCH v7 27/37] perf tools: Auto detecting kernel include options

2015-06-11 Thread Wang Nan
To help user find correct kernel include options, this patch extracts them from kbuild system by an embedded script kinc_fetch_script, which creates a temporary directory, generates Makefile and an empty dummy.o then use the Makefile to fetch $(NOSTDINC_FLAGS), $(LINUXINCLUDE) and $(EXTRA_CFLAGS) o

[RFC PATCH v7 31/37] perf probe: Attach trace_probe_event with perf_probe_event

2015-06-11 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 give 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 dif

[RFC PATCH v7 30/37] perf tools: Parse probe points of eBPF programs during preparation

2015-06-11 Thread Wang Nan
This patch parses section name of each program, and creates corresponding 'struct perf_probe_event' structure. parse_perf_probe_command() is used to do the main parsing works. Parsing result is stored into a global array. This is because add_perf_probe_events() is non-reentrantable. In following p

Re: [PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Peter Hung
Greg KH 於 2015/6/12 下午 12:33 寫道: Why not just do the work now to clean up the file and get it merged "properly"? Why put this in staging at all? I'll clear up the file and resend it to usb-serial subsystem mail list. Thanks for your advices. -- With Best Regards, Peter Hung -- To unsubscribe

[RFC PATCH v7 32/37] perf record: Probe at kprobe points

2015-06-11 Thread Wang Nan
In this patch, kprobe points are created using add_perf_probe_events. Since all events are already grouped together in an array, calling add_perf_probe_events() once creates all of them. probe_conf.max_probes is set to MAX_PROBES to support glob matching. Signed-off-by: Wang Nan --- tools/perf/

[RFC PATCH v7 23/37] perf tools: Introduce llvm config options

2015-06-11 Thread Wang Nan
This patch introduces [llvm] config section with 5 options. Following patches will use then to config llvm dynamica compiling. 'llvm-utils.[ch]' is introduced in this patch for holding all llvm/clang related stuffs. Example: [llvm] # Path to clang. If omit, search it from $PATH.

[RFC PATCH v7 29/37] perf record: Compile scriptlets if pass '.c' to --event

2015-06-11 Thread Wang Nan
This patch enables 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 source file or obj

[RFC PATCH v7 33/37] perf record: Load all eBPF object into kernel

2015-06-11 Thread Wang Nan
This patch utilizes bpf_load_object() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan --- tools/perf/builtin-record.c | 12 tools/perf/util/bpf-loader.c | 19 +++ tools/perf/util/bpf-loader.h | 2 ++ 3 files changed, 33 insertions(+) di

[RFC PATCH v7 36/37] perf tools: Suppress probing messages when probing by BPF loading

2015-06-11 Thread Wang Nan
This patch suppress 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: perf_bpf_probe:lo

[RFC PATCH v7 01/37] tools build: Add feature check for eBPF API

2015-06-11 Thread Wang Nan
In this patch, eBPF API is checked by compiling a c source file which uses fields in bpf_attr which will be used by libbpf. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/build/Makefile.feature | 6 -- tools/build/feature/Makefile | 6 +- tools/build/feature/test-b

[RFC PATCH v7 35/37] perf tools: Attach eBPF program to perf event

2015-06-11 Thread Wang Nan
In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor of the eBPF program is passed to perf record using previous patches, and stored into evsel->bpf_fd. It is possible that different perf event are created for one kprobe event

[RFC PATCH v7 03/37] bpf tools: Allow caller to set printing function

2015-06-11 Thread Wang Nan
By libbpf_set_print(), users of libbpf are allowed to register he/she own debug, info and warning printing functions. Libbpf will use those functions to print messages. If not provided, default info and warning printing functions are fprintf(stderr, ...); default debug printing is NULL. This API i

[RFC PATCH v7 34/37] perf tools: Add bpf_fd field to evsel and config it

2015-06-11 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__for_each_program() function is added. Which calls the callback function for each eBPF programs with their event structure and file descriptors. In evlist.c, perf_evlist__add_bpf() is added to

[RFC PATCH v7 37/37] perf record: Add clang options for compiling BPF scripts

2015-06-11 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 --- tools/perf/b

[RFC PATCH v7 21/37] bpf tools: Link all bpf objects onto a list

2015-06-11 Thread Wang Nan
To prevent caller from creating additional structures to hold pointers of 'struct bpf_object', this patch link all such structures onto a list (hidden to user). bpf_object__for_each() is introduced to allow users iterate over each objects. bpf_object__for_each() is safe even user close the object d

[RFC PATCH v7 09/37] bpf tools: Collect map definitions from 'maps' section

2015-06-11 Thread Wang Nan
If maps are used by eBPF programs, corresponding object file(s) should contain a section named 'map'. Which contains map definitions. This patch copies the data of the whole section. Map data parsing should be acted just before map loading. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --

[RFC PATCH v7 08/37] bpf tools: Collect version and license from ELF sections

2015-06-11 Thread Wang Nan
Expand bpf_obj_elf_collect() to collect license and kernel version information in eBPF object file. eBPF object file should have a section named 'license', which contains a string. It should also have a section named 'version', contains a u32 LINUX_VERSION_CODE. bpf_obj_validate() is introduced to

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-11 Thread Mike Galbraith
On Thu, 2015-05-28 at 13:05 +0200, Peter Zijlstra wrote: > @@ -5022,22 +5026,28 @@ select_task_rq_fair(struct task_struct *p, int > prev_cpu, int sd_flag, int wake_f >* If both cpu and prev_cpu are part of this domain, >* cpu is a valid SD_WAKE_AFFINE target. >

Re: [PATCH v2] w1: masters: omap_hdq: Add support for 1-wire mode

2015-06-11 Thread Vignesh R
Hi, On Thursday 11 June 2015 09:04 PM, Evgeniy Polyakov wrote: > Hi > > 25.05.2015, 08:15, "Vignesh R" : >>> HDQ mode remains unchanged. >>> >>> Signed-off-by: Vignesh R > > I have no experience with omap_hdq platform, but there are quite a few > questions > related to IO - you never check w

Re: [PATCH 2/2] staging: rtl8188eu: remove unused variables

2015-06-11 Thread Sudip Mukherjee
On Thu, Jun 11, 2015 at 06:39:09PM +0530, Sudip Mukherjee wrote: > These variables were being set but not used afterwards. > > --- a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c > +++ b/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c > @@ -147,18 +147,14 @@ inline struct sta_info > *rtw_get_stainfo

[PATCH perf/core 4/4] [BUGFIX] perf probe: Show usage even if the last event is skipped

2015-06-11 Thread Masami Hiramatsu
When the last part of converted events are blacklisted or out-of-text, those are skipped and perf probe doesn't show usage examples. This fixes it to show the example even if the last part of event list is skipped. E.g. without this patch, events are added, but suddenly end; # perf probe

[PATCH perf/core 3/4] [BUGFIX] perf probe: Check non-probe-able symbols when using symbol map

2015-06-11 Thread Masami Hiramatsu
Fix to check both of non-exist symbols and kprobe blacklist symbols at symbol-map based converting too. E.g. without this fix, perf-probe failes to write the event. # perf probe vfs_caches_init_early Added new event: Failed to write event: Invalid argument Error: Failed to add eve

[PATCH perf/core 0/4] perf-probe bugfixes

2015-06-11 Thread Masami Hiramatsu
Hi Arnaldo, Here is a series of bugfix patches for perf-probe. I've fixed some bugs on non-debuginfo environment. This series fixes below bugs; - --list shows the list of probes in stderr. (It is refined from https://lkml.org/lkml/2015/5/30/34) - failed to probe on gcc optimized symbols whic

[PATCH perf/core 2/4] [BUGFIX] perf probe: Cut off the postfixes from event name

2015-06-11 Thread Masami Hiramatsu
Cut off the postfixes which gcc added for optimized routines from the event name automatically generated from symbol name, since *probe-events doesn't accept it. Those symbols will be used if we don't use debuginfo to find target functions. E.g. without this fix; - # perf probe -va alloc_b

[PATCH perf/core 1/4] [BUGFIX] perf probe: List probes in stdout

2015-06-11 Thread Masami Hiramatsu
Since commit 5e17b28f1e24 ("perf probe: Add --quiet option to suppress output result message") have replaced printf with pr_info, perf probe -l outputs its result in stderr. However, that is not what the commit expected. e.g. - # perf probe -l > /dev/null probe:vfs_read (on vfs_re

Re: [PATCH v14 0/3] ARM: rk3288: Add PM Domain support

2015-06-11 Thread Caesar Wang
Hi Kevin, Heiko Thanks for your comments. Sorry for delay reply. 在 2015年04月28日 02:28, Kevin Hilman 写道: Heiko Stübner writes: Am Freitag, 24. April 2015, 16:07:45 schrieb Caesar Wang: Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288.

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Chanwoo Choi
Dear Greg, On 06/12/2015 01:29 PM, Greg KH wrote: > On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: >> This patch just redefine the unique id of supported external connectors >> without >> 'enum extcon' type. Because unique id would be used on devictree file(*.dts) >> to >> indicat

RE: [v4 12/16] KVM: kvm-vfio: implement the VFIO skeleton for VT-d Posted-Interrupts

2015-06-11 Thread Wu, Feng
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, June 12, 2015 1:15 AM > To: Wu, Feng > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; > mtosa...@redhat.com; eric.au...@linaro.org > Subject: Re: [v4 12/16] KVM:

RE: [v4 13/16] KVM: x86: kvm-vfio: VT-d posted-interrupts setup

2015-06-11 Thread Wu, Feng
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, June 12, 2015 1:16 AM > To: Wu, Feng > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; > mtosa...@redhat.com; eric.au...@linaro.org > Subject: Re: [v4 13/16] KVM:

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Chanwoo Choi
Dear Greg, On 06/12/2015 01:27 PM, Greg KH wrote: > On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: >> This patch just redefine the unique id of supported external connectors >> without >> 'enum extcon' type. Because unique id would be used on devictree file(*.dts) >> to >> indicat

Re: [PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:43:12AM +0800, Peter Hung wrote: > This driver is for Fintek F81532/F81534 USB to Serial Ports IC. > > Features: > 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC > 2. Support Baudrate from B50 to B150 (excluding B100). > 3.

Re: [PATCH 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-11 Thread Greg Kroah-Hartman
On Fri, Jun 12, 2015 at 09:29:37AM +0800, Lu Baolu wrote: > Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports > Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed > root hub. The intention of that change was to avoid touching usb core > internal field, a.k.a

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: > This patch just redefine the unique id of supported external connectors > without > 'enum extcon' type. Because unique id would be used on devictree file(*.dts) > to > indicate the specific external connectors like key number of inpu

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: > This patch just redefine the unique id of supported external connectors > without > 'enum extcon' type. Because unique id would be used on devictree file(*.dts) > to > indicate the specific external connectors like key number of inpu

Re: [PATCH v3 2/2] x86, mwaitt: introduce mwaix delay with a configurable timer

2015-06-11 Thread Huang Rui
On Thu, Jun 11, 2015 at 10:34:15AM -0700, Andy Lutomirski wrote: > On Thu, Jun 11, 2015 at 7:14 AM, Huang Rui wrote: > > MWAITX can enable a timer and a corresponding timer value specified in SW > > P0 clocks. The SW P0 frequency is the same with TSC. The timer provides an > > upper bound on how l

Re: [PATCH non-pretimeout 4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-11 Thread Timur Tabi
fu@linaro.org wrote: + if (timeout <= gwdt->max_wor_timeout) + writel_relaxed(timeout * gwdt->clk, + gwdt->control_base + SBSA_GWDT_WOR); + else + writel_relaxed(gwdt->max_wor_timeout * gwdt->clk, +

Re: diffs in changelogs

2015-06-11 Thread Joe Perches
On Thu, 2015-06-11 at 20:21 -0700, Andrew Morton wrote: > On Thu, 11 Jun 2015 20:12:59 -0700 Joe Perches wrote: > > > On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > > > People often put diff snippets in changelogs. This causes problems > > > when one tries to apply a file containing b

[REGRESSION] NFS is creating a hidden port (left over from xs_bind() )

2015-06-11 Thread Steven Rostedt
I recently upgraded my main server to 4.0.4 from 3.19.5 and rkhunter started reporting a hidden port on my box. Running unhide-tcp I see this: # unhide-tcp Unhide-tcp 20121229 Copyright © 2012 Yago Jesus & Patrick Gouin License GPLv3+ : GNU GPL version 3 or later http://www.unhide-forensics.inf

[PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Peter Hung
This driver is for Fintek F81532/F81534 USB to Serial Ports IC. Features: 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC 2. Support Baudrate from B50 to B150 (excluding B100). 3. The RTS signal can be transformed their behavior with configura

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-11 Thread Rik van Riel
On 06/11/2015 04:33 PM, Josef Bacik wrote: > Ugh I'm sorry, I've been running tests trying to get the numbers to look > good when I noticed I was getting some inconsistencies in my results. > Turns out I never actually tested your patch just plain, I had been > testing it with BALANCE_WAKE, becaus

Re: [PATCH v6 2/3] IB/ipath: add counting for MTRR

2015-06-11 Thread Doug Ledford
On 06/11/2015 03:54 PM, Borislav Petkov wrote: > On Thu, Jun 11, 2015 at 10:50:01AM -0700, Luis R. Rodriguez wrote: >> From: "Luis R. Rodriguez" >> >> There is no good reason not to, we eventually delete it as well. >> >> Cc: Toshi Kani >> Cc: Roland Dreier >> Cc: Sean Hefty >> Cc: Hal Rosensto

linux-next: manual merge of the l2-mtd tree with the mips tree

2015-06-11 Thread Michael Ellerman
Hi Brian, Today's linux-next merge of the l2-mtd tree got a conflict in MAINTAINERS between commit 68c2d21d0126 "MIPS: BCM47xx: Move NVRAM driver to the drivers/firmware/" from the mips tree and commit 02787daadbda "MAINTAINERS: add entry for new brcmnand/ directory" from the l2-mtd tree. I fixed

Re: [PATCH] module: make perm const, change BUG_ON to BUILD_BUG_ON

2015-06-11 Thread Dan Streetman
On Thu, Jun 11, 2015 at 9:43 PM, Rusty Russell wrote: > Dan Streetman writes: >> Change the struct kernel_param.perm field to a const, as it should never >> be changed. Add inline functions that return a const value, which are >> compiled out, for kparam_[un]block_sysfs_r/w() macros to use; and

Re: diffs in changelogs

2015-06-11 Thread Andrew Morton
On Thu, 11 Jun 2015 20:12:59 -0700 Joe Perches wrote: > On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > > People often put diff snippets in changelogs. This causes problems > > when one tries to apply a file containing both the changelog and the > > diff because patch(1) tries to apply

[PATCH tip/perf/core] tools lib traceevent: Fix python/perf.so compiling error

2015-06-11 Thread Wang Nan
'make build-test' finds an error that make_python_perf_so fails due to missing of libtraceevent-dynamic-list: '.../python2' util/setup.py \ --quiet build_ext; \ mkdir -p python && \ cp python_ext_build/lib/perf.so python/ /path/to/ld: cannot open linker script file /path/to/kernel/to

Re: [PATCH] kernel/params.c: make use of unused but set variable

2015-06-11 Thread Louis Langholtz
Hi Tejun, On Jun 10, 2015, at 7:54 PM, Tejun Heo wrote: > Hey, Louis. > > On Wed, Jun 10, 2015 at 11:05:21AM -0600, Louis Langholtz wrote: >> The underlying code for sysfs_create_file does call WARN to warn about >> any errors. So it's not like the code is totally silent anyway. Then the >> un

[PATCH v3 1/3] NTP: rtc: Add CONFIG_RTC_SYSTOHC_DEVICE for NTP synchronization

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang Currently, CONFIG_RTC_SYSTOHC uses CONFIG_RTC_HCTOSYS_DEVICE which is originally used by CONFIG_RTC_HCTOSYS, but this rtc device has some limiations, for example, it must be battery-backed, be able to work with irq off and through system suspension, etc. So add CONFIG_RTC_SYSTO

Re: [PATCH v2 6/6] regulator: qcom-spmi: Add vendor specific configuration

2015-06-11 Thread Rob Herring
On Thu, Jun 11, 2015 at 7:37 PM, Stephen Boyd wrote: > Add support for over current protection (OCP), pin control > selection, soft start and soft start strength, auto-mode, input > current limiting, and pull down. > > Cc: > Signed-off-by: Stephen Boyd > --- > > Changes from v1: > * New patch sp

[PATCH v3 2/3] sparc: time: Replace update_persistent_clock() with CONFIG_RTC_SYSTOHC

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang On Sparc systems, update_persistent_clock() uses RTC drivers to do the job, it makes more sense to hand it over to CONFIG_RTC_SYSTOHC. In the long run, all the update_persistent_clock() should migrate to proper class RTC drivers if any and use CONFIG_RTC_SYSTOHC instead. Signe

[PATCH v3 3/3] drivers/rtc/interface.c: Remove rtc_set_mmss()

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang Now rtc_set_mmss() has no users, just remove it. We still have rtc_set_time() doing similar things. Signed-off-by: Xunlei Pang --- drivers/rtc/interface.c | 45 - include/linux/rtc.h | 1 - 2 files changed, 46 deletions(-) di

Re: diffs in changelogs

2015-06-11 Thread Joe Perches
On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > People often put diff snippets in changelogs. This causes problems > when one tries to apply a file containing both the changelog and the > diff because patch(1) tries to apply the diff which it found in the > changelog. That > eg, somethi

perf: aux area related crash and warnings

2015-06-11 Thread Vince Weaver
The fuzzer turned these up (this is 4.1-rc7 with the fasync patch applied) on a Haswell. I'm listing the crash first, but the warning happened earlier, not sure if it is related. [36298.986117] BUG: spinlock recursion on CPU#4, perf_fuzzer/3410 [36298.992915] lock: 0x88011edf7cd0, .magic:

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Herbert Xu
On Thu, Jun 11, 2015 at 12:05:44PM -0700, Tadeusz Struk wrote: > > +int crypto_akcipher_setkey(struct crypto_akcipher *tfm, > +const struct public_key *pkey) > +{ > + if (tfm->pkey) > + akcipher_free_key(tfm->pkey); > + > + return akcipher_clone_key(tfm,

  1   2   3   4   5   6   7   8   9   >