[PATCH] perf ui/tui: Fix a small callchain display bug

2014-08-13 Thread Namhyung Kim
The currently when perf TUI report shows callchain, the first level chains have bogus '+' sign even though only the last one has children. Since they are on a single line of the chain, toggling intermediate entries has no effect. Fix it to show '+' sign at the last entry only. Note that

Re: io-domain voltages as regulators?

2014-08-13 Thread Yuvaraj Cd
On Tue, Aug 12, 2014 at 8:43 PM, Doug Anderson diand...@chromium.org wrote: Hi, On Mon, Aug 11, 2014 at 5:46 AM, Ulf Hansson ulf.hans...@linaro.org wrote: On 11 August 2014 09:44, Linus Walleij linus.wall...@linaro.org wrote: On Mon, Aug 4, 2014 at 12:18 AM, Heiko Stübner he...@sntech.de

Re: [PATCH 01/13] perf script: Fix possible memory leaks

2014-08-13 Thread Adrian Hunter
On 08/12/2014 09:40 AM, Namhyung Kim wrote: Some paths in perf script don't call perf_session__delete() after creating a new session. Cc: Adrian Hunter adrian.hun...@intel.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/builtin-script.c | 35

[PATCH 1/1] IIO: Added write function in iio_buffer_fileops

2014-08-13 Thread a . mathur
From: Aniroop Mathur a.mat...@samsung.com Earlier, user space can only read from iio device node but cannot write to it. This patch adds write function in iio buffer file operations, which will allow user-space applications/HAL to write the data to iio device node. So now there will be two way

Re: [PATCH v7] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-13 Thread Hannes Petermaier
Known issue: If gpios are in use(export to userspace through sysfs interface, etc), then call pl2303_release(unplug usb-serial convertor, modprobe -r, etc), will cause trouble, so we need to make sure there is no gpio user before call pl2303_release. This is a real problem that

Re: [PATCH V5] Save command pool address of Scsi_Host

2014-08-13 Thread Hannes Reinecke
On 08/04/2014 01:30 PM, jgr...@suse.com wrote: From: Juergen Gross jgr...@suse.com If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool

Re: [PATCH v2 1/3] ARM: EXYNOS: Fix build with PM_SLEEP=n and ARM_EXYNOS_CPUIDLE=n

2014-08-13 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, August 12, 2014 10:49:12 PM Daniel Lezcano wrote: On 08/12/2014 05:11 PM, Bartlomiej Zolnierkiewicz wrote: Fix building of exynos_defconfig with disabled CONFIG_PM_SLEEP by adding checking whether Exynos cpuidle support is enabled before accessing exynos_enter_aftr.

Re: [PATCH] Documentation: DocBook: Rename drm_stub.c to drm_drv.c cause 'make xmldocs' failed

2014-08-13 Thread Randy Dunlap
On 08/12/14 18:17, Fabio Estevam wrote: On Tue, Aug 12, 2014 at 2:30 PM, Randy Dunlap rdun...@infradead.org wrote: This patch fixed 'make xmldocs' failed on linus's tree and linux-next as of 8th/Aug,2014. When drm merge for 3.17-rc1 happen, a file was renamed from drm_stub.c to drm_drv.c.

[RESEND 1/5] RAS, trace: Update error definition format

2014-08-13 Thread Chen, Gong
Previous format definition uses MACRO BIT(...), which is not very maintainable as Bjorn mentioned before: I'd like to see all those BIT(...) things changed to use the #defines that already exist in include/uapi/linux/pci_regs.h, e.g., PCI_ERR_COR_RCVR. That way grep will find these uses, which

[RESEND 0/5] PCIe, AER: Misc cleanup

