Re: [PATCH 2/5] perf tools: Improve BPF related error messages output

2015-11-05 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 05, 2015 at 04:26:59AM +, Wang Nan escreveu: > A series of bpf loader related error code is introduced to help error > delivering. Functions are improved to return those new error code. > Functions which return pointers are adjusted to encode error code into > return value using "ER

Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection

2015-11-05 Thread Jacob Pan
On Thu, 5 Nov 2015 15:33:32 +0100 Peter Zijlstra wrote: > On Thu, Nov 05, 2015 at 06:22:58AM -0800, Arjan van de Ven wrote: > > On 11/5/2015 2:09 AM, Peter Zijlstra wrote: > > > > >I can see such a scheme having a fairly big impact on latency, > > >esp. with forced idleness such as this. That's

Re: [PATCH] sched,numa cap pte scanning overhead to 3% of run time

2015-11-05 Thread Peter Zijlstra
On Wed, Nov 04, 2015 at 01:25:15PM -0500, Rik van Riel wrote: > +++ b/kernel/sched/fair.c > @@ -2155,6 +2155,7 @@ void task_numa_work(struct callback_head *work) > unsigned long migrate, next_scan, now = jiffies; > struct task_struct *p = current; > struct mm_struct *mm = p->mm; >

Re: [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM

2015-11-05 Thread David Miller
From: Sowmini Varadhan Date: Wed, 4 Nov 2015 18:21:00 -0500 > This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC > address in Open Firmware or IDPROM"). > > As with that fix, attempt to look up the MAC address in Open Firmware > on systems that support it, and use IDPROM on

[PATCH 04/25] perf stat record: Synthesize stat record data

2015-11-05 Thread Jiri Olsa
Synthesizing needed stat record data for report/script: - cpu/thread maps - stat config Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-wni1s2i2sq17g4vomjyda...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 47 +++

Re: [PATCH v2 1/5] spi: introduce mmap read support for spi flash devices

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 05:59:36PM +0530, Vignesh R wrote: > On 11/04/2015 08:09 PM, Mark Brown wrote: > > It's a bit worrying that this doesn't sync with the message queue except > > via the mutex: this means that we might be out of order with respect to > > any asynchronous transfers that are ha

Re: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 10:43:19AM +, Adam Thomson wrote: > +/* ALC */ > +static void da7218_alc_calib(struct snd_soc_codec *codec) > +{ > + struct da7218_priv *da7218 = snd_soc_codec_get_drvdata(codec); > + u8 calib_ctrl; > + int i = 0; > + bool calibrated = false; > + > +

Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage regulator driver

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:34:47PM +0800, Chen Feng wrote: > +config REGULATOR_HI6220_MTCMOS > +bool "Hisilicon Hi6220 mtcmos support" > +depends on ARCH_HISI > +help > + This driver provides support for the mtcmos regulators of Hi6220 > Soc. > + The Kconfig and

Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection

2015-11-05 Thread Arjan van de Ven
On 11/5/2015 6:33 AM, Peter Zijlstra wrote: On Thu, Nov 05, 2015 at 06:22:58AM -0800, Arjan van de Ven wrote: On 11/5/2015 2:09 AM, Peter Zijlstra wrote: I can see such a scheme having a fairly big impact on latency, esp. with forced idleness such as this. That's not going to be popular for ma

Re: [PATCH 1/5] bpf tools: Improve libbpf error reporting

2015-11-05 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 05, 2015 at 04:26:58AM +, Wang Nan escreveu: > In this patch, a series libbpf specific error numbers and > libbpf_strerror() are created to help reporting error to caller. > Functions are updated to pass correct error number through macro > CHECK_ERR(). > > All users of bpf_object_

Re: [PATCH 3/4] scsi: fix compiler warning for sg

2015-11-05 Thread Timur Tabi
Sinan Kaya wrote: > > > #define MULDIV(X,MUL,DIV)mult_frac64(X, MUL, DIV) Why bother with the macro at all? Just change the code to use do_div() directly. It's possible that the original code was written before do_div() became standard, or the developer didn't know about, which is why we h

Re: [PATCH 3/9] perf, tools, stat: Abstract stat metrics printing

2015-11-05 Thread Andi Kleen
> > There can be stuff after the metric, need to print spaces then to get > > the correct indentation. > > what stuff? The stddev (with -rX) or the enabled/run ratio. -Andi -- a...@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-k

[PATCH] ACPICA: Delete unnecessary checks before the function call "acpi_ut_strupr"

2015-11-05 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 5 Nov 2015 16:12:32 +0100 The acpi_ut_strupr() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- dri

Re: [PATCH 3/4] scsi: fix compiler warning for sg

2015-11-05 Thread Sinan Kaya
On 11/5/2015 3:48 AM, Andy Shevchenko wrote: On Thu, Nov 5, 2015 at 6:46 AM, Sinan Kaya wrote: The MULDIV macro has been designed for small numbers. It emits an overflow warning on 64 bit systems. This patch places type casts in the parameters to fix the compiler warning. Signed-off-by: Sina

Re: [PATCH v2] livepatch: old_name.number scheme in livepatch sysfs directory

2015-11-05 Thread Miroslav Benes
On Wed, 4 Nov 2015, Josh Poimboeuf wrote: > On Wed, Nov 04, 2015 at 10:52:52AM +0100, Miroslav Benes wrote: > > On Tue, 3 Nov 2015, Josh Poimboeuf wrote: > > > > Object entry would be empty for not loaded object. I would not > > > > dare to propose to remove such object entries. It would make thi

Re: [PATCH] kconfig: fix missing symbol error

2015-11-05 Thread kbuild test robot
Hi yalin, [auto build test ERROR on: v4.3-rc7] [also build test ERROR on: next-20151105] url: https://github.com/0day-ci/linux/commits/yalin-wang/kconfig-fix-missing-symbol-error/20151105-204811 config: blackfin-allmodconfig (attached as .config) reproduce: wget https

Re: [PATCH 2/3] usb: dwc2: host: Giveback URB in tasklet context

2015-11-05 Thread Alan Stern
On Wed, 4 Nov 2015, Doug Anderson wrote: > In the ChromeOS gerrit > Julius Werner > points out that for EHCI it was good to take the optimization from > commit 9118f9eb4f1e ("USB: EHCI: improve interrupt qh unlink") before > this one. I'm sti

Re: [PATCH] livepatch: Cleanup page permission changes

2015-11-05 Thread Josh Poimboeuf
On Thu, Nov 05, 2015 at 10:40:26AM +0100, Jiri Kosina wrote: > On Thu, 5 Nov 2015, Jiri Kosina wrote: > > > > > > +#ifdef CONFIG_DEBUG_SET_MODULE_RONX > > > > > +static void set_page_attributes(void *start, void *end, > > > > > + int (*set)(unsigned long start, int > >

Re: [RFC PATCH 1/7] audit: don't needlessly reset valid wait time

2015-11-05 Thread Paul Moore
On Wed, Nov 4, 2015 at 10:13 PM, Richard Guy Briggs wrote: > On 15/11/04, Paul Moore wrote: >> On Thursday, October 22, 2015 02:53:14 PM Richard Guy Briggs wrote: >> > After auditd has recovered from an overflowed queue, the first process >> > that doesn't use reserves to make it through the queue

Re: Grafting old platform drivers onto a new DT kernel

2015-11-05 Thread Andrew Lunn
> Since I don't have time to rewrite the drivers at the moment, I'm wondering > if it's possible to "graft" old drivers (they're using the platform API, no > trace of DT support) onto my small base? Platform drivers are still usable with DT systems. We used that fact when converting platform based

Re: [PATCH] kconfig: fix missing symbol error

2015-11-05 Thread kbuild test robot
Hi yalin, [auto build test WARNING on: v4.3-rc7] [also build test WARNING on: next-20151105] url: https://github.com/0day-ci/linux/commits/yalin-wang/kconfig-fix-missing-symbol-error/20151105-204811 config: mips-allmodconfig (attached as .config) reproduce: wget https

Re: [PATCH 1/1] signal: kill the obsolete SIGNAL_UNKILLABLE check in complete_signal()

2015-11-05 Thread Oleg Nesterov
On 11/04, Andrew Morton wrote: > > On Wed, 4 Nov 2015 20:19:12 +0100 Oleg Nesterov wrote: > > > This explains WARN_ON(!JOBCTL_STOP_PENDING) in task_participate_group_stop() > > triggered by the test-case from Dmitry: > > > > int main() > > { > > int pid = 1; > > ptr

[GIT PULL] First batch of KVM changes for 4.4

2015-11-05 Thread Paolo Bonzini
Linus, The following changes since commit 0d997491f814c87310a6ad7be30a9049c7150489: arm/arm64: KVM: Fix disabled distributor operation (2015-10-20 18:09:13 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes u

RE: [PATCH 1/2] perf probe: Only call probe_file__get_events() when fd is valid

2015-11-05 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] >Em Thu, Nov 05, 2015 at 01:19:24PM +, Wang Nan escreveu: >> In system with kprobe enabled but uprobe turned off, 'perf probe -d' >> causes segfault because it calls probe_file__get_events() with a >> negative fd (when deleting uprobe even

Re: [RFC PATCH 2/7] spi: sunxi: remove redundant "depends on RESET_CONTROLLER"

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:32:15PM +0900, Masahiro Yamada wrote: > For compile test, right, "depends on RESET_CONTROLLER" is > redundant in the first place. > For run-time on real SoCs,the driver failed at the following point > without the reset-controller sub-system. Your changelog needs to say

[PATCH 08/25] perf stat record: Write stat round events on record

2015-11-05 Thread Jiri Olsa
Writing stat round events on 'perf stat record' for each interval round. In non interval mode we store round event after the last stat event. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c |

Re: NETIF_F_GSO_SOFTWARE vs NETIF_F_GSO

2015-11-05 Thread Jason A. Donenfeld
Hi Herbert, Thanks for your response! On Thu, Nov 5, 2015 at 1:15 PM, Herbert Xu wrote: > The NETIF_F_GSO flag turns on software GSO which should be on > anyway. So that could be why it seems to make no difference. GSO is on by default? That makes sense, okay. > > NETIF_F_GSO_SOFTWARE is actu

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:40, Timur Tabi wrote: > Fu Wei wrote: >> >> Did you really read the "Note" above OK, let me paste it again >> and again: >> >> SBSA 2.3 Page 23 : >> If a larger watch period is required then the compare value can be >> programmed directly into the compar

RE: [PATCH 00/28] tracing: 'hist' triggers

2015-11-05 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Namhyung Kim [mailto:namhy...@gmail.com] On Behalf Of Namhyung Kim > >Hi Tom, > >I implemented 'log2' modifier on top of your v11 patchset. Could you >please take a look at this? Ah, this seems very useful :) Reviewed-by: Masami Hiramatsu -- Masami > > > >From 5fc74778b9af5e4e121a0563f

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-11-05 Thread Tetsuo Handa
rgv[0], "1", NULL);; _exit(0); case -1: sleep(1); } } return 0; } Note the interval between invoking the OOM killer. (Complete log is at http://I-love.

Re: [PATCH 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 10:43:15AM +, Adam Thomson wrote: > +- dlg,ldo-lvl : Required internal LDO voltage (mV) level > + [<1050>, <1100>, <1200>, <1400>] Why would this ever be anything other than the minimum voltage, and might we not want to vary it at runtime? > +- dlg,biquad-cfg : Li

Re: [PATCH 1/2] perf probe: Only call probe_file__get_events() when fd is valid

2015-11-05 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 05, 2015 at 01:19:24PM +, Wang Nan escreveu: > In system with kprobe enabled but uprobe turned off, 'perf probe -d' > causes segfault because it calls probe_file__get_events() with a > negative fd (when deleting uprobe events). > > This patch validates fds before calling probe_file

Re: [Linaro-acpi] [PATCH V1 11/11] arm64, pci, acpi: Support for ACPI based PCI hostbridge init

2015-11-05 Thread Sinan Kaya
On 11/3/2015 12:43 PM, Sinan Kaya wrote: In any case, the hardware document says 32 bit configuration space access to the host bridge only. I'll get more clarification. I got confirmation this morning that this chip supports 32 bit access to the root complex configuration space. 8/16/32 bits

[PATCH 01/25] perf stat: Make stat options global

2015-11-05 Thread Jiri Olsa
So they can be used in perf stat record command in following patch. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-ph49d9w6t7a7oyu37zkle...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 163 +++--- 1 file changed, 82 ins

[PATCH 03/25] perf stat record: Initialize record features

2015-11-05 Thread Jiri Olsa
Disabling all non stat related features. Also as we now enable STAT feature in the data file, adding code to instruct session open to skip sample type checking for stat data files. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-0av5yfkwyywwgoiali88w...@git.kernel.org Signed-off-by: Jiri

Re: [PATCH] Ext4: Fix extended timestamp encoding and decoding

2015-11-05 Thread Arnd Bergmann
On Thursday 05 November 2015 14:49:16 David Howells wrote: > Since the epoch is presumably unsigned, this has the slightly strange > effect of, for epochs > 0, putting the 0x8000-0x range before > the 0x-0x7fff range. > > This affects all kernels from v2.6.23-rc1 onwards. .

[PATCH 10/25] perf stat record: Synthesize event update events

2015-11-05 Thread Jiri Olsa
Synthesize other events stuff not carried within attr event - unit, scale, name. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-dzt1cls17hvc9nowg778z...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 59 +++ 1 file ch

[PATCH 11/25] perf stat report: Add report command

2015-11-05 Thread Jiri Olsa
Adding 'perf stat report' command support. ATM it only processes attr events and display nothing. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 12 +++ tools/perf/builtin-

[PATCH 18/25] perf stat report: Allow to override aggr_mode

2015-11-05 Thread Jiri Olsa
Allowing to override record aggr_mode. It's possible to use perf stat like: $ perf stat report -A $ perf stat report --per-core $ perf stat report --per-socket To customize the recorded aggregate mode regardless what was used during the stat record command. Tested-by: Kan Liang Link: h

[PATCH 16/25] perf stat report: Process event update events

2015-11-05 Thread Jiri Olsa
Adding processing of event update events, so perf stat report can store additional info for events - unit,scale,name. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-3afz05w7naoeu8slxi9hc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 1 + 1 file changed, 1 i

[PATCH 14/25] perf stat report: Add support to initialize aggr_map from file

2015-11-05 Thread Jiri Olsa
Using perf.data's perf_env data to initialize aggregate config. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-p15mtcu2jon85trs37bwo...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 103 ++ 1 file changed, 103 insert

[PATCH 13/25] perf stat report: Process stat config event

2015-11-05 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/

[PATCH 12/25] perf stat report: Process cpu/threads maps

2015-11-05 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 62 +++ 1 fil

Re: [RFC PATCHv3 3/4] x86/pci: Initial commit for new VMD device driver

2015-11-05 Thread Keith Busch
On Thu, Nov 05, 2015 at 02:35:31PM +0800, Jiang Liu wrote: > Hi Keith, > Could you please try the attached patch? > Thanks! > Gerry Thanks! I anticipated this and tested the same thing yesterday, and it is successful. I'll apply to the series and send a new revision hopefully today. Not req

[PATCH 15/25] perf stat report: Process stat and stat round events

2015-11-05 Thread Jiri Olsa
Adding processing of stat and stat round events. The stat data com in stat events, using generic function process_stat_round_event to store data under perf_evsel object. The stat-round events comes each interval or as last event in non interval mode. The function process_stat_round_event process

[PATCH 20/25] perf script: Process stat config event

2015-11-05 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-1m1s8mahzq38foo32qb7p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tool

Re: [RFC PATCH 0/7] reset: make RESET_CONTROLLER a select'ed option

2015-11-05 Thread Arnd Bergmann
On Thursday 05 November 2015 20:15:21 Masahiro Yamada wrote: > When I was implementing a new reset controller for my SoCs, > I struggled to make my sub-menu shown under the reset > controller menu. > I noticed the Kconfig in reset sub-system are screwed up due to two > config options (ARCH_HAS_RESE

[PATCH] Ext4: Fix extended timestamp encoding and decoding

2015-11-05 Thread David Howells
The handling of extended timestamps in Ext4 is broken as can be seen in the output of the test program attached below: time extra bad decodegood decode bad encode good encode = = = === === 0 > fff

[tip:x86/apic] x86/smp: Remove single IPI wrapper

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 72613184a1f076659e8a902d64351f50d3f9c990 Gitweb: http://git.kernel.org/tip/72613184a1f076659e8a902d64351f50d3f9c990 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:09 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:54 +0100 x86/smp: Remove single

Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection

2015-11-05 Thread Peter Zijlstra
On Thu, Nov 05, 2015 at 03:33:32PM +0100, Peter Zijlstra wrote: > > idle injection is a last ditch effort in thermal management It just grates at me a bit that we have to touch hot paths for such scenarios :/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

[tip:x86/apic] x86/apic: Wire up single IPI for apic_numachip

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: c61a0d31ba0ce75cb1b88bb4eb2f41a1b80bc90f Gitweb: http://git.kernel.org/tip/c61a0d31ba0ce75cb1b88bb4eb2f41a1b80bc90f Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:06 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Wire up sing

[tip:x86/apic] x86/apic: Use default send single IPI wrapper

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 6153058a03f4cc5200b0b29e201caa11779ebca0 Gitweb: http://git.kernel.org/tip/6153058a03f4cc5200b0b29e201caa11779ebca0 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:08 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Use default

[tip:x86/apic] x86/apic: Provide default send single IPI wrapper

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 7e29393b20a1a863a5f9bf48dc71e5cff4035ff5 Gitweb: http://git.kernel.org/tip/7e29393b20a1a863a5f9bf48dc71e5cff4035ff5 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:07 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Provide defa

[tip:x86/apic] x86/apic: Wire up single IPI for x2apic_uv

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 8642ea953d99fc037c1076e9a8b3a822025fb251 Gitweb: http://git.kernel.org/tip/8642ea953d99fc037c1076e9a8b3a822025fb251 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:05 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Wire up sing

[tip:x86/apic] x86/apic: Implement single IPI for apic_noop

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 4727da2eb1ec79fdc2acdd2f764b5b2aacab998c Gitweb: http://git.kernel.org/tip/4727da2eb1ec79fdc2acdd2f764b5b2aacab998c Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:06 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Implement si

Re: [PATCH 0/4] watchdog: address various races (CPU hotplug, timer expiry)

2015-11-05 Thread Don Zickus
On Tue, Nov 03, 2015 at 04:20:57PM +0100, Ulrich Obergfell wrote: > This patch set addresses various races in relation to CPU hotplug > and a race in relation to watchdog timer expiry. I discovered the > corner cases during code inspection. I haven't seen any of these > issues occur in practice. S

[PATCH 09/25] perf stat record: Do not allow record with multiple runs mode

2015-11-05 Thread Jiri Olsa
We currently don't support storing multiple session in perf.data, so we can't allow -r option in stat record. $ perf stat -e cycles -r 2 record ls Cannot use -r option with perf stat record. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-wulio303py16c5hbbo8zr...@git.kernel.org Sig

[PATCHv6 00/25] perf stat: Add scripting support

2015-11-05 Thread Jiri Olsa
hi, sending another version of stat scripting. v6 changes: - several patches from v4 already taken - perf stat record can now place 'record' keyword anywhere within stat options - placed STAT feature checking earlier into record patches so commands processing perf.data recognize

[PATCH 23/25] perf script: Display stat events by default

2015-11-05 Thread Jiri Olsa
If no script is specified for stat data, display stat events in raw form. $ perf stat record ls SNIP Performance counter stats for 'ls': 0.851585 task-clock (msec) #0.717 CPUs utilized 0 context-switches #0.000 K/sec

[PATCH 19/25] perf script: Process cpu/threads maps

2015-11-05 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-s3txa1u2qv3bi8uspp4hi...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 67 + 1 fil

[PATCH 05/25] perf stat record: Store events IDs in perf data file

2015-11-05 Thread Jiri Olsa
Store event IDs in evlist object so it get stored into perf.data file. Also making perf_evlist__id_add_fd global. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-v2xwpeots3tz08e44lej5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 35

[PATCH 06/25] perf stat record: Add pipe support for record command

2015-11-05 Thread Jiri Olsa
Allowing storing stat record data into pipe, so report tools (report/script) could read data directly from record. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-m8fj758gty57hgvss5efy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 39

[PATCH 21/25] perf script: Add process_stat/process_stat_interval scripting interface

2015-11-05 Thread Jiri Olsa
Python and perl scripting code will define those callbacks and get stat data. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/trace-event.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/

[PATCH 07/25] perf stat record: Write stat events on record

2015-11-05 Thread Jiri Olsa
Writing stat events on 'perf stat record' at the time we read counter values from kernel. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-ojc826gy0x9jj74elbjfc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 19 +++ 1 file changed, 19 insertion

[PATCH 17/25] perf stat report: Move csv_sep initialization before report command

2015-11-05 Thread Jiri Olsa
So we have csv_sep properly initialized before report command leg. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-i5mmbomj7lt4eg04awzoc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --

[PATCH 25/25] perf script: Add stat-cpi.py script

2015-11-05 Thread Jiri Olsa
Adding stat-cpi.py as an example of how to do stat scripting. It computes the CPI metrics from cycles and instructions events. Following stat record/report/script combinations could be used: - get CPI for given workload $ perf stat -e cycles,instructions record ls SNIP Performance

Re: [Outreachy kernel] [PATCH v2] firewire: Replace timeval with timespec64

2015-11-05 Thread Arnd Bergmann
On Thursday 05 November 2015 14:34:48 Stefan Richter wrote: > On Oct 22 Arnd Bergmann wrote: > > On Thursday 22 October 2015 04:05:00 Amitoj Kaur Chawla wrote: > > > 32 bit systems using 'struct timeval' will break in the year 2038, so > > > we replace the code appropriately. However, this driver i

[PATCH 22/25] perf script: Add stat default handlers

2015-11-05 Thread Jiri Olsa
Implement struct scripting_ops::(process_stat|process_stat_interval) handlers - calling scripting handlers from stat events handlers. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-3iu6vmvuur1bntbnh43v3...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 31 +++

[tip:x86/apic] x86/apic: Wire up single IPI for bigsmp_apic

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 5789a12e28f7bf6a37564a5fc9ebc60dc86659b5 Gitweb: http://git.kernel.org/tip/5789a12e28f7bf6a37564a5fc9ebc60dc86659b5 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:04 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Wire up sing

[PATCH 24/25] perf script: Add python support for stat events

2015-11-05 Thread Jiri Olsa
Add support to get stat events data in perf python scripts. The python script shall implement following new interface to process stat data: def stat___[](cpu, thread, time, val, ena, run): - is called for every stat event for given counter, if user monitors 'cycles,instructions:u" fo

[tip:x86/apic] x86/apic: Wire up single IPI for apic_physflat

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 68cd88ff8df97846eb07080f17264a4de50cb012 Gitweb: http://git.kernel.org/tip/68cd88ff8df97846eb07080f17264a4de50cb012 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:02 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Wire up sing

[tip:x86/apic] x86/apic: Remove pointless indirections from bigsmp_apic

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 500bd02fb17e5d9296c77ccc07db61fd5d4922a4 Gitweb: http://git.kernel.org/tip/500bd02fb17e5d9296c77ccc07db61fd5d4922a4 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:03 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Remove point

[tip:x86/apic] x86/apic: Add a single-target IPI function to the apic

2015-11-05 Thread tip-bot for Linus Torvalds
Commit-ID: 539da7877275edb21a76aa02fb2c147eff02c559 Gitweb: http://git.kernel.org/tip/539da7877275edb21a76aa02fb2c147eff02c559 Author: Linus Torvalds AuthorDate: Wed, 4 Nov 2015 22:57:00 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:51 +0100 x86/apic: Add a single-

Re: [PATCH 00/28] tracing: 'hist' triggers

2015-11-05 Thread Namhyung Kim
Hi Tom, I implemented 'log2' modifier on top of your v11 patchset. Could you please take a look at this? >From 5fc74778b9af5e4e121a0563fb8e54e8f495ca29 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Thu, 5 Nov 2015 23:34:05 +0900 Subject: [PATCH] tracing: Add hist trigger 'log2' modifier

Re: [RFC PATCH 0/3]perf/core: extend perf_reg and perf_sample_regs_intr

2015-11-05 Thread Stephane Eranian
Hi, On Wed, Nov 4, 2015 at 9:46 PM, Madhavan Srinivasan wrote: > > This patchset extend the perf sample regs infrastructure > to include architecture specific regs. Current perf_sample_regs_intr > exports only registers in the pt_regs to perf.data using > PERF_SAMPLE_REGS_INTR sample type. But so

[tip:x86/apic] x86/apic: Implement single IPI for x2apic_phys

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: f2bffe8a3eef42a1cd3393d56acd9fe598d2119c Gitweb: http://git.kernel.org/tip/f2bffe8a3eef42a1cd3393d56acd9fe598d2119c Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:04 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Implement si

[tip:x86/apic] x86/apic: Implement default single target IPI function

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 53be0fac8bdaeec87e0df7d0334345421d2be187 Gitweb: http://git.kernel.org/tip/53be0fac8bdaeec87e0df7d0334345421d2be187 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:01 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Implement de

Re: [PATCH 5/7] regulator: add driver for mtcmos voltage regulator on hi6220 SoC

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:34:46PM +0800, Chen Feng wrote: > Add driver to support mtcmos on hi6220 I just noticed that these patches are all being posted to the IOMMU list - that seems a bit odd? > +static int hi6220_mtcmos_is_on(struct hi6220_mtcmos *mtcmos, > +unsig

[tip:x86/apic] x86/apic: Implement single target IPI function for x2apic_cluster

2015-11-05 Thread tip-bot for Linus Torvalds
Commit-ID: 7b6ce46cb3d096831dea3accacee4717c66abac8 Gitweb: http://git.kernel.org/tip/7b6ce46cb3d096831dea3accacee4717c66abac8 Author: Linus Torvalds AuthorDate: Wed, 4 Nov 2015 22:57:00 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Implement sin

[tip:x86/apic] x86/apic: Remove pointless indirections from apic_physflat

2015-11-05 Thread tip-bot for Thomas Gleixner
Commit-ID: 449112f4f35074f1dc70d4f0e769cb14150c159c Gitweb: http://git.kernel.org/tip/449112f4f35074f1dc70d4f0e769cb14150c159c Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:02 + Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:52 +0100 x86/apic: Remove point

Re: [PATCH V2 1/3] dma: add Qualcomm Technologies HIDMA management driver

2015-11-05 Thread Timur Tabi
Rob Herring wrote: I'm saying document it as "qcom,-hidma-mgmt" and when you have the part number update the binding. Meanwhile push on the powers that be to decide on a part number. Got it. But we should we do about this: static const struct of_device_id qcom_hidma_mgmt_match[] = { {

[PATCH 02/25] perf stat record: Add record command

2015-11-05 Thread Jiri Olsa
Add 'perf stat record' command support. It creates simple (header only) perf.data file ATM. The record command could be specified anywhere among stat options. All stat command options are valid for stat record command with '-o' option exception. If specified for record command it denotes the perf

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Timur Tabi
Fu Wei wrote: Did you really read the "Note" above OK, let me paste it again and again: SBSA 2.3 Page 23 : If a larger watch period is required then the compare value can be programmed directly into the compare value register. Well, okay. Sorry, I should have read what you pasted more

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-05 Thread Michal Hocko
On Wed 04-11-15 14:50:37, Johannes Weiner wrote: [...] > Because it goes without saying that once the cgroupv2 interface is > released, and people use it in production, there is no way we can then > *add* dentry cache, inode cache, and others to memory.current. That > would be an unacceptable chang

Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG

2015-11-05 Thread Felipe Balbi
Hi, Peter Chen writes: > On Tue, Nov 03, 2015 at 09:51:11PM -0600, Felipe Balbi wrote: >> >> Hi, >> >> Peter Chen writes: >> > On Tue, Nov 03, 2015 at 07:56:55AM -0600, Felipe Balbi wrote: >> >> >> >> Hi, >> >> >> >> Nathan Sullivan writes: >> >> > The USB OTG support currently depends on

Re: [PATCH v3 2/5] mfd: arizona: Update DT bindings to add CS47L24 and WM1831

2015-11-05 Thread Rob Herring
On Tue, Nov 03, 2015 at 03:08:33PM +, Richard Fitzgerald wrote: > This updates the Arizona MFD device tree bindings to add the > Cirrus Logic CS47L24 and WM1831 codecs. Note that unlike all the > other codecs the DCVDD-supply and MICVDD-supply are mandatory. > > Signed-off-by: Richard Fitzgera

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:08, Timur Tabi wrote: > Fu Wei wrote: >> >> SBSA 2.3 Page 23 : >> Note: the watchdog offset register is 32 bits wide. This gives a >> maximum watch period of around 10s at a system >> counter frequency of 400MHz. If a larger watch period is required then >> the

Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection

2015-11-05 Thread Peter Zijlstra
On Thu, Nov 05, 2015 at 06:22:58AM -0800, Arjan van de Ven wrote: > On 11/5/2015 2:09 AM, Peter Zijlstra wrote: > > >I can see such a scheme having a fairly big impact on latency, esp. with > >forced idleness such as this. That's not going to be popular for many > >workloads. > > idle injection i

Re: [PATCH v6 01/17] arm64:ilp32: add documentation on the ILP32 ABI for ARM64

2015-11-05 Thread Arnd Bergmann
On Tuesday 03 November 2015 02:30:30 Yury Norov wrote: > From: Philipp Tomsich > > Based on Andrew Pinski's original patch-series and adapted with changes > to reduce the duplication of code-paths and resolve issue found during > LTP testing. > > Signed-off-by: Philipp Tomsich > Signed-off-by:

Re: [PATCH V2 1/3] dma: add Qualcomm Technologies HIDMA management driver

2015-11-05 Thread Rob Herring
On Mon, Nov 2, 2015 at 12:30 PM, Timur Tabi wrote: > On 11/02/2015 12:25 PM, Rob Herring wrote: >> >> Then document it with "" and fill that in later. Just don't make >> up version numbers. > > > I don't think you understand. We literally have no name for our chip. The > closest is what I used on

Re: [PATCH 4/7] mfd: hi655x: Add hi665x pmic driver

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:34:45PM +0800, Chen Feng wrote: > +config MFD_HI655X_PMIC > +bool "HiSilicon Hi655X series PMU/Codec IC" Why is this bool and not tristate? > +depends on ARCH_HISI Can we have an || COMPILE_TEST here? > +static irqreturn_t hi655x_pmic_irq_handler(int

Re: [PATCH v7] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-05 Thread Rob Herring
On Tue, Nov 03, 2015 at 08:53:47PM +0530, Bharat Kumar Gogada wrote: > Adding PCIe Root Port driver for Xilinx PCIe NWL bridge IP. > > Signed-off-by: Bharat Kumar Gogada > Signed-off-by: Ravi Kiran Gummaluri > --- > Removed msi_controller and added irq_domian for MSI domain hierarchy. > Modified

Re: GPF in shm_lock ipc

2015-11-05 Thread Kirill A. Shutemov
Dmitry Vyukov wrote: > On Tue, Oct 13, 2015 at 8:30 PM, Kirill A. Shutemov > wrote: > > On Mon, Oct 12, 2015 at 08:18:21PM -0700, Davidlohr Bueso wrote: > >> On Mon, 12 Oct 2015, Bueso wrote: > >> > >> >On Mon, 12 Oct 2015, Kirill A. Shutemov wrote: > >> > > >> >>On Mon, Oct 12, 2015 at 10:49:45AM

Re: [PATCH 3/7] doc:bindings:Document for hi655x pmic driver

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:34:44PM +0800, Chen Feng wrote: > +Required properties: > +- compatible: Must be "hisilicon,hi655x-regulator-pmic"; If this is a subfunction of a MFD it shouldn't have a compatible string. If it is instead a standalone device it should just have a name in the form "vend

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-05 Thread Tomasz Nowicki
On 14.10.2015 08:29, Jiang Liu wrote: Introduce common interface acpi_pci_root_create() and related data structures to create PCI root bus for ACPI PCI host bridges. It will be used to kill duplicated arch specific code for IA64 and x86. It may also help ARM64 in future. Reviewed-by: Lorenzo Pie

RE: [PATCH 1/1] staging: rdma: hfi1 : Prefer using the BIT macro

2015-11-05 Thread Marciniszyn, Mike
> Subject: [PATCH 1/1] staging: rdma: hfi1 : Prefer using the BIT macro > > This patch replaces bit shifting on 1 with the BIT(x) macro > > Signed-off-by: Sunny Kumar > --- Nak. The patch leaves the shift in. Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

RE: [PATCH 1/2] perf probe: Only call probe_file__get_events() when fd is valid

2015-11-05 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Wang Nan [mailto:wangn...@huawei.com] > >In system with kprobe enabled but uprobe turned off, 'perf probe -d' >causes segfault because it calls probe_file__get_events() with a >negative fd (when deleting uprobe events). Hmm, OK. This may happen if user runs perf probe on the kernel which onl

Re: [RFC PATCH 3/3] sched: introduce synchronized idle injection

2015-11-05 Thread Arjan van de Ven
On 11/5/2015 2:09 AM, Peter Zijlstra wrote: I can see such a scheme having a fairly big impact on latency, esp. with forced idleness such as this. That's not going to be popular for many workloads. idle injection is a last ditch effort in thermal management, before this gets used the hardware

Re: [PATCH] kconfig: fix missing symbol error

2015-11-05 Thread kbuild test robot
Hi yalin, [auto build test WARNING on: v4.3-rc7] [also build test WARNING on: next-20151105] url: https://github.com/0day-ci/linux/commits/yalin-wang/kconfig-fix-missing-symbol-error/20151105-204811 config: x86_64-allmodconfig (attached as .config) reproduce: # save the attached

Re: [PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220 SoC

2015-11-05 Thread Mark Brown
On Thu, Nov 05, 2015 at 09:34:43PM +0800, Chen Feng wrote: > +- hisilicon,mtcmos-steady-us: The time to wait for power steady > +- hisilicon,mtcmos-sc-on-base: address of mtcmos on hi6220 SoC > + > +Required child device properties: > +- regulator-name: The name of mtcmos > +- hisilicon,ctrl-regs:

<    1   2   3   4   5   6   7   8   9   >