perf fuzzer crash [PATCH] perf: Get group events reference before moving the group

2015-01-15 Thread Jiri Olsa
hi Vince, I was able to reproduce the issue you described in: http://marc.info/?l=linux-kernel=141806390822670=2 I might have found one way that could lead to screwing up context's refcounts.. could you please try attached patch? I'm now on 2 days of no crash while it used to happen 3 times a

Re: [PATCH] Use dwfl_report_elf() instead of offline

2015-01-15 Thread Jiri Olsa
On Wed, Jan 14, 2015 at 02:10:45PM -0800, Sukadev Bhattiprolu wrote: > > From 8e6fb4c58d0d9f4798c191d840e32084b1217cc3 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Fri, 21 Nov 2014 20:33:53 -0500 > Subject: [PATCH 1/1] Use dwfl_report_elf() instead of offline. > >

Re: [PATCH 1/1] arch/x86/kvm/vmx.c: Fix external interrupts inject directly bug with guestos RFLAGS.IF=0

2015-01-15 Thread Li Kaihang
Hello, please see the answer below blue: From: Radim Krčmář To: Li Kaihang , Cc: g...@kernel.org, pbonz...@redhat.com, t...@linutronix.de, mi...@redhat.com, h...@zytor.com, x...@kernel.org, k...@vger.kernel.org, linux-kernel@vger.kernel.org Date: 2015-01-16 上午 02:09 Subject:

RE: [PATCH v8 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls

2015-01-15 Thread Namjae Jeon
> On Thu, Jan 15, 2015 at 07:14:26PM +0900, Namjae Jeon wrote: > > > > > > +_require_scratch > > > > +_require_xfs_io_command "fiemap" > > > > +_require_xfs_io_command "finsert" > > > > +_require_xfs_io_command "fcollapse" > > > > +_do_die_on_error=y > > > > > > What is _do_die_on_error for? Seems

RE: [PATCH v8 11/11] xfstests: fsx: Add fallocate insert range operation

2015-01-15 Thread Namjae Jeon
> > > > > > } > > > > do_collapse_range(offset, size); > > > > break; > > > > + case OP_INSERT_RANGE: > > > > + TRIM_OFF(offset, file_size); > > > > + TRIM_LEN(offset, size, maxfilelen - file_size); > > > > > > Ugh,

[PATCH V3] mm/thp: Allocate transparent hugepages on local node

2015-01-15 Thread Aneesh Kumar K.V
This make sure that we try to allocate hugepages from local node if allowed by mempolicy. If we can't, we fallback to small page allocation based on mempolicy. This is based on the observation that allocating pages on local node is more beneficial than allocating hugepages on remote node.

RE: [PATCH v8 2/11] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-15 Thread Namjae Jeon
> On Wed, Jan 14, 2015 at 01:05:17AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. > > > > 1) Make sure that both offset and len are block size aligned. > > 2) Update the i_size of inode by len bytes. > > 3) Compute the

Re: [PATCH v7 00/17] Introduce ACPI for ARM64 based on ACPI 5.1

2015-01-15 Thread Hanjun Guo
On 2015年01月16日 04:31, Mark Brown wrote: On Thu, Jan 15, 2015 at 03:04:37PM -0500, Jason Cooper wrote: On Thu, Jan 15, 2015 at 07:02:20PM +, Mark Brown wrote: There's probably a bit of a process problem here - these patches are all being posted as part of big and apparently controversial

[PATCH 2/2] ASoC: atmel_ssc_dai: remove clock pin comments

2015-01-15 Thread Bo Shen
As the clock can be get from TK/RK pin, so remove the comments. Signed-off-by: Bo Shen --- sound/soc/atmel/atmel_ssc_dai.c | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index e691aab..198661b 100644 ---

[PATCH 1/2] ASoC: atmel_ssc_dai: fix start event for I2S mode

2015-01-15 Thread Bo Shen
According to the I2S specification information as following: - WS = 0, channel 1 (left) - WS = 1, channel 2 (right) So, the start event should be TF/RF falling edge. Reported-by: Songjun Wu Signed-off-by: Bo Shen --- sound/soc/atmel/atmel_ssc_dai.c | 18 -- 1 file changed,

Re: [PATCH v7 00/17] Introduce ACPI for ARM64 based on ACPI 5.1

2015-01-15 Thread Hanjun Guo
On 2015年01月16日 02:23, Catalin Marinas wrote: Hi Grant, On Thu, Jan 15, 2015 at 04:26:20PM +, Grant Likely wrote: On Wed, Jan 14, 2015 at 3:04 PM, Hanjun Guo wrote: This is the v7 of ACPI core patches for ARM64 based on ACPI 5.1 I'll get right to the point: Can we please have this