2014-08-13 Thread Chen, Gong
No response since last commit so spread it to a bigger range. This patch series is for AER related cleanup update based on PCIe SPEC r3.0. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread H. Peter Anvin
On 08/12/2014 10:32 PM, Chen Gang wrote: Yeah, we need. The solution you suggest assumes that an arch is either little or big endian. But we cannot ignore the hybriads that can do both. For the architectures which can do both, for me, they are: sh, powerpc, m32r, and mips (may mark

[RESEND 2/5] PCIe, AER: Replenish missed AER status bits for AER driver

2014-08-13 Thread Chen, Gong
Since commit 6c2b374d is commited, the capability of PCI-e AER has changed a lot. This patch adds all missed CE/UC error bits existed in PCI-e SPEC r3.0. Meanwhile, adjust the code format to make it simpler to read/maintain. Signed-off-by: Chen, Gong gong.c...@linux.intel.com ---

[RESEND RFC 5/5] PCIe, AER: Update initial value of UC error mask

2014-08-13 Thread Chen, Gong
In PCI-e SPEC r3.0, BIT 0 of Uncorrectable Error Status Register is redefined and it has an explicit requirement that when writing this field, a value of 1b is the only choice. So change previous initial maks from 0 to 1. Signed-off-by: Chen, Gong gong.c...@linux.intel.com --- NOTE: After

[RESEND 4/5] PCIe, AER: Make AER UC status naming clearer

2014-08-13 Thread Chen, Gong
In PCI-e SPEC r3.0, BIT 0 of Uncorrectable Error Status Register has been redefined for a different purpose. BIT 0: Undefined ??? The value read from this bit is undefined. In previous versions of this specification, this bit was used to mask a Link Training

[RESEND 3/5] PCIe, trace: Replenish missed AER status bits for PCIE trace I/F

2014-08-13 Thread Chen, Gong
This patch adds all missed AER error bits(CE UC) existed in PCI-e SPEC r3.0 for trace interface. Signed-off-by: Chen, Gong gong.c...@linux.intel.com --- include/ras/ras_event.h | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git

Re: [RFC PATCH 0/3] ftrace: Add a ftrace test collection

2014-08-13 Thread Namhyung Kim
Hi Steve and Masami, On Tue, 5 Aug 2014 17:37:52 -0400, Steven Rostedt wrote: Hi Masami, This looks great. I'm a bit busy at the moment (just came back from vacation, and digging myself out of the hole that left me). But I definitely want this in. I have a bunch of tests too, that I can put

Re: [PATCH RFC] time: drop do_sys_times spinlock

2014-08-13 Thread Mike Galbraith
On Tue, 2014-08-12 at 21:12 +0200, Oleg Nesterov wrote: On 08/12, Rik van Riel wrote: Back in 2009, Spencer Candland pointed out there is a race with do_sys_times, where multiple threads calling do_sys_times can sometimes get decreasing results. https://lkml.org/lkml/2009/11/3/522

Re: [PATCH 01/13] perf script: Fix possible memory leaks

2014-08-13 Thread Namhyung Kim
On Wed, 13 Aug 2014 09:21:31 +0300, Adrian Hunter wrote: On 08/12/2014 09:40 AM, Namhyung Kim wrote: input = open(file.path, O_RDONLY); /* input_name */ if (input 0) { perror(failed to open file); -return -1; +

Re: [PATCH v7] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-13 Thread Johan Hovold
On Wed, Aug 13, 2014 at 08:17:50AM +0200, Hannes Petermaier wrote: Known issue: If gpios are in use(export to userspace through sysfs interface, etc), then call pl2303_release(unplug usb-serial convertor, modprobe -r, etc), will cause trouble, so we need to make sure there is no

Re: [PATCH] I2C: Make I2C core able to be module when I2C_ACPI is selected.

2014-08-13 Thread Mika Westerberg
On Wed, Aug 13, 2014 at 10:50:32AM +0800, Lan Tianyu wrote: On 2014年08月13日 10:03, Wolfram Sang wrote: On Tue, Aug 12, 2014 at 12:53:21PM +0300, Mika Westerberg wrote: On Mon, Aug 11, 2014 at 03:00:55PM +0800, Lan Tianyu wrote: Commit da3c6647(I2C/ACPI: Clean up I2C ACPI code and Add

[PATCH] Fix checkpatch error's for mm/mmap.c

2014-08-13 Thread vishnu.ps
From: vishnu.ps vishnu...@samsung.com Signed-off-by: vishnu.ps vishnu...@samsung.com --- mm/mmap.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 80217c9..5cce169 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@

Re: [PATCH v7] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-13 Thread Greg KH
On Wed, Aug 13, 2014 at 09:05:09AM +0200, Johan Hovold wrote: On Wed, Aug 13, 2014 at 08:17:50AM +0200, Hannes Petermaier wrote: Known issue: If gpios are in use(export to userspace through sysfs interface, etc), then call pl2303_release(unplug usb-serial convertor, modprobe -r,

POSLEDNÁ OZNÁMENIE

2014-08-13 Thread El
POSLEDNÁ OZNÁMENIE VÁŠ EMAIL ID získal (450,000.00 EUR) v španielskom El Gordo International E-mail lotérie ocenenie sa štastné císla 9/11/13/24/43 a Ref: ES/9420X2/68. Pre objasnenie a riadenie Kontakt: STALLION MEGA NÁROK AGENCY Pán, Juan Carlos E-mail, infosta...@aol.com Tel :0034-632 662 036

Re: [RFC PATCH 0/3] ftrace: Add a ftrace test collection

2014-08-13 Thread Namhyung Kim
On Wed, 13 Aug 2014 15:59:04 +0900, Namhyung Kim wrote: On Tue, 5 Aug 2014 17:37:52 -0400, Steven Rostedt wrote: Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: - What's the good naming method of testcases? I'm okay with the ftracetest, but tracing-test may be an option. :) Ouch,

RE: [f2fs-dev] [PATCH 01/13] f2fs: should convert inline_data during the mkwrite

2014-08-13 Thread Chao Yu
Hi Jaegeuk, -Original Message- From: Jaegeuk Kim [mailto:jaeg...@kernel.org] Sent: Wednesday, August 13, 2014 3:49 AM To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [f2fs-dev] [PATCH 01/13] f2fs:

[PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m

2014-08-13 Thread Randy Dunlap
...@samsung.com --- drivers/extcon/Kconfig |1 + 1 file changed, 1 insertion(+) Index: linux-next-20140813/drivers/extcon/Kconfig === --- linux-next-20140813.orig/drivers/extcon/Kconfig +++ linux-next-20140813/drivers/extcon

Re: [PATCH] Fix checkpatch error's for mm/mmap.c

2014-08-13 Thread Richard Weinberger
On Wed, Aug 13, 2014 at 9:08 AM, vishnu.ps vishnu...@samsung.com wrote: From: vishnu.ps vishnu...@samsung.com Signed-off-by: vishnu.ps vishnu...@samsung.com --- mm/mmap.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) Please don't run

Re: Implement lbr-as-callgraph v9

2014-08-13 Thread Jiri Olsa
On Tue, Aug 12, 2014 at 10:55:24PM +0200, Andi Kleen wrote: On Tue, Aug 12, 2014 at 03:50:17PM +0200, Jiri Olsa wrote: On Thu, Jul 31, 2014 at 10:17:00AM -0700, Andi Kleen wrote: SNIP v5: - Rename functions - Fix gtk build problem - Fix crash without -g - Improve error

Re: [PATCH] I2C: Make I2C core able to be module when I2C_ACPI is selected.

2014-08-13 Thread Lan Tianyu
On 2014年08月13日 15:07, Mika Westerberg wrote: On Wed, Aug 13, 2014 at 10:50:32AM +0800, Lan Tianyu wrote: On 2014年08月13日 10:03, Wolfram Sang wrote: On Tue, Aug 12, 2014 at 12:53:21PM +0300, Mika Westerberg wrote: On Mon, Aug 11, 2014 at 03:00:55PM +0800, Lan Tianyu wrote: Commit

Re: [PATCH] powerpc: non-GPL export for eeh_dev_check_failure

2014-08-13 Thread Vishal Mansur
On 8/11/2014 8:46 AM, Benjamin Herrenschmidt wrote: On Tue, 2014-08-05 at 15:51 +0100, One Thousand Gnomes wrote: On Tue, 05 Aug 2014 20:12:09 +0530 Vishal Mansur vman...@linux.vnet.ibm.com wrote: EEH kernel services are inconsistently exported by the kernel. eeh_check_failure is exported

Re: [PATCH 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-13 Thread Thierry Reding
On Tue, Aug 05, 2014 at 11:12:58AM +0300, Mikko Perttunen wrote: Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Thierry Reding
On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC by sending an I2C message to the PMIC. The entries specify the I2C

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 14:51, H. Peter Anvin wrote: On 08/12/2014 10:32 PM, Chen Gang wrote: Yeah, we need. The solution you suggest assumes that an arch is either little or big endian. But we cannot ignore the hybriads that can do both. For the architectures which can do both, for me, they are:

Re: [PATCH] cpufreq, store_scaling_governor requires policy-rwsem to be held for duration of changing governors [v2]

2014-08-13 Thread Viresh Kumar
On 12 August 2014 17:03, Prarit Bhargava pra...@redhat.com wrote: Okay, this is what I have and I can reproduce this *easily* 100% of the time. I've used your above config options and have enabled LOCKDEP. In order to restore the locking, I've applied the following patch to the cpufreq

Re: [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m

2014-08-13 Thread Chanwoo Choi
: MyungJoo Ham myungjoo@samsung.com Cc: Chanwoo Choi cw00.c...@samsung.com --- drivers/extcon/Kconfig |1 + 1 file changed, 1 insertion(+) Index: linux-next-20140813/drivers/extcon/Kconfig === --- linux-next-20140813.orig

[PATCH v4 0/4] Introduce MEN 14F021P BMC driver series

2014-08-13 Thread Andreas Werner
This patch set add support for the MEN 14F021P00 Board Management called BMC. The BMC is a PIC Mikrocontroller which assembled on almost all of our 3U Compact PCI CPU board and a few Box PCs. main part of the BMC is to start and monitor the board, but there are a lot more features which can be

[PATCH v4 1/4] drivers/mfd/menf21bmc: introduce MEN 14F021P00 BMC MFD Core driver

2014-08-13 Thread Andreas Werner
The MEN 14F021P00 Board Management Controller provides an I2C interface to the host to access the feature implemented in the BMC. The BMC is a PIC Microntroller assembled on CPCI Card from MEN Mikroelektronik and on a few Box/Display Computer. Added MFD Core driver, supporting the I2C

[PATCH v4 3/4] drivers/leds/leds-menf21bmc: introduce MEN 14F021P00 BMC LED driver

2014-08-13 Thread Andreas Werner
Added driver to support the 14F021P00 BMC LEDs. The BMC is a Board Management Controller including four LEDs which can be switched on and off. Signed-off-by: Andreas Werner andreas.wer...@men.de --- drivers/leds/Kconfig | 6 ++ drivers/leds/Makefile | 1 +

[PATCH v4 4/4] drivers/hwmon/menf21bmc_hwmon: introduce MEN14F021P00 BMC HWMON driver

2014-08-13 Thread Andreas Werner
Added driver to support the 14F021P00 BMC Hardware Monitoring. The BMC is a Board Management Controller including monitoring of the board voltages. Signed-off-by: Andreas Werner andreas.wer...@men.de --- drivers/hwmon/Kconfig | 7 ++ drivers/hwmon/Makefile | 1 +

[PATCH v4 2/4] drivers/watchdog/menf21bmc_wdt: introduce MEN 14F021P00 BMC Watchdog driver

2014-08-13 Thread Andreas Werner
Added driver to support the 14F021P00 BMC Watchdog. The BMC is a Board Management Controller including watchdog functionality. Signed-off-by: Andreas Werner andreas.wer...@men.de --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/Makefile| 1 +

Re: [PATCH v5 0/5] random,x86,kvm: Rework arch RNG seeds and get some from kvm

2014-08-13 Thread H. Peter Anvin
On 08/12/2014 12:22 PM, Andy Lutomirski wrote: On Tue, Aug 12, 2014 at 12:17 PM, Theodore Ts'o ty...@mit.edu wrote: On Tue, Aug 12, 2014 at 12:11:29PM -0700, Andy Lutomirski wrote: What's the status of this series? I assume that it's too late for at least patches 2-5 to make it into 3.17.

Re: [PATCH 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:35, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:58AM +0300, Mikko Perttunen wrote: Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:37, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC

Re: [PATCH 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-08-13 Thread Thierry Reding
On Tue, Aug 05, 2014 at 11:13:00AM +0300, Mikko Perttunen wrote: This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra114 and Tegra124. The thermal reset only works when the thermal The binding updates in patch

[PATCH RFC v4 net-next 00/26] BPF syscall, maps, verifier, samples, llvm

2014-08-13 Thread Alexei Starovoitov
Hi All, one more RFC... Major difference vs previous set is a new 'load 64-bit immediate' eBPF insn. Which is first 16-byte instruction. It shows how eBPF ISA can be extended while maintaining backward compatibility, but mainly it cleans up eBPF program access to maps and improves run-time

[PATCH RFC v4 net-next 06/26] bpf: add hashtable type of BPF maps

2014-08-13 Thread Alexei Starovoitov
add new map type: BPF_MAP_TYPE_HASH and its simple (not auto resizeable) hash table implementation Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- include/uapi/linux/bpf.h |1 + kernel/bpf/Makefile |2 +- kernel/bpf/hashtab.c | 372

[PATCH RFC v4 net-next 08/26] bpf: handle pseudo BPF_CALL insn

2014-08-13 Thread Alexei Starovoitov
in native eBPF programs userspace is using pseudo BPF_CALL instructions which encode one of 'enum bpf_func_id' inside insn-imm field. Verifier checks that program using correct function arguments to given func_id. If all checks passed, kernel needs to fixup BPF_CALL-imm fields by replacing func_id

[PATCH RFC v4 net-next 03/26] bpf: introduce syscall(BPF, ...) and BPF maps

2014-08-13 Thread Alexei Starovoitov
BPF syscall is a demux for different BPF releated commands. 'maps' is a generic storage of different types for sharing data between kernel and userspace. The maps can be created from user space via BPF syscall: - create a map with given type and attributes fd = bpf_map_create(map_type, struct

[PATCH RFC v4 net-next 01/26] net: filter: add load 64-bit immediate eBPF instruction

2014-08-13 Thread Alexei Starovoitov
add BPF_LD_IMM64 instruction to load 64-bit immediate value into register. All previous instructions were 8-byte. This is first 16-byte instruction. Two consecutive 'struct bpf_insn' blocks are interpreted as single instruction: insn[0/1].code = BPF_LD | BPF_DW | BPF_IMM insn[0/1].dst_reg =

[PATCH RFC v4 net-next 14/26] bpf: verifier (add state prunning optimization)

2014-08-13 Thread Alexei Starovoitov
since verifier walks all possible paths it's important to recognize equivalent verifier states to speed up verification. If one of the old states is more strict than the current state, it means the current state doesn't need to be explored further, since verifier already concluded that more

[PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-13 Thread Alexei Starovoitov
this example has two probes in C that use two different maps. 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint and count number of packet drops at different locations 2nd probe attaches to kprobe/sys_write and computes a histogram of different write sizes Usage: $ sudo

[PATCH RFC v4 net-next 23/26] samples: bpf: elf file loader

2014-08-13 Thread Alexei Starovoitov
simple .o parser and loader using BPF syscall. .o is a standard ELF generated by LLVM backend It parses elf file compiled by llvm .c-.o - parses 'maps' section and creates maps via BPF syscall - parses 'license' section and passes it to syscall - parses elf relocations for BPF maps and adjusts

[PATCH RFC v4 net-next 19/26] samples: bpf: add mini eBPF library to manipulate maps and programs

2014-08-13 Thread Alexei Starovoitov
the library includes a trivial set of BPF syscall wrappers: int bpf_create_map(int key_size, int value_size, int max_entries); int bpf_update_elem(int fd, void *key, void *value); int bpf_lookup_elem(int fd, void *key, void *value); int bpf_delete_elem(int fd, void *key); int

[PATCH RFC v4 net-next 26/26] bpf: verifier test

2014-08-13 Thread Alexei Starovoitov
simple verifier test from user space. Tests valid and invalid programs and expects predefined error log messages from kernel Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- samples/bpf/Makefile|3 +- samples/bpf/test_verifier.c | 354

Re: [PATCH 1/3] perf, x86: Remove incorrect model number from Haswell perf

2014-08-13 Thread Peter Zijlstra
On Tue, Aug 12, 2014 at 06:45:13PM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com Signed-off-by: Andi Kleen a...@linux.intel.com --- arch/x86/kernel/cpu/perf_event_intel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel.c

[PATCH RFC v4 net-next 22/26] bpf: llvm backend

2014-08-13 Thread Alexei Starovoitov
llvm backend that generated eBPF and emits either binary ELF or human readable eBPF assembler Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- the body of the patch is removed to prevent spam. I doubt too many falks are interested in reading llvm diffs on lkml. The backend is available in

[PATCH RFC v4 net-next 24/26] samples: bpf: eBPF example in C

2014-08-13 Thread Alexei Starovoitov
ex1_kern.c - C program which will be compiled into eBPF to filter netif_receive_skb events on skb-dev-name == lo ex1_user.c - corresponding user space component that forever reads /sys/.../trace_pipe Usage: $ sudo ex1 should see: writing bpf-4 -

[PATCH RFC v4 net-next 21/26] samples: bpf: example of tracing filters with eBPF

2014-08-13 Thread Alexei Starovoitov
simple packet drop monitor: - in-kernel eBPF program attaches to kfree_skb() event and records number of packet drops at given location - userspace iterates over the map every second and prints stats Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- samples/bpf/Makefile |3 +-

Re: [PATCH 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-13 Thread Thierry Reding
On Wed, Aug 13, 2014 at 10:51:02AM +0300, Mikko Perttunen wrote: On 13/08/14 10:35, Thierry Reding wrote: On Tue, Aug 05, 2014 at 11:12:58AM +0300, Mikko Perttunen wrote: [...] +Required properties for hardware-triggered thermal reset: +(only tegra30, tegra114, tegra124) +-

[PATCH RFC v4 net-next 17/26] tracing: allow eBPF programs to be attached to events

2014-08-13 Thread Alexei Starovoitov
User interface: fd = open(/sys/kernel/debug/tracing/__event__/filter) write(fd, bpf_123) where 123 is process local FD associated with eBPF program previously loaded. __event__ is static tracepoint event or syscall. (kprobe support is in next patch) Once program is successfully attached to

Re: [PATCH 2/3] perf, x86: Add Broadwell core support

2014-08-13 Thread Peter Zijlstra
On Tue, Aug 12, 2014 at 06:45:14PM -0700, Andi Kleen wrote: + case 61: /* Broadwell */ + case 71: + case 79: Same deal; please put a descriptive comment per model number.

Re: Fwd: [BUG] oops in cpufreq driver with AMD Kaveri CPU

2014-08-13 Thread Oleksandr Natalenko
On Tuesday 12 August 2014 18:39:39 Aravind Gopalakrishnan wrote: (btw, this is a 'Kabini' processor and not a 'Kaveri') Right, sorry. (I think you mentioned you were able to reproduce on 3.16. So assuming -rc will be affected too) At least, 3.16-rc7 was affected too. Are you noticing this

[PATCH RFC v4 net-next 20/26] samples: bpf: example of stateful socket filtering

2014-08-13 Thread Alexei Starovoitov
this socket filter example does: - creates a hashtable in kernel with key 4 bytes and value 8 bytes - populates map[6] = 0; map[17] = 0; // 6 - tcp_proto, 17 - udp_proto - loads eBPF program: r0 = skb[14 + 9]; // load one byte of ip-proto *(u32*)(fp - 4) = r0; value =

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Geert Uytterhoeven
CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -199,6 +199,11 @@ config NEED_DMA_MAP_STATE config ARCH_SUPPORTS_UPROBES

Re: [RESEND: PATCH 1/2] mfd: tc3589x: Add device tree bindings

2014-08-13 Thread Lee Jones
On Tue, 12 Aug 2014, Linus Walleij wrote: On Tue, Jun 17, 2014 at 10:23 PM, Lee Jones lee.jo...@linaro.org wrote: On Wed, 09 Apr 2014, Linus Walleij wrote: This defines the device tree bindings for the Toshiba TC3589x series of multi-purpose expanders. Only the stuff I can test is

[PATCH RFC v4 net-next 16/26] net: sock: allow eBPF programs to be attached to sockets

2014-08-13 Thread Alexei Starovoitov
introduce new setsockopt() command: int fd; setsockopt(sock, SOL_SOCKET, SO_ATTACH_FILTER_EBPF, fd, sizeof(fd)) fd is associated with eBPF program priorly loaded via: fd = syscall(__NR_bpf, BPF_PROG_LOAD, BPF_PROG_TYPE_SOCKET_FILTER, prog, sizeof(prog)); setsockopt() calls

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Thierry Reding
On Wed, Aug 13, 2014 at 10:52:18AM +0300, Mikko Perttunen wrote: On 13/08/14 10:37, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the required information to reset the board during an overheating situation to

Re: [PATCH 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:53, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:13:00AM +0300, Mikko Perttunen wrote: This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra114 and Tegra124. The

Re: [PATCHv4 2/2] parport: parport_pc: Implement CPU model check to cut off false-positives

2014-08-13 Thread Matwey V. Kornilov
Hi, What do you think, would it be better just to left the check for all x86 32-bit hardware?. 2014-07-18 11:31 GMT+04:00 Ondrej Zary li...@rainbow-software.org: On Friday 18 July 2014, mat...@sai.msu.ru wrote: From: Matwey V. Kornilov mat...@sai.msu.ru The code in intel_bug_present is

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:03, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 13, 2014 at 10:52:18AM +0300, Mikko Perttunen wrote: On 13/08/14 10:37, Thierry Reding wrote: Old Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the

[PATCH RFC v4 net-next 18/26] tracing: allow eBPF programs to be attached to kprobe/kretprobe

2014-08-13 Thread Alexei Starovoitov
Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- kernel/trace/trace_kprobe.c | 24 1 file changed, 24 insertions(+) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 282f6e4e5539..a71e3d521938 100644 --- a/kernel/trace/trace_kprobe.c

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Thierry Reding
On Tue, Aug 05, 2014 at 11:12:57AM +0300, Mikko Perttunen wrote: Hi, this series adds support for hardware-triggered thermal reset to the PMC driver. Namely, it adds device tree properties for specifying the I2C command to be sent when thermtrip is triggered. It is to be noted that

[PATCH RFC v4 net-next 15/26] bpf: allow eBPF programs to use maps

2014-08-13 Thread Alexei Starovoitov
expose bpf_map_lookup_elem(), bpf_map_update_elem(), bpf_map_delete_elem() map accessors to eBPF programs Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- include/linux/bpf.h |5 include/uapi/linux/bpf.h |3 ++ kernel/bpf/syscall.c | 68

[PATCH RFC v4 net-next 10/26] bpf: verifier (add ability to receive verification log)

2014-08-13 Thread Alexei Starovoitov
add optional attributes for BPF_PROG_LOAD syscall: BPF_PROG_LOG_LEVEL, /* verbosity level of eBPF verifier */ BPF_PROG_LOG_BUF, /* user supplied buffer */ BPF_PROG_LOG_SIZE, /* size of user buffer */ In such case the verifier will return its verification log in the user

[PATCH RFC v4 net-next 13/26] bpf: verifier (add verifier core)

2014-08-13 Thread Alexei Starovoitov
This patch adds verifier core which simulates execution of every insn and records the state of registers and program stack. Every branch instruction seen during simulation is pushed into state stack. When verifier reaches BPF_EXIT, it pops the state from the stack and continues until it reaches

Re: [PATCH 3/3] perf, x86: Add INST_RETIRED.PREC_DIST workarounds

2014-08-13 Thread Peter Zijlstra
On Tue, Aug 12, 2014 at 06:45:15PM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com On Broadwell INST_RETIRED.PREC_DIST cannot be used with any period that doesn't have the lowest 6 bits cleared. And the period should not be smaller than 128. Add a new callback to enforce

Re: [PATCH v2 4/8] mm/isolation: close the two race problems related to pageblock isolation

2014-08-13 Thread Joonsoo Kim
On Tue, Aug 12, 2014 at 11:45:32AM +0200, Vlastimil Babka wrote: On 08/12/2014 07:17 AM, Minchan Kim wrote: On Wed, Aug 06, 2014 at 04:18:33PM +0900, Joonsoo Kim wrote: One solution to this problem is checking pageblock migratetype with holding zone lock in __free_one_page() and I posted it

[PATCH RFC v4 net-next 11/26] bpf: handle pseudo BPF_LD_IMM64 insn

2014-08-13 Thread Alexei Starovoitov
eBPF programs passed from userspace are using pseudo BPF_LD_IMM64 instructions to refer to process-local map_fd. Scan the program for such instructions and if FDs are valid, convert them to 'struct bpf_map' pointers which will be used by verifier to check access to maps in bpf_map_lookup/update()

[PATCH RFC v4 net-next 12/26] bpf: verifier (add branch/goto checks)

2014-08-13 Thread Alexei Starovoitov
check that control flow graph of eBPF program is a directed acyclic graph check_cfg() does: - detect loops - detect unreachable instructions - check that program terminates with BPF_EXIT insn - check that all branches are within program boundary Signed-off-by: Alexei Starovoitov

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 16:03, Geert Uytterhoeven wrote: CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -199,6 +199,11 @@ config

Re: [PATCH v5 tip/core/rcu 15/16] rcu: Make RCU-tasks wait for idle tasks

2014-08-13 Thread Peter Zijlstra
On Mon, Aug 11, 2014 at 03:49:04PM -0700, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com Because idle-task code may need to be patched, RCU-tasks need to wait for idle tasks to schedule. This commit therefore detects this case via context switch. Block CPU

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:07, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:57AM +0300, Mikko Perttunen wrote: Hi, this series adds support for hardware-triggered thermal reset to the PMC driver. Namely, it adds device tree properties for specifying the I2C command

[PATCH RFC v4 net-next 09/26] bpf: verifier (add docs)

2014-08-13 Thread Alexei Starovoitov
this patch adds all of eBPF verfier documentation and empty bpf_check() The end goal for the verifier is to statically check safety of the program. Verifier will catch: - loops - out of range jumps - unreachable instructions - invalid instructions - uninitialized register access - uninitialized

[PATCH RFC v4 net-next 07/26] bpf: expand BPF syscall with program load/unload

2014-08-13 Thread Alexei Starovoitov
eBPF programs are safe run-to-completion functions with load/unload methods from userspace similar to kernel modules. User space API: - load eBPF program fd = bpf_prog_load(bpf_prog_type, struct nlattr *prog, int len) where 'prog' is a sequence of sections (TEXT, LICENSE) TEXT - array of

[PATCH RFC v4 net-next 05/26] bpf: add lookup/update/delete/iterate methods to BPF maps

2014-08-13 Thread Alexei Starovoitov
'maps' is a generic storage of different types for sharing data between kernel and userspace. The maps are accessed from user space via BPF syscall, which has commands: - create a map with given type and attributes fd = bpf_map_create(map_type, struct nlattr *attr, int len) returns fd or

Re: [PATCH 2/5] efi: add kernel param efi=noruntime

2014-08-13 Thread Dave Young
On 08/12/14 at 02:10pm, Dave Young wrote: noefi kernel param means actually disabling efi runtime, Per suggestion from Leif Lindholm efi=noruntime should be better. But since noefi is already used in X86 thus just adding another param efi=noruntime for same purpose. Signed-off-by: Dave Young

[PATCH RFC v4 net-next 04/26] bpf: enable bpf syscall on x64

2014-08-13 Thread Alexei Starovoitov
done as separate commit to ease conflict resolution Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- arch/x86/syscalls/syscall_64.tbl |1 + include/linux/syscalls.h |3 ++- include/uapi/asm-generic/unistd.h |4 +++- kernel/sys_ni.c |3 +++ 4

[PATCH RFC v4 net-next 02/26] net: filter: split filter.h and expose eBPF to user space

2014-08-13 Thread Alexei Starovoitov
eBPF can be used from user space. uapi/linux/bpf.h: eBPF instruction set definition linux/filter.h: the rest This patch only moves macro definitions, but practically it freezes existing eBPF instruction set, though new instructions can still be added in the future. These eBPF definitions

Re: [PATCH] perf ui/tui: Fix a small callchain display bug

2014-08-13 Thread Ingo Molnar
* Namhyung Kim namhy...@kernel.org wrote: The currently when perf TUI report shows callchain, the first level chains have bogus '+' sign even though only the last one has children. Since they are on a single line of the chain, toggling intermediate entries has no effect. Fix it to show

Re: [PATCH v2 2/8] mm/isolation: remove unstable check for isolated page

2014-08-13 Thread Joonsoo Kim
On Mon, Aug 11, 2014 at 02:53:35PM +0530, Aneesh Kumar K.V wrote: Joonsoo Kim iamjoonsoo@lge.com writes: The check '!PageBuddy(page) page_count(page) == 0 migratetype == MIGRATE_ISOLATE' would mean the page on free processing. Although it could go into buddy allocator within a short

Re: [PATCH v2 2/8] mm/page_alloc: correct to clear guard attribute in DEBUG_PAGEALLOC

2014-08-13 Thread Joonsoo Kim
On Tue, Aug 12, 2014 at 01:45:23AM +, Minchan Kim wrote: On Wed, Aug 06, 2014 at 04:18:30PM +0900, Joonsoo Kim wrote: In __free_one_page(), we check the buddy page if it is guard page. And, if so, we should clear guard attribute on the buddy page. But, currently, we clear original

[tip:perf/core] perf/x86/uncore: Declare some functions and variables

2014-08-13 Thread tip-bot for Yan, Zheng
Commit-ID: 514b2346df385fce61cefb940813207758648136 Gitweb: http://git.kernel.org/tip/514b2346df385fce61cefb940813207758648136 Author: Yan, Zheng zheng.z@intel.com AuthorDate: Wed, 30 Jul 2014 15:22:12 +0800 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014

[tip:perf/core] perf/x86/intel: Update Intel models

2014-08-13 Thread tip-bot for Peter Zijlstra
Commit-ID: 0f7c29ce90c4d20c23de5657e1e2c2eabf51d69a Gitweb: http://git.kernel.org/tip/0f7c29ce90c4d20c23de5657e1e2c2eabf51d69a Author: Peter Zijlstra pet...@infradead.org AuthorDate: Wed, 30 Jul 2014 12:08:56 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014

[tip:perf/core] perf: Set owner pointer for kernel events

2014-08-13 Thread tip-bot for Jiri Olsa
Commit-ID: f86977620ee4635f26befcf436700493a38ce002 Gitweb: http://git.kernel.org/tip/f86977620ee4635f26befcf436700493a38ce002 Author: Jiri Olsa jo...@kernel.org AuthorDate: Fri, 1 Aug 2014 14:33:01 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014 07:51:03 +0200

[tip:perf/core] perf: Add queued work to remove orphaned child events

2014-08-13 Thread tip-bot for Jiri Olsa
Commit-ID: fadfe7be6e50de7f03913833b33c56cd8fb66bac Gitweb: http://git.kernel.org/tip/fadfe7be6e50de7f03913833b33c56cd8fb66bac Author: Jiri Olsa jo...@kernel.org AuthorDate: Fri, 1 Aug 2014 14:33:02 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014 07:51:04 +0200

[tip:perf/core] perf/x86/uncore: Move SNB/ IVB-EP specific code to seperate file

2014-08-13 Thread tip-bot for Yan, Zheng
Commit-ID: 8268fdfc45b747bcb3351464efefbdf611aeea9b Gitweb: http://git.kernel.org/tip/8268fdfc45b747bcb3351464efefbdf611aeea9b Author: Yan, Zheng zheng.z@intel.com AuthorDate: Wed, 30 Jul 2014 15:22:14 +0800 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014

[tip:perf/core] perf/x86/uncore: move NHM-EX/ WSM-EX specific code to seperate file

2014-08-13 Thread tip-bot for Yan, Zheng
Commit-ID: c1e46580c3b7bf25053519cf39f01a2f9ea4d865 Gitweb: http://git.kernel.org/tip/c1e46580c3b7bf25053519cf39f01a2f9ea4d865 Author: Yan, Zheng zheng.z@intel.com AuthorDate: Wed, 30 Jul 2014 15:22:15 +0800 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014

[tip:perf/core] perf/x86/uncore: Fix coccinelle warnings

2014-08-13 Thread tip-bot for Fengguang Wu
Commit-ID: 17a6034555c601331311d31beb395f6665056b3e Gitweb: http://git.kernel.org/tip/17a6034555c601331311d31beb395f6665056b3e Author: Fengguang Wu fengguang...@intel.com AuthorDate: Mon, 4 Aug 2014 13:29:11 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014

[tip:perf/core] perf/x86: Use extended offcore mask on Haswell

2014-08-13 Thread tip-bot for Andi Kleen
Commit-ID: 36bbb2f2988a29cdc3f8e0c93478795934553454 Gitweb: http://git.kernel.org/tip/36bbb2f2988a29cdc3f8e0c93478795934553454 Author: Andi Kleen a...@linux.intel.com AuthorDate: Thu, 31 Jul 2014 14:05:22 -0700 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014 07:51:10

[tip:perf/core] perf/x86: Don't mark DataLA addresses as store

2014-08-13 Thread tip-bot for Andi Kleen
Commit-ID: f3908b8cfb65ab6e78ac84df3b864eb22d5b6d9e Gitweb: http://git.kernel.org/tip/f3908b8cfb65ab6e78ac84df3b864eb22d5b6d9e Author: Andi Kleen a...@linux.intel.com AuthorDate: Mon, 11 Aug 2014 21:27:11 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 13 Aug 2014 07:51:14

  1   2   3   4   5   6   7   8   9   10   >