Re: [PATCHv3 4/5] perf tools: Add --debug optionto set debug variable

2014-07-17 Thread Jiri Olsa
On Fri, Jul 18, 2014 at 02:04:51PM +0900, Namhyung Kim wrote: SNIP > > #include "util/quote.h" > > #include "util/run-command.h" > > #include "util/parse-events.h" > > +#include "util/debug.h" > > #include > > #include > > > > const char perf_usage_string[] = > > - "perf [--version] [

Re: [PATCH 1/5] arm: dts: omap3-gta04: Add missing nodes to fully describe gta04 board

2014-07-17 Thread Joachim Eastwood
On 16 July 2014 09:17, Dr. H. Nikolaus Schaller wrote: > Am 15.07.2014 um 14:45 schrieb Joachim Eastwood: > >> Hi Marek, >> >> You seem to add some DT nodes for hw that doesn't have drivers in >> mainline. I think you should leave those out until the driver itself >> is upstream and the bindings f

Re: [PATCH v2 12/29] nios2: Interrupt handling

2014-07-17 Thread Ley Foon Tan
On Thu, Jul 17, 2014 at 9:58 PM, Thomas Gleixner wrote: > On Thu, 17 Jul 2014, Ley Foon Tan wrote: > >> On Tue, Jul 15, 2014 at 5:51 PM, Thomas Gleixner wrote: >> > On Tue, 15 Jul 2014, Ley Foon Tan wrote: >> >> +static void chip_unmask(struct irq_data *d) >> >> +{ >> >> + u32 ien; >> >> +

[PATCH v13 0/8] MADV_FREE support

2014-07-17 Thread Minchan Kim
This patch enable MADV_FREE hint for madvise syscall, which have been supported by other OSes. [PATCH 1] includes the details. [1] support MADVISE_FREE for !THP page so if VM encounter THP page in syscall context, it splits THP page. [2-7] is to preparing to call madvise syscall without THP plitti

[PATCH v13 3/8] sparc: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Minchan Kim ---

[PATCH v13 6/8] arm: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Catalin Marinas Cc: Will Deacon Cc: Steve Capper Cc: Russell King Cc: linux-ar

Re: [patch] mm, writeback: prevent race when calculating dirty limits

2014-07-17 Thread Michal Hocko
On Wed 16-07-14 17:36:49, David Rientjes wrote: > Setting vm_dirty_bytes and dirty_background_bytes is not protected by any > serialization. > > Therefore, it's possible for either variable to change value after the > test in global_dirty_limits() to determine whether available_memory needs > t

[PATCH v13 4/8] powerpc: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: linuxppc-.

[PATCH v13 1/8] mm: support madvise(MADV_FREE)

2014-07-17 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can discard freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by u

[PATCH v13 2/8] x86: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Acked-

[PATCH v13 7/8] arm64: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Catalin Marinas Cc: Will Deacon Cc: Steve Capper Cc: Russell King Cc: linux-ar

[PATCH v13 5/8] s390: add pmd_[dirty|mkclean] for THP

2014-07-17 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page but for s390 pmds only referenced bit is available because there is no free bit left in the pmd entry for the software dirty bit so this patch adds dumb pmd_dirty

[PATCH v13 8/8] mm: Don't split THP page when syscall is called

2014-07-17 Thread Minchan Kim
We don't need to split THP page when MADV_FREE syscall is called. It could be done when VM decide really frees it so we could avoid unnecessary THP split. Cc: Andrea Arcangeli Acked-by: Kirill A. Shutemov Signed-off-by: Minchan Kim --- include/linux/huge_mm.h | 4 mm/huge_memory.c

[PATCH] [RFC] initial getrandom wrapper to provide getentropy for LibreSSL

2014-07-17 Thread Brent Cook
From: Brent Cook This is not a kernel patch, but rather an initial test of the API to see how it might mesh LibreSSL's expectations for how getentropy works. It is a bit more code to carefully handle the extra return values, as not reading enough bytes, because there is an unhandled EINTR, might

[PATCH] CMA/HOTPLUG: clear buffer-head lru before page migration

2014-07-17 Thread Gioh Kim
Hi, For page migration of CMA, buffer-heads of lru should be dropped. Please refer to https://lkml.org/lkml/2014/7/4/101 for the history. I have two solution to drop bhs. One is invalidating entire lru. Another is searching the lru and dropping only one bh that Laura proposed at https://lkml.org

Re: [PATCH v1] mmc: mmci: Add qcom dml support to the driver.

2014-07-17 Thread Srinivas Kandagatla
Thanks Stephen for the comments. On 18/07/14 00:06, Stephen Boyd wrote: On 07/17/14 12:36, Srinivas Kandagatla wrote: diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index b66b351..a83b7b5 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -74,6 +75,7 @@ static

Re: [PATCH 06/11] perf, tools: Automatically look for event file name for cpu

2014-07-17 Thread Michael Ellerman
On Fri, 2014-07-11 at 16:59 -0700, Andi Kleen wrote: > From: Andi Kleen > > When no JSON event file is specified automatically look > for a suitable file in ~/.cache/pmu-events. A "perf download" can > automatically add files there for the current CPUs. ... > diff --git a/tools/perf/arch/x86/ut

Re: [PATCH 07/11] perf, tools: Add perf download to download event files

2014-07-17 Thread Michael Ellerman
On Fri, 2014-07-11 at 16:59 -0700, Andi Kleen wrote: > From: Andi Kleen > > Add a downloader to automatically download the right > files from a download site. ... > diff --git a/tools/perf/Documentation/perf-download.txt > b/tools/perf/Documentation/perf-download.txt > new file mode 100644 > ind

Re: [PATCH 5/5] tty: serial: Add 8250-core based omap driver

2014-07-17 Thread Tony Lindgren
* Sebastian Andrzej Siewior [140717 03:09]: > On 07/17/2014 10:12 AM, Tony Lindgren wrote: > > Hmm it could be that it works for a while because the clocks are on > > from the bootloader and pm_runtime calls won't do anything. This > > could happen if the interconnect data based on the ti,hwmods e

Re: [PATCH v2 22/29] nios2: Miscellaneous header files

2014-07-17 Thread Chung-Lin Tang
Hi Arnd, Considering two other kernel interface issues that appeared earlier in the context of nios2 glibc/kernel upstreaming: (1) The 64-bit time_t/timespec issue. (2) Dropping renameat by default in favor of renameat2 What's the decision for these? Are they delayed to the next release? Thanks,

[PATCH v6 1/1] xen: vnuma for pv guests

2014-07-17 Thread Elena Ufimtseva
Issues Xen hypercall subop XENMEM_get_vnumainfo and sets the NUMA topology, otherwise sets dummy NUMA node and prevents numa_init from calling other numa initializators as they dont work with pv guests. Signed-off-by: Elena Ufimtseva --- arch/x86/include/asm/xen/vnuma.h | 10 arch/x86/mm/

[PATCH v6 0/1] introduce vnuma for Xen guests

2014-07-17 Thread Elena Ufimtseva
xen: vnuma for PV guests This patch is an addition to Xen vNUMA implementation posted to xen-devel mailing list. The patchset introduces vNUMA for paravirtualized Xen guests. Xen subop hypercall is used to retreive vnuma topology information. Bases on the retreived topology from Xen, NUMA number

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-17 Thread Varka Bhadram
On 07/18/2014 11:35 AM, Ethan Zhao wrote: On Fri, Jul 18, 2014 at 11:47 AM, Varka Bhadram wrote: On 07/18/2014 09:13 AM, Ethan Zhao wrote: netxen driver has implemented netxen_nic_get_ethtool_stats() interface, but it doesn't collect stats.rxdropped in driver, so we will get different rx_dropp

Re: [PATCH v2 21/29] nios2: Futex operations

2014-07-17 Thread Ley Foon Tan
On Thu, Jul 17, 2014 at 7:07 PM, Arnd Bergmann wrote: > The get_user/put_user functions really need to be annotated might_fault(), > because that's what they do. > > The whole point of get_user() is to access an unchecked user space > pointer, which can do a number of things based on what the poi

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-17 Thread Ethan Zhao
On Fri, Jul 18, 2014 at 11:47 AM, Varka Bhadram wrote: > On 07/18/2014 09:13 AM, Ethan Zhao wrote: >> >> netxen driver has implemented netxen_nic_get_ethtool_stats() interface, >> but it doesn't collect stats.rxdropped in driver, so we will get >> different rx_dropped statistic information while u

[PATCHv6 0/4] iio: adc: exynos_adc: Support Exynos3250 ADC and code clean

2014-07-17 Thread Chanwoo Choi
This patchset support Exynos3250 ADC (Analog Digital Converter) because Exynos3250 has additional special clock for ADC IP. Changes from v5: - Add acked message by Kukjin Kim - Add reviewed messgae by Tomasz Figa - Fix typo (for for -> for) Changes from v4: - Use 'exynos_adc_data' structure inste

[PATCHv6 4/4] ARM: dts: Fix wrong compatible string for Exynos3250 ADC

2014-07-17 Thread Chanwoo Choi
This patchset fix wrong compatible string for Exynos3250 ADC. Exynos3250 SoC need to control only special clock for ADC. Exynos SoC except for Exynos3250 has not included special clock for ADC. The exynos ADC driver can control special clock if compatible string is 'exynos3250-adc-v2'. Signed-off-

[PATCHv6 3/4] iio: devicetree: Add DT binding documentation for Exynos3250 ADC

2014-07-17 Thread Chanwoo Choi
This patch add DT binding documentation for Exynos3250 ADC IP. Exynos3250 has special clock ('sclk_adc') for ADC which provide clock to internal ADC. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Reviewed-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa Acked-by: Kukjin Kim --- ..

[PATCHv6 2/4] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-07-17 Thread Chanwoo Choi
This patch control special clock for ADC in Exynos series's FSYS block. If special clock of ADC is registerd on clock list of common clk framework, Exynos ADC drvier have to control this clock. Exynos3250/Exynos4/Exynos5 has 'adc' clock as following: - 'adc' clock: bus clock for ADC Exynos3250 ha

[PATCHv6 1/4] iio: adc: exynos_adc: Add exynos_adc_data structure to improve readability

2014-07-17 Thread Chanwoo Choi
This patchset add 'exynos_adc_data' structure which includes some functions to control ADC operation and specific data according to ADC version (v1 or v2). Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Reviewed-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa --- drivers/iio/adc/ex

[PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3

2014-07-17 Thread Lan Tianyu
NVS region is saved and restored unconditionally for machines without nvs_nosave quirk during S3. Tested some new machines and the operation is not necessary. Saving NVS region also affects S2RAM speed. The time of NVS saving and restoring depends on the size of NVS region and it consumes 7~10ms no

[PATCH] block:bio.c Cleanup styleguide errors reported by checkpatch.pl

2014-07-17 Thread Jim Richardson
3 styleguide errors cleaned up from checkpatch.pl report for block/bio.c Signed-off-by: Jim Richardson --- block/bio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/bio.c b/block/bio.c index 0ec61c9..41707f0 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1337,7

Re: [PATCH RFCv3 08/14] arm64: introduce aarch64_insn_gen_movewide()

2014-07-17 Thread Z Lim
(resending this email in case the first one got caught in your spam filter. sorry.) On Thu, Jul 17, 2014 at 10:41:02AM +0100, Will Deacon wrote: > On Wed, Jul 16, 2014 at 11:04:22PM +0100, Zi Shen Lim wrote: > > On Wed, Jul 16, 2014 at 05:17:15PM +0100, Will Deacon wrote: > > > On Tue, Jul 15, 201

Re: [PATCH RFCv3 01/14] arm64: introduce aarch64_insn_gen_comp_branch_imm()

2014-07-17 Thread Z Lim
(resending this email in case the first one got caught in your spam filter. sorry.) On Thu, Jul 17, 2014 at 06:25:26PM +0100, Will Deacon wrote: > On Thu, Jul 17, 2014 at 04:59:10PM +0100, Alexei Starovoitov wrote: > > On Thu, Jul 17, 2014 at 2:19 AM, Will Deacon wrote: > > > On Wed, Jul 16, 2014

[PATCH] stating/lustre: fix misuse of current->parent.

2014-07-17 Thread NeilBrown
current->parent is used by ptrace to redirect some signal delivery to the ptracer. It should only be used by 'ptrace' or 'signal' code. All other users should use current->real_parent, which is the real parent. Signed-off-by: NeilBrown diff --git a/drivers/staging/lustre/lustre/llite/lproc_l

Re: [net-next PATCH v2 0/3] Broadcast/Multicast rate limit via Ethtool Coalesce

2014-07-17 Thread Mugunthan V N
On Thursday 17 July 2014 06:23 PM, David Laight wrote: >> From: Mugunthan V N >> On Thursday 10 July 2014 05:14 AM, David Miller wrote: >>> From: Mugunthan V N >>> Date: Wed, 9 Jul 2014 12:44:07 +0530 >>> A system/cpu can be loaded by a hacker with flooding of broadcast or multicast pack

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-17 Thread Bruno Wolff III
On Thu, Jul 17, 2014 at 14:35:02 +0200, Peter Zijlstra wrote: In any case, can someone who can trigger this run with the below; its 'clean' for me, but supposedly you'll trigger a FAIL somewhere. I got a couple of fail messages. dmesg output is available in the bug as the following attachme

Re: [PATCH ftrace/core v3 3/3] kprobes: Set IPMODIFY flag only if the probe can change regs->ip

2014-07-17 Thread Namhyung Kim
Hi Masami, On Tue, 15 Jul 2014 06:00:35 +, Masami Hiramatsu wrote: > +static int __ftrace_add_filter_ip(struct ftrace_ops *ops, unsigned long ip, > + int *ref) > +{ > + int ret; > + > + /* Try to set given ip to filter */ > + ret = ftrace_set_filter_ip

Re: [PATCH 05/11] perf, tools: Add support for reading JSON event files

2014-07-17 Thread Michael Ellerman
On Fri, 2014-07-11 at 16:59 -0700, Andi Kleen wrote: > From: Andi Kleen > > Add a parser for Intel style JSON event files. This allows > to use an Intel event list directly with perf. The Intel > event lists can be quite large and are too big to store > in unswappable kernel memory. ... > diff

[PATCH] ia64: Fix me add register r8

2014-07-17 Thread Nicholas Krause
The function user_stack_pointer was not returning the correct value \ as stated by a Fix Me message before the function declaration. I fixed the return value to add register r8 as that register stores dirty pages. Signed-off-by: Nicholas Krause --- arch/ia64/include/asm/ptrace.h | 3 +-- 1 file

linux-next: manual merge of the irqchip tree with the trivial tree

2014-07-17 Thread Stephen Rothwell
Hi Jason, Today's linux-next merge of the irqchip tree got a conflict in drivers/irqchip/irq-gic.c between commit d31e373d0778 ("irq-gic: remove file name from heading comment") from the trivial tree and commit fe7ac63fe539 ("irqchip: gic: Restructuring ARM GIC code") from the irqchip tree. I fix

[PATCH 2/4] ARM: add IPI tracepoints

2014-07-17 Thread Nicolas Pitre
The strings used to list IPIs in /proc/interrupts are reused for tracing purposes. Signed-off-by: Nicolas Pitre --- arch/arm/kernel/smp.c | 72 --- 1 file changed, 45 insertions(+), 27 deletions(-) diff --git a/arch/arm/kernel/smp.c b/arch/arm/ker

[PATCH 0/4] basic IPI tracing

2014-07-17 Thread Nicolas Pitre
Part of the energy aware scheduler work is concerned by test and measurement tools such as idlestat[1]. This relies on the ability to trace wake-up events, mainly IRQs and IPIs. While IRQs are already well instrumented with tracepoints, IPIs are rather lacking on that front, and completely invisi

[PATCH 4/4] (RFC) X86: add IPI tracepoints

2014-07-17 Thread Nicolas Pitre
On X86 there are already tracepoints for IRQ vectors through which IPIs are handled. However this is highly X86 specific, and the IPI signaling is not currently traced. This is an attempt at adding generic IPI tracepoints to X86. Signed-off-by: Nicolas Pitre --- arch/x86/kernel/smp.c | 16

[PATCH 1/4] tracepoint: add generic tracepoint definitions for IPI tracing

2014-07-17 Thread Nicolas Pitre
The Inter Processor Interrupt is used to make another processor do a specific action such as rescheduling tasks, signal a timer event or execute something in another CPU's context. IRQs are already traceable but IPIs were not. Tracing them is useful for monitoring IPI latency, or to verify when the

[PATCH 3/4] ARM64: add IPI tracepoints

2014-07-17 Thread Nicolas Pitre
The strings used to list IPIs in /proc/interrupts are reused for tracing purposes. While at it, the code is slightly cleaned up so the ipi_types array indices are no longer offset by IPI_RESCHEDULE whose value is 0 anyway. Signed-off-by: Nicolas Pitre --- arch/arm64/kernel/smp.c | 67 ++

linux-next: manual merge of the irqchip tree with the arm64 tree

2014-07-17 Thread Stephen Rothwell
Hi Jason, Today's linux-next merge of the irqchip tree got a conflict in arch/arm64/Kconfig between commit 875cbf3e4614 ("arm64: Add audit support") from the arm64 tree and commit 3e44358c12cc ("irqchip: gic: Add support for ARM GICv2m MSI(-X)") from the irqchip tree. I fixed it up (see below) an

RE: [PATCHv5 0/4] iio: adc: exynos_adc: Support Exynos3250 ADC and code clean

2014-07-17 Thread Kukjin Kim
Jonathan Cameron wrote: > > On 27/06/14 05:30, Chanwoo Choi wrote: > > Changes from v4: > > - Use 'exynos_adc_data' structure instead of 'exynos_adc_ops' structure > >and remove enum variable of ADC version > > - Fix wrong name of special clock (sclk_tsadc -> sclk_adc) > > - Add reviewed messa

Re: [PATCH 2/2] pwm: add this series patch to support for rk-pwm and vop-pwm.

2014-07-17 Thread caesar
Hi Beniamino, 于 2014年07月18日 03:24, Beniamino Galvani 写道: On Thu, Jul 17, 2014 at 02:08:14PM +0800, caesar wrote: Signed-off-by: caesar Hi Caesar, just a couple of comments below. --- drivers/pwm/pwm-rockchip.c | 108 - 1 file changed, 88 insert

Re: [PATCH] perf stat: Pass PERF_STAT_RUN environment variable for each run

2014-07-17 Thread Namhyung Kim
Hi Arnaldo and Peter, On Thu, 17 Jul 2014 10:09:43 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 17, 2014 at 10:40:11AM +0200, Peter Zijlstra escreveu: >> On Thu, Jul 17, 2014 at 05:31:14PM +0900, Namhyung Kim wrote: >> > On Thu, Jul 17, 2014 at 5:26 PM, Peter Zijlstra >> > wrote: >> > >

Re: [PATCHv3 4/5] perf tools: Add --debug optionto set debug variable

2014-07-17 Thread Namhyung Kim
Hi Jiri, On Thu, 17 Jul 2014 12:55:00 +0200, Jiri Olsa wrote: > yep, it's better, v3 attached [SNIP] > --- a/tools/perf/Documentation/perf.txt > +++ b/tools/perf/Documentation/perf.txt > @@ -8,7 +8,15 @@ perf - Performance analysis tools for Linux > SYNOPSIS > > [verse] > -'perf' [--v

linux-next: build warning after merge of the tip tree

2014-07-17 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: In file included from arch/x86/vdso/vdso2c.c:161:0: arch/x86/vdso/vdso2c.c: In function 'main': arch/x86/vdso/vdso2c.h:118:6: warning: assuming signed overflow does not occur when assuming

Re: [PATCH v2] staging: android: Fixed missing blank line

2014-07-17 Thread Dan Carpenter
On Fri, Jul 18, 2014 at 04:36:42AM +, Sharma, Sanjeev wrote: > Done ! ,Please review now. > Looks ok. regards, dan carpenter -- 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 http://vger.k

hcd.c Fix me statements

2014-07-17 Thread Nick Krause
I am assuming this is a stupid question but since I am new I will ask it anyway. Can the usb_bus structure be Null? If can I will send it a patch removing the fix mes on lines 854 and 878 of hcd.c . Cheers Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: [PATCH] ftrace: Do not copy old hash when resetting.

2014-07-17 Thread Wang Nan
Hi Steve, What's your opinion on my v2 patch ( https://lkml.org/lkml/2014/7/14/839 )? I have swapped if consitions following your suggestion. On 2014/7/14 12:10, Wang Nan wrote: > If we are going to reset hash, we don't need to duplicate old hash > and remove every entries right after allocation

[PATCH] kbuild: allow to override Python command name

2014-07-17 Thread Masahiro Yamada
The specification of Python 3 is largely different from that of Python 2. For example, arch/ia64/scripts/unwcheck.py seems to be written in Python 2, not compatible with Python 3. It is not a good idea to invoke python scripts with the hard-coded command name 'python'. The command 'python' could

[PATCH RFC v2 net-next 00/16] BPF syscall, maps, verifier, samples

2014-07-17 Thread Alexei Starovoitov
Hi All, changes V1->V2: - got rid of global id, everything now FD based (Thanks Andy!) - split type enum in verifier (as suggested by Andy and Namhyung) - switched gpl enforcement to be kmod like (as suggested by Andy and David) - addressed feedback from Namhyung, Chema, Joe - added more comments

RE: [PATCH v2] staging: android: Fixed missing blank line

2014-07-17 Thread Sharma, Sanjeev
Done ! ,Please review now. Regards Sanjeev Sharma -Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Thursday, July 17, 2014 2:41 PM To: Sharma, Sanjeev Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; way...@gmail.com; swetl...@google.com; linux-k

[PATCH RFC v2 net-next 02/16] bpf: update MAINTAINERS entry

2014-07-17 Thread Alexei Starovoitov
Signed-off-by: Alexei Starovoitov --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ae8cd00215b2..32e24ff46da3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1912,6 +1912,13 @@ S: Supported F: drivers/net/bonding/ F: incl

[PATCH RFC v2 net-next 01/16] net: filter: split filter.c into two files

2014-07-17 Thread Alexei Starovoitov
BPF is used in several kernel components. This split creates logical boundary between generic eBPF core and the rest kernel/bpf/core.c: eBPF interpreter net/core/filter.c: classic->eBPF converter, classic verifiers, socket filters This patch only moves functions. Signed-off-by: Alexei Starovoit

[PATCH] staging: android: Fixed missing blank line

2014-07-17 Thread Sanjeev Sharma
This patch will add an blank line after declaration reported by checkpatch.pl script. Signed-off-by: Sanjeev Sharma --- drivers/staging/android/sw_sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index a76db3f..86

[PATCH RFC v2 net-next 07/16] bpf: add lookup/update/delete/iterate methods to BPF maps

2014-07-17 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 nega

[PATCH RFC v2 net-next 04/16] net: filter: split filter.h and expose eBPF to user space

2014-07-17 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 cannot

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

2014-07-17 Thread Anish Bhatt
This is totally my bad. Already posted the fix some time ago. N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�&j:+v���zZ+��+zf���h���~i���z��w���?�&�)ߢf��^jǫy�m��@A�a��� 0��h���i

[PATCH RFC v2 net-next 06/16] bpf: enable bpf syscall on x64

2014-07-17 Thread Alexei Starovoitov
done as separate commit to ease conflict resolution Signed-off-by: Alexei Starovoitov --- arch/x86/syscalls/syscall_64.tbl |1 + include/linux/syscalls.h |2 ++ include/uapi/asm-generic/unistd.h |4 +++- kernel/sys_ni.c |3 +++ 4 files changed, 9 inser

[PATCH RFC v2 net-next 08/16] bpf: add hashtable type of BPF maps

2014-07-17 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 --- include/uapi/linux/bpf.h |1 + kernel/bpf/Makefile |2 +- kernel/bpf/hashtab.c | 371 ++ 3 files

[PATCH RFC v2 net-next 09/16] bpf: expand BPF syscall with program load/unload

2014-07-17 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, MAP_ASSOC) TEXT -

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

2014-07-17 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 bpf_pr

[tip:perf/core] perf script: Display PERF_RECORD_MISC_COMM_EXEC flag

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 022c50d09c2c2bc31506ad16c4bcba7fb418ce34 Gitweb: http://git.kernel.org/tip/022c50d09c2c2bc31506ad16c4bcba7fb418ce34 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:27 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:34 -0300 perf script:

[tip:perf/core] perf record: Select comm_exec flag if supported

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 39e09d40bea440d9cfe645b55aff251294318669 Gitweb: http://git.kernel.org/tip/39e09d40bea440d9cfe645b55aff251294318669 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:28 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:34 -0300 perf record:

[tip:perf/core] perf tools: Move pr_* debug macros into debug object

2014-07-17 Thread tip-bot for Jiri Olsa
Commit-ID: 84f5d36f486609277801e827241396334185d11c Gitweb: http://git.kernel.org/tip/84f5d36f486609277801e827241396334185d11c Author: Jiri Olsa AuthorDate: Mon, 14 Jul 2014 23:46:48 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 12:58:39 -0300 perf tools: Move

Fix mes in crash.c

2014-07-17 Thread Nick Krause
Hey again Ben, I am hitting quite a few fix mes in this file. I am wondering how you would like me to fix them. Cheers Nick -- 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 http://vger.kernel.org

[tip:perf/core] perf tools: Remove verbose from functions prototypes

2014-07-17 Thread tip-bot for Jiri Olsa
Commit-ID: acebd408bef17169fbf79079b96f0264b535916c Gitweb: http://git.kernel.org/tip/acebd408bef17169fbf79079b96f0264b535916c Author: Jiri Olsa AuthorDate: Mon, 14 Jul 2014 23:46:47 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 11:04:42 -0300 perf tools: Remov

[tip:perf/core] perf tools: Allow TSC conversion on any arch

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 0b437860818dc717f6a9e8a5089223a8414f5fff Gitweb: http://git.kernel.org/tip/0b437860818dc717f6a9e8a5089223a8414f5fff Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:03:03 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 12:59:00 -0300 perf tools: A

[tip:perf/core] perf tools: Factor eprintf to allow different debug variables

2014-07-17 Thread tip-bot for Jiri Olsa
Commit-ID: c95688aac7723c17b2badc23233706b2f02e58ed Gitweb: http://git.kernel.org/tip/c95688aac7723c17b2badc23233706b2f02e58ed Author: Jiri Olsa AuthorDate: Mon, 14 Jul 2014 23:46:49 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 12:58:59 -0300 perf tools: Facto

[tip:perf/core] perf tools: Add --debug optionto set debug variable

2014-07-17 Thread tip-bot for Jiri Olsa
Commit-ID: bbb2cea7e8dd496b41558df1a0ec9205497b7ebf Gitweb: http://git.kernel.org/tip/bbb2cea7e8dd496b41558df1a0ec9205497b7ebf Author: Jiri Olsa AuthorDate: Thu, 17 Jul 2014 12:55:00 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 12:58:59 -0300 perf tools: Add -

[tip:perf/core] perf machine: Fix leak of 'struct thread' on error path

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 418029b7324f8b90ac1dfbc8a44555d6905be761 Gitweb: http://git.kernel.org/tip/418029b7324f8b90ac1dfbc8a44555d6905be761 Author: Adrian Hunter AuthorDate: Wed, 16 Jul 2014 10:19:44 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 10:34:07 -0300 perf machine:

[tip:perf/core] perf tools: Remove needless getopt.h includes

2014-07-17 Thread tip-bot for Jiri Olsa
Commit-ID: ff527bccd469067a64f4ae9747b9045914667d34 Gitweb: http://git.kernel.org/tip/ff527bccd469067a64f4ae9747b9045914667d34 Author: Jiri Olsa AuthorDate: Mon, 14 Jul 2014 23:46:51 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 12:59:00 -0300 perf tools: Remov

[tip:perf/core] perf thread: Allow deletion of a thread with no map groups

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 9608b84e4dd95341b88cad646b114811f5bccbba Gitweb: http://git.kernel.org/tip/9608b84e4dd95341b88cad646b114811f5bccbba Author: Adrian Hunter AuthorDate: Wed, 16 Jul 2014 10:19:43 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 10:32:35 -0300 perf thread:

[tip:perf/core] perf symbols: Add ability to iterate over a dso' s symbols

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 9c00a81b6aafc4ed375a43e7a54e6cf2d720c7c6 Gitweb: http://git.kernel.org/tip/9c00a81b6aafc4ed375a43e7a54e6cf2d720c7c6 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:50 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:35 -0300 perf symbols:

[tip:perf/core] perf symbols: Do not attempt to read data from kallsyms

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: bdac0bcf779250e89b96d4a3f381ebaf02c2f4a9 Gitweb: http://git.kernel.org/tip/bdac0bcf779250e89b96d4a3f381ebaf02c2f4a9 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:43 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:35 -0300 perf symbols:

[tip:perf/core] perf evsel: Add 'immediate' option

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 2afd2bcfc3a026d6e4c2184bf41ccd74eb05758b Gitweb: http://git.kernel.org/tip/2afd2bcfc3a026d6e4c2184bf41ccd74eb05758b Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:57 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:37 -0300 perf evsel: A

[tip:perf/core] perf session: Flag if the event stream is entirely in memory

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 919d86d3a3109d7d4f0d7347f34711ee2f8e6609 Gitweb: http://git.kernel.org/tip/919d86d3a3109d7d4f0d7347f34711ee2f8e6609 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:51 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:36 -0300 perf session:

[tip:perf/core] perf tools: Add feature test for __sync_val_compare_and_swap

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: f6d313699a9612a30fabe05bf2c9302c1408b5cf Gitweb: http://git.kernel.org/tip/f6d313699a9612a30fabe05bf2c9302c1408b5cf Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:53 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:36 -0300 perf tools: A

[tip:perf/core] perf machine: Fix map groups of threads with unknown pids

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 29ce36121e6738012aaf00d983d25260627f2b0d Gitweb: http://git.kernel.org/tip/29ce36121e6738012aaf00d983d25260627f2b0d Author: Adrian Hunter AuthorDate: Wed, 16 Jul 2014 11:07:13 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Jul 2014 10:31:02 -0300 perf machine:

[tip:perf/core] perf evsel: Add 'no_aux_samples' option

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 6ff1ce763921f605aaf98c7a828b7df24d6923dc Gitweb: http://git.kernel.org/tip/6ff1ce763921f605aaf98c7a828b7df24d6923dc Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:56 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:36 -0300 perf evsel: A

[tip:perf/core] perf tools: Add option macro OPT_CALLBACK_OPTARG

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: ea8e08a16a1e6566be3f775c0bd351fa52ab6b9d Gitweb: http://git.kernel.org/tip/ea8e08a16a1e6566be3f775c0bd351fa52ab6b9d Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:54 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:36 -0300 perf tools: A

[tip:perf/core] perf evlist: Pass mmap parameters in a struct

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: a8a8f3eb5de55aeaf007c18572668e8ec463547b Gitweb: http://git.kernel.org/tip/a8a8f3eb5de55aeaf007c18572668e8ec463547b Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:52 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:36 -0300 perf evlist:

[tip:perf/core] perf kvm: Move arch specific code into arch/

2014-07-17 Thread tip-bot for Alexander Yarygin
Commit-ID: 9daa81239e60c162153fb2a365b8492c9a9bf632 Gitweb: http://git.kernel.org/tip/9daa81239e60c162153fb2a365b8492c9a9bf632 Author: Alexander Yarygin AuthorDate: Thu, 3 Jul 2014 18:29:05 +0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:32 -0300 perf kvm:

Re: RE: [PATCH 2/4] power_supply: Introduce generic psy charging driver

2014-07-17 Thread MyungJoo Ham
From: Tc, Jenny > > > From: Sebastian Reichel [mailto:s...@kernel.org] > > Sent: Friday, July 18, 2014 7:49 AM > > To: Tc, Jenny > > Cc: linux-kernel@vger.kernel.org; Dmitry Eremin-Solenikov; Pavel Machek; > > Anton > > Vorontsov; David Woodhouse; David Cohen; Pallala, Ramakrishna; > > myungjoo.

[tip:perf/core] perf script: Add callchain to generic and tracepoint events

2014-07-17 Thread tip-bot for Joseph Schuchart
Commit-ID: 0f5f5bcd112292f14b75750dde7461463bb1c7bb Gitweb: http://git.kernel.org/tip/0f5f5bcd112292f14b75750dde7461463bb1c7bb Author: Joseph Schuchart AuthorDate: Thu, 10 Jul 2014 13:50:51 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:33 -0300 perf scrip

[tip:perf/core] perf kvm: Use defines of kvm events

2014-07-17 Thread tip-bot for Alexander Yarygin
Commit-ID: 44b3802122174ba499613bac3aab2e66e948ce1e Gitweb: http://git.kernel.org/tip/44b3802122174ba499613bac3aab2e66e948ce1e Author: Alexander Yarygin AuthorDate: Thu, 3 Jul 2014 18:29:04 +0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:32 -0300 perf kvm:

[tip:perf/core] perf script: Add missing calls to Py_DECREF for return values

2014-07-17 Thread tip-bot for Joseph Schuchart
Commit-ID: 05f832e3a267d6e45d092595bdf9339d127ea137 Gitweb: http://git.kernel.org/tip/05f832e3a267d6e45d092595bdf9339d127ea137 Author: Joseph Schuchart AuthorDate: Wed, 9 Jul 2014 16:16:31 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:33 -0300 perf script

[tip:perf/core] perf callchain: Fix appending a callchain from a previous sample

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 4d40b051b1ac41ecbc818deed27750b4c1697520 Gitweb: http://git.kernel.org/tip/4d40b051b1ac41ecbc818deed27750b4c1697520 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:35 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:35 -0300 perf callchai

[tip:perf/core] perf machine: Fix the value used for unknown pids

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 1fcb8768636d38cb6fdfeef83a5ee596c4bd9c56 Gitweb: http://git.kernel.org/tip/1fcb8768636d38cb6fdfeef83a5ee596c4bd9c56 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:25 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:33 -0300 perf machine:

[PATCH RFC v2 net-next 14/16] samples: bpf: add mini eBPF library to manipulate maps and programs

2014-07-17 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 bpf_get_next_key(

[tip:perf/core] perf buildid-cache: Apply force option to copying kcore

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: 5173fbb8a11b2857aeec9e5f4e9568d4e1b84dbd Gitweb: http://git.kernel.org/tip/5173fbb8a11b2857aeec9e5f4e9568d4e1b84dbd Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:38 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:35 -0300 perf buildid-

[tip:perf/core] perf script: Provide additional sample information on generic events

2014-07-17 Thread tip-bot for Joseph Schuchart
Commit-ID: 57608cfd8827a74237d264a197722e2c99f72da4 Gitweb: http://git.kernel.org/tip/57608cfd8827a74237d264a197722e2c99f72da4 Author: Joseph Schuchart AuthorDate: Thu, 10 Jul 2014 13:50:56 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:33 -0300 perf scrip

[git pull] drm fixes

2014-07-17 Thread Dave Airlie
Hi Linus, one nouveau deadlock fix, one qxl irq handling fix, and a set of radeon pageflipping changes that fix regressions in pageflipping since -rc1 along with a leak and backlight fix. the pageflipping fixes are a bit bigger than I'd like, but there has been a few people focused on testing t

[tip:perf/core] perf inject: Fix build id injection

2014-07-17 Thread tip-bot for Adrian Hunter
Commit-ID: e38b43c3f3fd8ebe6f558400d1647a923bc19d44 Gitweb: http://git.kernel.org/tip/e38b43c3f3fd8ebe6f558400d1647a923bc19d44 Author: Adrian Hunter AuthorDate: Mon, 14 Jul 2014 13:02:34 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 16 Jul 2014 17:57:34 -0300 perf inject:

  1   2   3   4   5   6   7   8   9   10   >