Re: [PATCH] virtio_rng: drop extra empty line

2015-01-15 Thread Herbert Xu
On Fri, Jan 16, 2015 at 09:16:00AM +0200, Michael S. Tsirkin wrote: > > So let's add this to maintainers? > Will you ack something like below? Sure I'll add that. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: linux-next: build failure after merge of the i2c tree

2015-01-15 Thread Pantelis Antoniou
n) > of_node_clear_flag(client->dev.of_node, OF_POPULATED); > ^ > > Caused by commit d5285c36e6d2 ("i2c: Mark instantiated device nodes > with OF_POPULATE"). > > I have used the version of the i2c tree from next-2015

Re: [PATCH] virtio_rng: drop extra empty line

2015-01-15 Thread Michael S. Tsirkin
On Fri, Jan 16, 2015 at 10:21:09AM +1100, Herbert Xu wrote: > On Thu, Jan 15, 2015 at 01:50:42PM +0200, Michael S. Tsirkin wrote: > > makes code look a bit prettier. > > > > Signed-off-by: Michael S. Tsirkin > > Please resend this patch with a cc to linux-cry...@vger.kernel.org. > > Thanks!

Re: [PATCH] mm/vmscan: fix highidx argument type

2015-01-15 Thread Michael S. Tsirkin
On Thu, Jan 15, 2015 at 02:49:20PM -0800, Andrew Morton wrote: > On Fri, 16 Jan 2015 00:18:12 +0200 "Michael S. Tsirkin" > wrote: > > > for_each_zone_zonelist_nodemask wants an enum zone_type > > argument, but is passed gfp_t: > > > > mm/vmscan.c:2658:9:expected int enum zone_type [signed]

Re: [vireshk:cpufreq/core/locking 57/60] drivers/cpufreq/cpufreq.c:512:5: sparse: symbol '__cpufreq_boost_supported' was not declared. Should it be static?

2015-01-15 Thread Viresh Kumar
On 16 January 2015 at 12:25, kbuild test robot wrote: > tree: https://git.linaro.org/people/vireshk/linux cpufreq/core/locking > head: 12d5339e685739289c2f629c943b8bfad4c64f1e > commit: fbce49b78afdaeeaee3017cfbd968e44ddba8496 [57/60] cpufreq: Drop > forward declaration of

[vireshk:cpufreq/core/locking 57/60] drivers/cpufreq/cpufreq.c:512:5: sparse: symbol '__cpufreq_boost_supported' was not declared. Should it be static?

2015-01-15 Thread kbuild test robot
tree: https://git.linaro.org/people/vireshk/linux cpufreq/core/locking head: 12d5339e685739289c2f629c943b8bfad4c64f1e commit: fbce49b78afdaeeaee3017cfbd968e44ddba8496 [57/60] cpufreq: Drop forward declaration of __cpufreq_boost_trigger_state() reproduce: # apt-get install sparse git

[PATCH vireshk] cpufreq: __cpufreq_boost_supported() can be static

2015-01-15 Thread kbuild test robot
drivers/cpufreq/cpufreq.c:512:5: sparse: symbol '__cpufreq_boost_supported' was not declared. Should it be static? Signed-off-by: Fengguang Wu --- cpufreq.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index

RE: [RFC PATCH] fs: file freeze support

2015-01-15 Thread Namjae Jeon
> > Hello, Hi Jan, > > > + > > +int file_write_unfreeze(struct inode *inode) > > +{ > > + struct super_block *sb = inode->i_sb; > > + > > + if (!S_ISREG(inode->i_mode)) > > + return -EINVAL; > > + > > + spin_lock(>i_lock); > > + > > + if (!(inode->i_state &

[PATCH 1/1] serial: Fintek F81232 driver improvement

2015-01-15 Thread Peter Hung
From: Peter Hong The original driver completed with TX function, but RX/MSR/MCR/LSR is not workable with this driver. So we rewrite it to make this device workable. This patch is tested with PassMark BurnInTest with Cycle-to-115200 + MCR/MSR check for 15mins & checked with Suspend-To-RAM/DISK

[PATCH v18 02/12] input: cyapa: add gen5 trackpad device basic functions support

2015-01-15 Thread Dudley Du
Based on the cyapa core, add the gen5 trackpad device's basic functions supported, so gen5 trackpad device can work with kernel input system. And also based on the state parse interface, the cyapa driver can automatically determine the attached is gen3 or gen5 protocol trackpad device, then set

[PATCH v18 01/12] input: cyapa: re-design driver to support multi-trackpad in one driver

2015-01-15 Thread Dudley Du
In order to support multiple different chipsets and communication protocols trackpad devices in one cyapa driver, the new cyapa driver is re-designed with one cyapa driver core and multiple device specific functions component. The cyapa driver core is contained in this patch, it supplies basic

[PATCH v18 06/12] input: cyapa: add gen3 trackpad device firmware update function support

2015-01-15 Thread Dudley Du
Add firmware image update function supported for gen3 trackpad device, it can be used through sysfs update_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa_gen3.c | 309 +++ 1 file changed, 309 insertions(+) diff

[PATCH v18 12/12] input: cyapa: add acpi device id support

2015-01-15 Thread Dudley Du
Add acpi device tree support. acpi device id "CYAP" is for old gen3 trackpad devices. acpi device id "CYAP0001" is for new gen5 trackpad devices. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 13 + 1 file changed, 13 insertions(+) diff

[PATCH v18 05/12] input: cyapa: add sysfs interfaces support in the cyapa driver

2015-01-15 Thread Dudley Du
Add device's basic control and features supported in cyapa driver through sysfs file system interfaces. These interfaces are commonly used in pre- and after production, for trackpad device state checking, managing and firmware image updating. These interfaces including mode, firmware_version and

[PATCH v18 03/12] input: cyapa: add power management interfaces support for the device

2015-01-15 Thread Dudley Du
Add suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the power management strategy of trackpad device as their requirements. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 127

[PATCH v18 07/12] input: cyapa: add gen3 trackpad device read baseline function support

2015-01-15 Thread Dudley Du
Add read baseline function supported for gen3 trackpad device, it can be used through sysfs baseline interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa_gen3.c | 72 1 file changed, 72 insertions(+) diff --git

[PATCH v18 08/12] input: cyapa: add gen3 trackpad device force re-calibrate function support

2015-01-15 Thread Dudley Du
Add force re-calibrate function supported for gen3 trackpad device, it can be used through sysfs calibrate interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa_gen3.c | 59 1 file changed, 59 insertions(+) diff

[PATCH v18 10/12] input: cyapa: add gen5 trackpad device read baseline function support

2015-01-15 Thread Dudley Du
Add read baseline function supported for gen5 trackpad device, it can be used through sysfs baseline interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.h | 2 + drivers/input/mouse/cyapa_gen5.c | 640 +++ 2

[PATCH v18 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2015-01-15 Thread Dudley Du
Add firmware image update function supported for gen5 trackpad device, it can be used through sysfs update_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/Kconfig | 1 + drivers/input/mouse/cyapa_gen5.c | 391

[PATCH v18 04/12] input: cyapa: add runtime power management interfaces support for the device

2015-01-15 Thread Dudley Du
Add runtime_suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the runtime power management strategy of trackpad device as their requirements. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa.c | 184

[PATCH v18 11/12] input: cyapa: add gen5 trackpad device force re-calibrate function support

2015-01-15 Thread Dudley Du
Add force re-calibrate function supported for gen5 trackpad device, it can be used through sysfs calibrate interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du --- drivers/input/mouse/cyapa_gen5.c | 65 1 file changed, 65 insertions(+) diff

[PATCH v18 00/12] input: cyapa: instruction of cyapa patches

2015-01-15 Thread Dudley Du
V18 patches have below updates, details of other updates see history list: 1) Fix 'cyapa_runtime_suspend' undeclared compiling issue in latest kernel-next source code. Verified on next-20150114 with make C=1. 2) Optimize enter bootloader failed for some chipset takes longer time issue. This

linux-next: manual merge of the usb-gadget tree with the usb.current tree

2015-01-15 Thread Stephen Rothwell
Hi Felipe, Today's linux-next merge of the usb-gadget tree got a conflict in drivers/usb/dwc2/gadget.c between commit 62f4f0651ce8 ("usb: dwc2: gadget: kill requests with 'force' in s3c_hsotg_udc_stop()") from the usb.current tree and commit c6f5c050e2a7 ("usb: dwc2: gadget: add bi-directional

Re: [PATCH 2/2] staging: lustre: libcfs: fix space between function and open parenthesis

2015-01-15 Thread Jeremiah Mahler
Jia He, On Fri, Jan 16, 2015 at 09:45:47AM +0800, Jia He wrote: > This fixes the space warning checked by check_patch.pl ^^^ checkpatch.pl > [...] > -static void kportal_memhog_free (struct

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-01-15 Thread Ohad Ben-Cohen
On Thu, Jan 15, 2015 at 4:42 PM, Rob Herring wrote: > On Thu, Jan 15, 2015 at 7:55 AM, Mark Rutland wrote: >> On Thu, Jan 15, 2015 at 01:52:01PM +, Mark Rutland wrote: >>> On Wed, Jan 14, 2015 at 08:58:18PM +, Suman Anna wrote: >>> > +- hwlock-base-id: An unique base Id for the locks

[PATCH 5/5] KVM: nVMX: Enable nested posted interrupt processing.

2015-01-15 Thread Wincy Van
If vcpu has a interrupt in vmx non-root mode, we will kick that vcpu to inject interrupt timely. With posted interrupt processing, the kick intr is not needed, and interrupts are fully taken care of by hardware. In nested vmx, this feature avoids much more vmexits than non-nested vmx. This patch

[PATCH 4/5] KVM: nVMX: Enable nested virtual interrupt delivery.

2015-01-15 Thread Wincy Van
With virtual interrupt delivery, the hardware prevent KVM from the low efficiency interrupt inject way. In nested vmx, it is a important feature, we can reduce much more nested-vmexit, especially in high throughput scenes. Signed-off-by: Wincy Van --- arch/x86/kvm/vmx.c | 49

[PATCH 3/5] KVM: nVMX: Enable nested apic register virtualization.

2015-01-15 Thread Wincy Van
We can reduce apic register virtualization cost with this feature, it is also a requirement for virtual interrupt delivery and posted interrupt processing. Signed-off-by: Wincy Van --- arch/x86/kvm/vmx.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git

[PATCH 2/5] KVM: nVMX: Enable nested virtualize x2apic mode.

2015-01-15 Thread Wincy Van
When L2 is using x2apic, we can use virtualize x2apic mode to gain higher performance. This patch also introduces nested_vmx_check_apicv_controls for the nested apicv patches. Signed-off-by: Wincy Van --- arch/x86/kvm/vmx.c | 49 - 1 files

RE: [RFC PATCH] fs: file freeze support

2015-01-15 Thread Namjae Jeon
> > For implementation purpose, initially we tried to keep percpu usage counters > > inside struct inode just like there is struct sb_writers in super_block. > > But considering that it will significantly bloat up struct inode when > > actually > > the usage of file write freeze will be

[PATCH 1/5] KVM: nVMX: Make nested control MSRs per-cpu.

2015-01-15 Thread Wincy Van
To enable nested apicv support, we need per-cpu vmx control MSRs: 1. If in-kernel irqchip is enabled, we can enable nested posted interrupt, we should set posted intr bit in the nested_vmx_pinbased_ctls_high. 2. If in-kernel irqchip is disabled, we can not enable nested posted

Re: [RFC 01/11] i2c: add quirk structure to describe adapter flaws

2015-01-15 Thread Eddie Huang
Hi Wolfram, On Fri, 2015-01-09 at 18:21 +0100, Wolfram Sang wrote: > > + */ > +struct i2c_adapter_quirks { > + u64 flags; > + int max_num_msgs; > + u16 max_write_len; > + u16 max_read_len; > + u16 max_comb_write_len; > + u16 max_comb_read_len; > +}; > + > +#define

[PATCH 0/5] KVM: nVMX: Enable nested apicv support.

2015-01-15 Thread Wincy Van
In nested vmx, the efficiency of interrupt virtualization is very important, especially in high throughput scenes. This patch set enables nested apicv support, which makes a huge improvement in nested interrupt virtualization. I also have done some simple tests: L0: Intel Xeon E5-2630 v2 L1:

Re: [PATCH v3 2/3] net/macb: Add whitespace around arithmetic operators

2015-01-15 Thread David Miller
From: Xander Huff Date: Thu, 15 Jan 2015 15:45:15 -0600 > Spaces should surround add, multiply, and bitshift operators. > > Signed-off-by: Xander Huff Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH v3 1/3] net/macb: Fix comments to meet style guidelines

2015-01-15 Thread David Miller
From: Xander Huff Date: Thu, 15 Jan 2015 15:45:14 -0600 > Change comments to not exceed 80 characters per line. > Update block comments in macb.h to start on the line after /*. > > Signed-off-by: Xander Huff Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH v3 3/3] net/macb: Create gem_ethtool_ops for new statistics functions

2015-01-15 Thread David Miller
From: Xander Huff Date: Thu, 15 Jan 2015 15:45:16 -0600 > 10/100 MACB does not have the same statistics possibilities as GEM. Separate > macb_ethtool_ops to make a new GEM-specific struct with the new statistics > functions included. > > Signed-off-by: Xander Huff Applied. -- To unsubscribe

Re: [PATCH net-next] Driver: Vmxnet3: Fix ethtool -S to return correct rx queue stats

2015-01-15 Thread David Miller
From: Shrikrishna Khare Date: Thu, 15 Jan 2015 11:54:30 -0800 > Signed-off-by: Gao Zhenyu > Signed-off-by: Shrikrishna Khare > Reviewed-by: Shreyas N Bhatewara Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC PATCH 0/2 shit_A shit_B] workqueue: fix wq_numa bug

2015-01-15 Thread Yasuaki Ishimatsu
Hi Lai, Thanks you for posting the patch-set. I'll try your it next Monday. So, please wait a while. Thanks, Yasuaki Ishimatsu (2015/01/14 17:54), Lai Jiangshan wrote: > Hi, All > > This patches are un-changloged, un-compiled, un-booted, un-tested, > they are just shits, I even hope them

Re: [PATCH v2] mm: vmscan: fix the page state calculation in too_many_isolated

2015-01-15 Thread Vinayak Menon
On 01/16/2015 06:47 AM, Andrew Morton wrote: On Wed, 14 Jan 2015 17:06:59 +0530 Vinayak Menon wrote: It is observed that sometimes multiple tasks get blocked for long in the congestion_wait loop below, in shrink_inactive_list. This is because of vm_stat values not being synced. (__schedule)

Re: [PATCH v4] gpio_wdt: Add "always_running" feature to GPIO watchdog

2015-01-15 Thread Guenter Roeck
On 01/13/2015 10:28 PM, Mike Looijmans wrote: On some chips, like the TPS386000, the trigger cannot be disabled and the CPU must keep toggling the line at all times. Add a switch "always_running" to keep toggling the GPIO line regardless of the state of the soft part of the watchdog. The "armed"

Re: [PATCH] gpio: gpio-dln2: Added a Blank line after declaration

2015-01-15 Thread Jamal Mohammad
I think you are write ... checkpatch.pl was giving the error at the line so i added a blank line... i will send an updated patch.. On Thu, Jan 15, 2015 at 11:40 PM, Johan Hovold wrote: > On Thu, Jan 15, 2015 at 06:20:43PM +0100, Linus Walleij wrote: >> On Tue, Jan 13, 2015 at 4:09 PM, Mohammad

YOU HAVE WON!!

2015-01-15 Thread POSTCODESLOTERIJ.NL
We are please to inform you of our new year promotion award program held 14th January 2015,which have pronounce your email-address as the lucky winner of a total sum:of €250,000. CONTACT: The claim office/Email:postc...@luckymail.com,with your winning Serial-No: LE0031#11250PSNL.

[PATCH v3] X86-32: Allocate 32 bytes for pgd in PAE paging

2015-01-15 Thread Fenghua Yu
From: Fenghua Yu With more embedded systems emerging using Quark, among other things, 32-bit kernel matters again. 32-bit machine and kernel uses PAE paging, which currently wastes at least 4K of memory per process on Linux where we have to reserve an entire page to support a single 32-byte PGD

linux-next: manual merge of the wireless-drivers-next tree with the wireless-drivers tree

2015-01-15 Thread Stephen Rothwell
Hi Kalle, Today's linux-next merge of the wireless-drivers-next tree got a conflict in drivers/net/wireless/iwlwifi/mvm/scan.c between commit 1f9c418fd94c ("iwlwifi: mvm: fix EBS on single scan") from the wireless-drivers tree and commit a1ed4025765c ("iwlwifi: mvm: Configure EBS scan ratio")

[PATCH tip 2/9] tracing: allow eBPF programs to call bpf_printk()

2015-01-15 Thread Alexei Starovoitov
Debugging of eBPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Signed-off-by: Alexei Starovoitov --- include/uapi/linux/bpf.h|1 + kernel/trace/bpf_trace.c| 61

[PATCH tip 5/9] samples: bpf: simple tracing example in C

2015-01-15 Thread Alexei Starovoitov
tracex1_kern.c - C program which will be compiled into eBPF to filter netif_receive_skb events on skb->dev->name == "lo" The programs returns 1 to continue storing an event into trace buffer and returns 0 - to discard an event. tracex1_user.c - corresponding user space component that forever

[PATCH tip 1/9] tracing: attach eBPF programs to tracepoints and syscalls

2015-01-15 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

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

2015-01-15 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different tracepoints and 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 syscalls/sys_enter_write and

[PATCH tip 4/9] samples: bpf: simple tracing example in eBPF assembler

2015-01-15 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 Usage: $ sudo dropmon location 0x81695995 count 1 location 0x816d0da9 count 2

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

2015-01-15 Thread Alexei Starovoitov
eBPF C program attaches to block_rq_issue/block_rq_complete events to calculate IO latency. Then it waits for the first 100 events to compute average latency and uses range [0 .. ave_lat * 2] to record histogram of events in this latency range. User space reads this histogram map every 2 seconds

[PATCH tip 9/9] samples: bpf: simple kprobe example

2015-01-15 Thread Alexei Starovoitov
the logic of the example is similar to tracex2, but syscall 'write' statistics is capturead from kprobe placed at sys_write function instead of through syscall instrumentation. Also tracex4_kern.c has a different way of doing log2 in C. Note, unlike tracepoint and syscall programs, kprobe programs

[PATCH tip 3/9] tracing: allow eBPF programs to call ktime_get_ns()

2015-01-15 Thread Alexei Starovoitov
bpf_ktime_get_ns() is used by programs to compue time delta between events or as a timestamp Signed-off-by: Alexei Starovoitov --- include/uapi/linux/bpf.h |1 + kernel/trace/bpf_trace.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/include/uapi/linux/bpf.h

[PATCH tip 8/9] tracing: attach eBPF programs to kprobe/kretprobe

2015-01-15 Thread Alexei Starovoitov
introduce new type of eBPF programs BPF_PROG_TYPE_KPROBE_FILTER. Such programs are allowed to call the same helper functions as tracing filters, but bpf_context is different: For tracing filters bpf_context is 6 arguments of tracepoints or syscalls For kprobe filters bpf_context == pt_regs

[PATCH tip 0/9] tracing: attach eBPF programs to tracepoints/syscalls/kprobe

2015-01-15 Thread Alexei Starovoitov
Hi Ingo, Steven, This patch set is based on tip/master. It adds ability to attach eBPF programs to tracepoints, syscalls and kprobes. Mechanism of attaching: - load program via bpf() syscall and receive program_fd - event_fd = open("/sys/kernel/debug/tracing/events/.../filter") - write 'bpf-123'

Re: [PATCH v2 1/2] mm/slub: optimize alloc/free fastpath by removing preemption on/off

2015-01-15 Thread Steven Rostedt
On Thu, 15 Jan 2015 21:57:58 -0600 (CST) Christoph Lameter wrote: > > I get: > > > > mov%gs:0x18(%rax),%rdx > > > > Looks to me that %gs is used. > > %gs is used as a segment prefix. That does not add significant cycles. > Retrieving the content of %gs and loading it into

Re: [PATCH v2 1/2] mm/slub: optimize alloc/free fastpath by removing preemption on/off

2015-01-15 Thread Steven Rostedt
On Thu, 15 Jan 2015 22:51:30 -0500 Steven Rostedt wrote: > > I haven't done benchmarks in a while, so perhaps accessing the %gs > segment isn't as expensive as I saw it before. I'll have to profile > function tracing on my i7 and see where things are slow again. I just ran it on my i7, and

Re: [PATCH v2 1/2] mm/slub: optimize alloc/free fastpath by removing preemption on/off

2015-01-15 Thread Christoph Lameter
> I get: > > mov%gs:0x18(%rax),%rdx > > Looks to me that %gs is used. %gs is used as a segment prefix. That does not add significant cycles. Retrieving the content of %gs and loading it into another register would be expensive in terms of cpu cycles. -- To unsubscribe from this

[PATCH 13/28] PCI/x86: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-01-15 Thread Yijing Wang
Signed-off-by: Yijing Wang --- arch/x86/pci/acpi.c | 36 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 8edea63..f9a55c2 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c @@ -467,6

[PATCH 14/28] PCI/IA64: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-01-15 Thread Yijing Wang
From: Yijing Wang Signed-off-by: Yijing Wang --- arch/ia64/pci/pci.c | 34 ++ 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index e457015..7736c02 100644 --- a/arch/ia64/pci/pci.c +++

[PATCH 12/28] PCI: Introduce new scan function pci_scan_root_bridge()

2015-01-15 Thread Yijing Wang
Introduce new scan function pci_scan_root_bridge() to support host bridge drivers that need to provide platform own pci_host_bridge_ops. Signed-off-by: Yijing Wang --- drivers/pci/probe.c | 21 + include/linux/pci.h |3 +++ 2 files changed, 24 insertions(+), 0

[PATCH 11/28] PCI: Introduce pci_host_bridge_ops to setup host bridge

2015-01-15 Thread Yijing Wang
Now we have weak functions like pcibios_root_bridge_prepare() to setup pci host bridge, We could introduce pci_host_bridge_ops which contain host bridge specific ops to setup pci_host_bridge. Then host bridge driver could add pci_host_bridge_ops hooks intead of weak function to setup

[PATCH 10/28] PCI: Save sysdata in pci_host_bridge drvdata

2015-01-15 Thread Yijing Wang
Save platform specific sysdata in pci_host_bridge drvdata, host bridge specific operation need to access it before the pci bus creation. Signed-off-by: Yijing Wang --- drivers/pci/host-bridge.c |4 +++- drivers/pci/probe.c | 18 -- include/linux/pci.h |3

[PATCH 17/28] PCI: Remove weak pcibios_root_bridge_prepare()

2015-01-15 Thread Yijing Wang
Now no one use weak pcibios_root_bridge_prepare(), we could remove it. Signed-off-by: Yijing Wang --- drivers/pci/probe.c | 15 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 17 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index

[PATCH 19/28] PCI: Introduce pci_bus_child_max_busnr()

2015-01-15 Thread Yijing Wang
Sometimes, we need to know the highest reserved busnr for children bus. Because parent's bus->busn_res could have padding in it. This function return the max child busnr as pci_scan_child_bus(). Signed-off-by: Yijing Wang --- drivers/pci/hotplug/acpiphp_glue.c | 29

[PATCH 15/28] PCI/powerpc: Rename pcibios_root_bridge_prepare() for better readability

2015-01-15 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. So rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang --- arch/powerpc/include/asm/machdep.h |2 +- arch/powerpc/kernel/pci-common.c |4 ++--

[PATCH 23/28] PCI/designware: Use pci_scan_root_bus() for simplicity

2015-01-15 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang --- drivers/pci/host/pcie-designware.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-designware.c

[PATCH 25/28] PCI: Rename __pci_create_root_bus() to pci_create_root_bus()

2015-01-15 Thread Yijing Wang
Now no one use pci_create_root_bus(), we could remove it and rename __pci_create_root_bus() to pci_create_root_bus(). Signed-off-by: wangyij...@huawei.com --- drivers/pci/probe.c | 27 --- include/linux/pci.h |3 --- 2 files changed, 8 insertions(+), 22 deletions(-)

[PATCH 28/28] PCI: Remove pci_bus_assign_domain_nr()

2015-01-15 Thread Yijing Wang
Now we save the domain number in pci_host_bridge, we could remove pci_bus_assign_domain_nr() and clean the domain member in pci_bus. Signed-off-by: Yijing Wang --- drivers/pci/pci.c | 48 +--- drivers/pci/probe.c | 12

[PATCH 03/28] xen/PCI: Don't use deprecated function pci_scan_bus_parented()

2015-01-15 Thread Yijing Wang
From: Arnd Bergmann Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Konrad Rzeszutek Wilk CC: xen-de...@lists.xenproject.org --- drivers/pci/xen-pcifront.c | 10 +++--- 1 files changed, 7

[PATCH 24/28] PCI/xgene: Use pci_scan_root_bus() instead of pci_create_root_bus()

2015-01-15 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang --- drivers/pci/host/pci-xgene.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c

[PATCH 26/28] PCI: Export find_pci_host_bridge()

2015-01-15 Thread Yijing Wang
Export find_pci_host_bridge(). Signed-off-by: Yijing Wang --- drivers/pci/host-bridge.c |2 +- include/linux/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index ccbf168..74f7572 100644 ---

[PATCH 05/28] PCI: Rename pci_scan_bus() to pci_scan_bus_legacy()

2015-01-15 Thread Yijing Wang
Pci_scan_bus() is called by legacy pci host drivers, the legacy host drivers mean they use NUll as parent device, use all IO/MEM as default resources. Rename pci_scan_bus() to pci_scan_bus_legacy() for better readability. Signed-off-by: Yijing Wang --- arch/alpha/kernel/sys_nautilus.c |2

[PATCH 27/28] PCI: Remove platform specific pci_domain_nr()

2015-01-15 Thread Yijing Wang
Now pci_host_bridge holds the domain number, so we could eliminate all platform specific pci_domain_nr(). Signed-off-by: Yijing Wang --- arch/alpha/include/asm/pci.h |2 -- arch/ia64/include/asm/pci.h |1 - arch/microblaze/pci/pci-common.c | 11 ---

[PATCH 01/28] PCI: Rip out pci_bus_add_devices() from pci_scan_bus()

2015-01-15 Thread Yijing Wang
Pci_bus_add_devices() should not be placed in pci_scan_bus(). Now pci device will be added to driver core once its creation. All things left in pci_bus_add_devices() are driver attachment and other trivial sysfs things. Pci_scan_bus() should be the function responsible for scanning PCI devices,

[PATCH 04/28] PCI: Remove deprecated pci_scan_bus_parented()

2015-01-15 Thread Yijing Wang
No one uses pci_scan_bus_parented() any more, remove it. Signed-off-by: Yijing Wang --- drivers/pci/probe.c | 19 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 21 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 7cf577f..e44de73

[PATCH 06/28] PCI: Combine PCI domain and bus number in u32 arg

2015-01-15 Thread Yijing Wang
Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always <= 255, so we could change the bus number argument type to u32, and combine PCI domain and bus number in one. Also add a domain member in pci_host_bridge

Re: [PATCH v2 1/2] mm/slub: optimize alloc/free fastpath by removing preemption on/off

2015-01-15 Thread Steven Rostedt
On Thu, 15 Jan 2015 21:27:14 -0600 (CST) Christoph Lameter wrote: > > The %gs register is not used since the address of the per cpu area is > available as one of the first fields in the per cpu areas. Have you disassembled your code? Looking at put_cpu_partial() from 3.19-rc3 where it does:

[PATCH 00/28] Refine PCI scan interfaces and make generic pci host bridge

2015-01-15 Thread Yijing Wang
This series is based on Bjorn's pci-next branch. Patch 1-4 ripped out pci_bus_add_devices() from pci scan interfaces for better pci scan flow. Patch 5-11 make a generic pci_host_bridge to hold pci_host_bridge related informations, and introduce a pci_host_bridge_ops to support platform host

[PATCH 18/28] PCI/sparc: Use pci_scan_root_bridge() for simplicity

2015-01-15 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide sparc specific pci_host_bridge_ops. Signed-off-by: Yijing Wang --- arch/sparc/kernel/pci.c | 30 -- 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/arch/sparc/kernel/pci.c

[PATCH 02/28] PCI: Rip out pci_bus_add_devices() from pci_scan_root_bus()

2015-01-15 Thread Yijing Wang
Just like pci_scan_bus(), we also should rip out pci_bus_add_devices() from pci_scan_root_bus(). Lots platforms first call pci_scan_root_bus(), but after that, they call pci_bus_size_bridges() and pci_bus_assign_resources(). Place pci_bus_add_devices() in pci_scan_root_bus() hurts PCI scan logic.

[PATCH 08/28] PCI: Introduce pci_host_assign_domain_nr() to assign domain

2015-01-15 Thread Yijing Wang
Introduce pci_host_assign_domain_nr() to assign domain number for pci_host_bridge. Later we will remove pci_bus_assign_domain_nr(). Signed-off-by: Yijing Wang --- drivers/pci/pci.c | 47 +++ include/linux/pci.h |4 2 files changed, 51

[PATCH 07/28] PCI: Pass PCI domain number combined with root bus number

2015-01-15 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for

[PATCH 21/28] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-01-15 Thread Yijing Wang
Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as the parent. Then pci_scan_root_bus() will be called to scan the pci busses. Signed-off-by: Yijing Wang --- drivers/pci/host/pci-mvebu.c | 18

[PATCH 22/28] PCI/tegra: Remove redundant tegra_pcie_scan_bus()

2015-01-15 Thread Yijing Wang
Now pci_scan_root_bus() is almost simliar to pci_create_root_bus() + pci_scan_child_bus(). So we could use common pci_scan_root_bus() in pci_common_init_dev() to scan pci busses. tegra_pcie_scan_bus() is redundant, remove it. Signed-off-by: Yijing Wang --- drivers/pci/host/pci-tegra.c | 15

[PATCH 20/28] PCI/Parisc: Use pci_scan_root_bus() for simplicity

2015-01-15 Thread Yijing Wang
From: Yijing Wang Now pci_bus_add_devices() has been ripped out from pci_scan_root_bus(), we could use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang --- drivers/parisc/dino.c| 11 ++-

[PATCH 16/28] PCI/powerpc: Use pci_scan_root_bridge() for simplicity

2015-01-15 Thread Yijing Wang
Now we could use pci_scan_root_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Signed-off-by: Yijing Wang --- arch/powerpc/kernel/pci-common.c | 57 -- 1 files changed, 36 insertions(+), 21 deletions(-) diff --git

[PATCH 09/28] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2015-01-15 Thread Yijing Wang
We want to make a generic pci_host_bridge, then we could place common PCI infos like domain number in it. Ripping out pci_host_bridge creation from pci_create_root_bus() make code more better readability. Further more, we could use the generic pci_host_bridge to hold host bridge specific

Re: [PATCH v2 2/2] mm: don't use compound_head() in virt_to_head_page()

2015-01-15 Thread Christoph Lameter
On Thu, 15 Jan 2015, Andrew Morton wrote: > And perhaps some explanation here as to why virt_to_head_page() can > safely use compound_head_fast(). There's an assumption here that > nobody will be dismantling the compound page while virt_to_head_page() > is in progress, yes? And this assumption

[PATCH] ARM: clk-imx6q: refine esai_ipg's parent

2015-01-15 Thread Shengjiu Wang
esai_ipg clock's parent is ahb, not ipg. Signed-off-by: Shengjiu Wang --- arch/arm/mach-imx/clk-imx6q.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index 2daef61..d04a430 100644 ---

  1   2   3   4   5   6   7   8   9   10   >