Re: [PATCH v2 2/3] perf tools: Record sampling time for each entry

2013-12-08 Thread Namhyung Kim
Hi David, On Tue, 03 Dec 2013 09:20:23 -0700, David Ahern wrote: > On 12/3/13, 2:00 AM, Namhyung Kim wrote: >> diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h >> index 20a7c653b74b..ac65fc67972c 100644 >> --- a/tools/perf/util/evsel.h >> +++ b/tools/perf/util/evsel.h >> @@ -69,6

Re: [PATCH v4 3/9] phy: Add new Exynos USB PHY driver

2013-12-08 Thread Kishon Vijay Abraham I
Hi, On Friday 06 December 2013 09:58 PM, Kamil Debski wrote: Hi Kishon, Thank you for the review. From: Kishon Vijay Abraham I [mailto:kis...@ti.com] Sent: Friday, December 06, 2013 11:59 AM Hi, On Thursday 05 December 2013 05:59 PM, Kamil Debski wrote: Add a new driver for the Exynos USB

Re: xhci_hcd debugging status, please?

2013-12-08 Thread Oliver Neukum
On Sun, 2013-12-08 at 12:52 +0100, Udo van den Heuvel wrote: > Hello, > > Can someone please summarise the status of the xhci_hcd debugging I > found after booting into 3.12.2? > I did not see these messages before and I do not yet understand the > added value for a mere user of this exciting

Re: [RFC PATCH] drivers: char: Add a dynamic clock for the trace clock

2013-12-08 Thread Josh Triplett
On Fri, Dec 06, 2013 at 04:34:11PM -0800, Sonny Rao wrote: > Based on a suggestion from John Stultz. > > This adds a dynamic clock device which can be used with clock_gettime > to sample the clock source used for time stamping trace events in the > kernel. The only use for this clock source is

Re: [PATCH] omap: twl-common: Fix musb-hdrc device name.

2013-12-08 Thread Belisko Marek
Hi Tony, On Thu, Dec 5, 2013 at 7:43 PM, Tony Lindgren wrote: > * Belisko Marek [131203 01:21]: >> On Tue, Dec 3, 2013 at 10:08 AM, Belisko Marek >> wrote: >> > Hi, >> > >> > On Tue, Dec 3, 2013 at 9:58 AM, Kishon Vijay Abraham I >> > wrote: >> >> Hi, >> >> >> >> On Tuesday 03 December 2013

Re: [PATCH] net: unix: allow set_peek_off to fail

2013-12-08 Thread Pavel Emelyanov
On 12/08/2013 02:26 AM, Sasha Levin wrote: > unix_dgram_recvmsg() will hold the readlock of the socket until recv > is complete. > > In the same time, we may try to setsockopt(SO_PEEK_OFF) which will hang until > unix_dgram_recvmsg() will complete (which can take a while) without allowing > us to

Re: [RFC PATCH tip 0/5] tracing filters with BPF

2013-12-08 Thread Namhyung Kim
Hi Masami, On Wed, 04 Dec 2013 10:13:37 +0900, Masami Hiramatsu wrote: > (2013/12/04 3:26), Alexei Starovoitov wrote: >> the only inconvenience so far is to know how parameters are getting >> into registers. >> on x86-64, arg1 is in rdi, arg2 is in rsi,... I want to improve that >> after first

Re: [PATCH] net: wirelesse: wcn36xx: pull allocation outside of critical section

2013-12-08 Thread Eugene Krasnikov
hal_ind_mutex suppose to protect msg_ind but with this patch allocation will be done outside the critical section. On Sat, Dec 7, 2013 at 5:13 PM, Michal Nazarewicz wrote: > > This also simplifies flow-controll as there is now only one if > condition with a single branch. > --- >

Re: [PATCH 01/10] net: stmmac: Enable stmmac main clock when probing hardware

2013-12-08 Thread Chen-Yu Tsai
Hi Peppe, On Mon, Dec 9, 2013 at 3:14 PM, Giuseppe CAVALLARO wrote: > Hello Chen-Yu > > > On 12/6/2013 6:29 PM, Chen-Yu Tsai wrote: >> >> Signed-off-by: Chen-Yu Tsai >> --- >> >> Guiseppe previously stated that the "stmmaceth" clock is the >> main clock that drives the IP. The stmmac driver

[PATCH] regulator: pfuze100: Fix address of FABID

2013-12-08 Thread Axel Lin
According to the datasheet, the address of FABID is 0x4. Fix it. Signed-off-by: Axel Lin --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index

Re: [PATCH 1/9] phy: core: Change the way of_phy_get is called

2013-12-08 Thread Kishon Vijay Abraham I
On Friday 06 December 2013 04:22 PM, Kamil Debski wrote: Hi, From: Kishon Vijay Abraham I [mailto:kis...@ti.com] Sent: Friday, December 06, 2013 6:31 AM Hi, On Thursday 05 December 2013 05:59 PM, Kamil Debski wrote: Previously the of_phy_get function took a struct device * and was declared

Re: [PATCH 01/10] net: stmmac: Enable stmmac main clock when probing hardware

2013-12-08 Thread Giuseppe CAVALLARO
Hello Chen-Yu On 12/6/2013 6:29 PM, Chen-Yu Tsai wrote: Signed-off-by: Chen-Yu Tsai --- Guiseppe previously stated that the "stmmaceth" clock is the main clock that drives the IP. The stmmac driver does not enable this clock during the probe phase. When the driver is built in to the kernel,

[PATCH 03/18] mm: Clear pmd_numa before invalidating

2013-12-08 Thread Mel Gorman
pmdp_invalidate clears the present bit without taking into account that it might be in the _PAGE_NUMA bit leaving the PMD in an unexpected state. Clear pmd_numa before invalidating. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- mm/pgtable-generic.c | 3 +++ 1 file changed, 3

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-08 Thread Kishon Vijay Abraham I
Hi, On Thursday 05 December 2013 01:28 PM, Heikki Krogerus wrote: Hi, On Thu, Dec 05, 2013 at 12:04:46PM +0530, Kishon Vijay Abraham I wrote: On Wednesday 04 December 2013 08:10 PM, Heikki Krogerus wrote: On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: There can be

[PATCH 05/18] mm: numa: Do not clear PTE for pte_numa update

2013-12-08 Thread Mel Gorman
The TLB must be flushed if the PTE is updated but change_pte_range is clearing the PTE while marking PTEs pte_numa without necessarily flushing the TLB if it reinserts the same entry. Without the flush, it's conceivable that two processors have different TLBs for the same virtual address and at

[PATCH 07/18] mm: numa: Avoid unnecessary work on the failure path

2013-12-08 Thread Mel Gorman
If a PMD changes during a THP migration then migration aborts but the failure path is doing more work than is necessary. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- mm/migrate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/migrate.c b/mm/migrate.c index

[PATCH 04/18] mm: numa: Do not clear PMD during PTE update scan

2013-12-08 Thread Mel Gorman
If the PMD is flushed then a parallel fault in handle_mm_fault() will enter the pmd_none and do_huge_pmd_anonymous_page() path where it'll attempt to insert a huge zero page. This is wasteful so the patch avoids clearing the PMD when setting pmd_numa. Cc: sta...@vger.kernel.org Signed-off-by: Mel

[PATCH 09/18] mm: numa: Clear numa hinting information on mprotect

2013-12-08 Thread Mel Gorman
On a protection change it is no longer clear if the page should be still accessible. This patch clears the NUMA hinting fault bits on a protection change. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- mm/huge_memory.c | 2 ++ mm/mprotect.c| 2 ++ 2 files changed, 4 insertions(+)

[PATCH 08/18] sched: numa: Skip inaccessible VMAs

2013-12-08 Thread Mel Gorman
Inaccessible VMA should not be trapping NUMA hint faults. Skip them. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e8b652e..1ce1615 100644 ---

[PATCH 10/18] mm: numa: Avoid unnecessary disruption of NUMA hinting during migration

2013-12-08 Thread Mel Gorman
do_huge_pmd_numa_page() handles the case where there is parallel THP migration. However, by the time it is checked the NUMA hinting information has already been disrupted. This patch adds an earlier check with some helpers. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman ---

[PATCH 11/18] mm: fix TLB flush race between migration, and change_protection_range

2013-12-08 Thread Mel Gorman
From: Rik van Riel There are a few subtle races, between change_protection_range (used by mprotect and change_prot_numa) on one side, and NUMA page migration and compaction on the other side. The basic race is that there is a time window between when the PTE gets made non-present (PROT_NONE or

[PATCH 13/18] mm: numa: Make NUMA-migrate related functions static

2013-12-08 Thread Mel Gorman
numamigrate_update_ratelimit and numamigrate_isolate_page only have callers in mm/migrate.c. This patch makes them static. Signed-off-by: Mel Gorman --- mm/migrate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 5372521..77147bd

[PATCH 01/18] mm: numa: Serialise parallel get_user_page against THP migration

2013-12-08 Thread Mel Gorman
Base pages are unmapped and flushed from cache and TLB during normal page migration and replaced with a migration entry that causes any parallel or gup to block until migration completes. THP does not unmap pages due to a lack of support for migration entries at a PMD level. This allows races with

[PATCH 14/18] mm: numa: Limit scope of lock for NUMA migrate rate limiting

2013-12-08 Thread Mel Gorman
NUMA migrate rate limiting protects a migration counter and window using a lock but in some cases this can be a contended lock. It is not critical that the number of pages be perfect, lost updates are acceptable. Reduce the importance of this lock. Signed-off-by: Mel Gorman ---

[PATCH 12/18] mm: numa: Defer TLB flush for THP migration as long as possible

2013-12-08 Thread Mel Gorman
THP migration can fail for a variety of reasons. Avoid flushing the TLB to deal with THP migration races until the copy is ready to start. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- mm/huge_memory.c | 7 --- mm/migrate.c | 6 ++ 2 files changed, 6 insertions(+), 7

[PATCH 18/18] sched: Add tracepoints related to NUMA task migration

2013-12-08 Thread Mel Gorman
This patch adds three tracepoints o trace_sched_move_numawhen a task is moved to a node o trace_sched_swap_numawhen a task is swapped with another task o trace_sched_stick_numa when a numa-related migration fails The tracepoints allow the NUMA scheduler activity to be

[PATCH 16/18] mm: numa: Do not automatically migrate KSM pages

2013-12-08 Thread Mel Gorman
KSM pages can be shared between tasks that are not necessarily related to each other from a NUMA perspective. This patch causes those pages to be ignored by automatic NUMA balancing so they do not migrate and do not cause unrelated tasks to be grouped together. Signed-off-by: Mel Gorman ---

[PATCH 15/18] mm: numa: Trace tasks that fail migration due to rate limiting

2013-12-08 Thread Mel Gorman
A low local/remote numa hinting fault ratio is potentially explained by failed migrations. This patch adds a tracepoint that fires when migration fails due to migration rate limitation. Signed-off-by: Mel Gorman --- include/trace/events/migrate.h | 26 ++ mm/migrate.c

[PATCH 17/18] sched: Tracepoint task movement

2013-12-08 Thread Mel Gorman
move_task() is called from move_one_task and move_tasks and is an approximation of load balancer activity. We should be able to track tasks that move between CPUs frequently. If the tracepoint included node information then we could distinguish between in-node and between-node traffic for load

[PATCH 00/18] NUMA balancing segmentation fault fixes and misc followups v3

2013-12-08 Thread Mel Gorman
Alex Thorlton reported segementation faults when NUMA balancing is enabled on large machines. There is no obvious explanation from the console what the problem but similar problems have been observed by Rik van Riel and myself if migration was aggressive enough. Alex, this series is against

[PATCH 02/18] mm: numa: Call MMU notifiers on THP migration

2013-12-08 Thread Mel Gorman
MMU notifiers must be called on THP page migration or secondary MMUs will get very confused. Cc: sta...@vger.kernel.org Signed-off-by: Mel Gorman --- mm/migrate.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index

[PATCH 06/18] mm: numa: Ensure anon_vma is locked to prevent parallel THP splits

2013-12-08 Thread Mel Gorman
The anon_vma lock prevents parallel THP splits and any associated complexity that arises when handling splits during THP migration. This patch checks if the lock was successfully acquired and bails from THP migration if it failed for any reason. Cc: sta...@vger.kernel.org Signed-off-by: Mel

Re: [PATCH 09/14] tools lib traceevent: Get rid of die() in add_right()

2013-12-08 Thread Namhyung Kim
Hi Ilia, On Mon, 9 Dec 2013 01:28:26 -0500, Ilia Mirkin wrote: > On Mon, Dec 9, 2013 at 12:34 AM, Namhyung Kim wrote: >> Signed-off-by: Namhyung Kim >> --- >> tools/lib/traceevent/parse-filter.c | 12 +--- >> 1 file changed, 9 insertions(+), 3 deletions(-) >> >> diff --git

Re: [PATCH] sched: Revert need_resched() to look at TIF_NEED_RESCHED

2013-12-08 Thread Aneesh Kumar K.V
Peter Zijlstra writes: > Subject: sched: Revert need_resched() to look at TIF_NEED_RESCHED > From: Peter Zijlstra > Date: Fri Sep 27 17:20:30 CEST 2013 > > Yuanhan reported a serious throughput regression in his pigz > benchmark. Using the ftrace patch I found that several idle paths > need

Re: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out

2013-12-08 Thread Ethan Zhao
Nick, You could try 7.3.21-k8-NAPI in tree or the out-of-tree version as Bjorn mentioned. To read and debug an old version driver is not a interesting thing for somebody to do. Thanks, Ethan On Tue, Dec 3, 2013 at 9:33 PM, Nick Pegg wrote: > On Mon, Dec 2, 2013 at 10:51 PM, Ethan Zhao

linux-next: Tree for Dec 9

2013-12-08 Thread Stephen Rothwell
Hi all, Changes since 20131206: The powerpc tree gained a build failure for which I reverted some commits. The crypto tree still had its build failure so I used the version from next-20131205. The driver-core tree gained a conflict against the driver-core.current tree. The usb-gadget tree

linux-next: build failure after merge of the final tree (powerpc tree related)

2013-12-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:958: Error: attempt to move .org backwards arch/powerpc/kernel/exceptions-64s.S:959: Error:

[PATCH 13/17] tracing/uprobes: Pass 'is_return' to traceprobe_parse_probe_arg()

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Currently uprobes don't pass is_return to the argument parser so that it cannot make use of "$retval" fetch method since it only works for return probes. Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo

Re: [PATCH] sched: Remove PREEMPT_NEED_RESCHED from generic code

2013-12-08 Thread Benjamin Herrenschmidt
On Thu, 2013-11-28 at 14:26 +0100, Peter Zijlstra wrote: > Subject: sched: Remove PREEMPT_NEED_RESCHED from generic code > > While hunting a preemption issue with Alexander, Ben noticed that the > currently generic PREEMPT_NEED_RESCHED stuff is horribly broken for > load-store architectures. Hi

Re: [PATCH] Add: (1) Detection for newer Elantech touchpads, so that kernel doesn't fall-back to default PS/2 driver. (2) Enable hardware version 4 touchpad right click function.

2013-12-08 Thread Dmitry Torokhov
Hi Duson. On Mon, Dec 09, 2013 at 10:59:50AM +0800, Duson Lin wrote: > Modify: > (1) crc_enabled only support for v3 and v4 touchpad, so initialize > crc_enabled as false first and > check this hardware flag when hw_version as 3 or 4. It looks to me there are several fixes rolled up together

Re: [PATCH 09/14] tools lib traceevent: Get rid of die() in add_right()

2013-12-08 Thread Ilia Mirkin
On Mon, Dec 9, 2013 at 12:34 AM, Namhyung Kim wrote: > Signed-off-by: Namhyung Kim > --- > tools/lib/traceevent/parse-filter.c | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/tools/lib/traceevent/parse-filter.c > b/tools/lib/traceevent/parse-filter.c >

[PATCH 02/17] tracing/probes: Fix basic print type functions

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim The print format of s32 type was "ld" and it's casted to "long". So it turned out to print 4294967295 for "-1" on 64-bit systems. Not sure whether it worked well on 32-bit systems. Anyway, it doesn't need to have cast argument at all since it already casted using type

[PATCHSET 00/17] tracing/uprobes: Add support for more fetch methods (v8)

2013-12-08 Thread Namhyung Kim
Hello, This patchset implements memory (address), stack[N], deference, bitfield, retval (it needs uretprobe tho) and file_offset fetch methods for uprobes. It's based on the previous work [1] done by Hyeoncheol Lee. Now kprobes and uprobes have their own fetch_type_tables and, in turn, memory

[PATCH 04/17] tracing/uprobes: Convert to struct trace_probe

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Convert struct trace_uprobe to make use of the common trace_probe structure. Reviewed-by: Masami Hiramatsu Acked-by: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim --- kernel/trace/trace_uprobe.c | 159

[PATCH 03/17] tracing/kprobes: Factor out struct trace_probe

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim There are functions that can be shared to both of kprobes and uprobes. Separate common data structure to struct trace_probe and use it from the shared functions. Acked-by: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de

[PATCH 07/17] tracing/probes: Move fetch function helpers to trace_probe.h

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Move fetch function helper macros/functions to the header file and make them external. This is preparation of supporting uprobe fetch table in next patch. Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo

[PATCH 10/17] tracing/probes: Move 'symbol' fetch method to kprobes

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Move existing functions to trace_kprobe.c and add NULL entries to the uprobes fetch type table. I don't make them static since some generic routines like update/free_XXX_fetch_param() require pointers to the functions. Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg

[PATCH 08/17] tracing/probes: Split [ku]probes_fetch_type_table

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Use separate fetch_type_table for kprobes and uprobes. It currently shares all fetch methods but some of them will be implemented differently later. This is not to break build if [ku]probes is configured alone (like !CONFIG_KPROBE_EVENT and CONFIG_UPROBE_EVENT). So I added

[PATCH 09/17] tracing/probes: Implement 'stack' fetch method for uprobes

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Use separate method to fetch from stack. Move existing functions to trace_kprobe.c and make them static. Also add new stack fetch implementation for uprobes. Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo

[PATCH 06/17] tracing/probes: Integrate duplicate set_print_fmt()

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim The set_print_fmt() functions are implemented almost same for [ku]probes. Move it to a common place and get rid of the duplication. Acked-by: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung

[PATCH 11/17] tracing/probes: Add fetch{,_size} member into deref fetch method

2013-12-08 Thread Namhyung Kim
From: Hyeoncheol Lee The deref fetch methods access a memory region but it assumes that it's a kernel memory since uprobes does not support them. Add ->fetch and ->fetch_size member in order to provide a proper access methods for supporting uprobes. Acked-by: Masami Hiramatsu Cc: Srikar

Re: [PATCH V4 09/10] power8, perf: Change BHRB branch filter configuration

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:41 UTC, Anshuman Khandual wrote: > Powerpc kernel now supports SW based branch filters for book3s systems with > some > specifc requirements while dealing with HW supported branch filters in order > to > achieve overall OR semantics prevailing in perf branch stack

[PATCH 05/17] tracing/kprobes: Move common functions to trace_probe.h

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim The __get_data_size() and store_trace_args() will be used by uprobes too. Move them to a common location. Acked-by: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim ---

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:40 UTC, Anshuman Khandual wrote: > This patch enables SW based post processing of BHRB captured branches > to be able to meet more user defined branch filtration criteria in perf > branch stack sampling framework. These changes increase the number of > branch filters

Re: [PATCH V4 10/10] powerpc, perf: Cleanup SW branch filter list look up

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:42 UTC, Anshuman Khandual wrote: > This patch adds enumeration for all available SW branch filters > in powerpc book3s code and also streamlines the look for the > SW branch filter entries while trying to figure out which all > branch filters can be supported in SW.

Re: [PATCH V4 07/10] powerpc, lib: Add new branch instruction analysis support functions

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:39 UTC, Anshuman Khandual wrote: > Generic powerpc branch instruction analysis support added in the code > patching library which will help the subsequent patch on SW based > filtering of branch records in perf. This patch also converts and > exports some of the

[PATCH 15/17] tracing/uprobes: Add support for full argument access methods

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Enable to fetch other types of argument for the uprobes. IOW, we can access stack, memory, deref, bitfield and retval from uprobes now. The format for the argument types are same as kprobes (but @SYMBOL type is not supported for uprobes), i.e: @ADDR : Fetch memory at

[PATCH 14/17] tracing/uprobes: Fetch args before reserving a ring buffer

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Fetching from user space should be done in a non-atomic context. So use a per-cpu buffer and copy its content to the ring buffer atomically. Note that we can migrate during accessing user memory thus use a per-cpu mutex to protect concurrent accesses. This is needed since

[PATCH 17/17] tracing/uprobes: Add @+file_offset fetch method

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Enable to fetch data from a file offset. Currently it only supports fetching from same binary uprobe set. It'll translate the file offset to a proper virtual address in the process. The syntax is "@+OFFSET" as it does similar to normal memory fetching (@ADDR) which does no

[PATCH 12/17] tracing/probes: Implement 'memory' fetch method for uprobes

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim Use separate method to fetch from memory. Move existing functions to trace_kprobe.c and make them static. Also add new memory fetch implementation for uprobes. Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo

[PATCH 16/17] uprobes: Allocate ->utask before handler_chain() for tracing handlers

2013-12-08 Thread Namhyung Kim
From: Oleg Nesterov uprobe_trace_print() and uprobe_perf_print() need to pass the additional info to call_fetch() methods, currently there is no simple way to do this. current->utask looks like a natural place to hold this info, but we need to allocate it before handler_chain(). This is a bit

[PATCH 01/17] tracing/uprobes: Fix documentation of uprobe registration syntax

2013-12-08 Thread Namhyung Kim
From: Namhyung Kim The uprobe syntax requires an offset after a file path not a symbol. Reviewed-by: Masami Hiramatsu Acked-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim --- Documentation/trace/uprobetracer.txt |

Re: [PATCH][RESEND] powerpc: remove unused REDBOOT Kconfig parameter

2013-12-08 Thread Benjamin Herrenschmidt
On Mon, 2013-12-09 at 06:27 +0100, Michael Opdenacker wrote: > This removes the REDBOOT Kconfig parameter, > which was no longer used anywhere in the source code > and Makefiles. It hasn't been lost :-) It's still in patchwork and it's even in my queue. Cheers, Ben. > Signed-off-by: Michael

Re: [PATCH v2 2/2] arm: omap: remove *.auto* from device names given in usb_bind_phy

2013-12-08 Thread Kishon Vijay Abraham I
Hi, On Saturday 07 December 2013 02:38 AM, Felipe Balbi wrote: Hi, On Fri, Dec 06, 2013 at 01:14:38PM +0100, Javier Martinez Canillas wrote: On Fri, Dec 6, 2013 at 1:06 PM, Kishon Vijay Abraham I wrote: Previously MUSB wrapper (OMAP) device used PLATFORM_DEVID_AUTO while creating MUSB core

Re: [PATCH] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-08 Thread Dongsheng Yang
When more than 1 VM, the cases you provided is all about record-report the symbols from __all__ guests. How about I want to record-report one of them? Example: There are 2 guests are running different kernels, I want to record-report VM1. Currently, we can use --guestmount to get the

Re: [PATCH] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-08 Thread Dongsheng Yang
On 12/09/2013 01:06 PM, Dongsheng Yang wrote: On 12/08/2013 11:32 PM, David Ahern wrote: On 12/9/13, 10:12 AM, Dongsheng Yang wrote: On 12/08/2013 10:42 PM, David Ahern wrote: On 12/9/13, 8:20 AM, Dongsheng Yang wrote: How about introduce an option named --guestpid? Then we can make the

[PATCH 05/14] tools lib traceevent: Get rid of malloc_or_die() in read_token()

2013-12-08 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index 35fac1fa376b..e9d17bfcdffd 100644 ---

[PATCH 02/14] tools lib traceevent: Get rid of die in add_filter_type()

2013-12-08 Thread Namhyung Kim
The realloc() should check return value and not to overwrite previous pointer in case of error. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c

[PATCH 03/14] tools lib traceevent: Get rid of malloc_or_die() in pevent_filter_alloc()

2013-12-08 Thread Namhyung Kim
It returns NULL when allocation fails so the users should check the return value from now on. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c

[f2fs-dev] [PATCH 3/3 V3] f2fs: introduce f2fs_cache_node_page() to add page into node_inode cache

2013-12-08 Thread Chao Yu
This patch introduces f2fs_cache_node_page(), in this function, page which is readed ahead will be copy to node_inode's mapping cache. It will avoid rereading these node pages. change log: o check validity of page by searching NAT suggested by Jaegeuk Kim. o add 'unlikely' for compiler

[PATCH 04/14] tools lib traceevent: Get rid of malloc_or_die() allocate_arg()

2013-12-08 Thread Namhyung Kim
Also check return value and handle it. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 59 +++-- 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index

[PATCH 11/14] tools lib traceevent: Get rid of malloc_or_die() in pevent_filter_add_filter_str()

2013-12-08 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index dabae52bbbcb..d8613308c08d 100644 ---

[PATCH 07/14] tools lib traceevent: Get rid of malloc_or_die() in add_event()

2013-12-08 Thread Namhyung Kim
Make it return error value since its only caller find_event() now can handle allocation error properly. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c

[PATCH 12/14] tools lib traceevent: Get rid of die() in pevent_filter_clear_trivial()

2013-12-08 Thread Namhyung Kim
Change the function signature to return error code and not call die() anymore. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 2 +- tools/lib/traceevent/parse-filter.c | 21 +++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git

[PATCH 08/14] tools lib traceevent: Get rid of die() in create_arg_item()

2013-12-08 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index faa10824b87d..5efe66a682bd 100644 ---

[PATCH 10/14] tools lib traceevent: Get rid of die() in reparent_op_arg()

2013-12-08 Thread Namhyung Kim
To do that, add FILTER_VAL_ERROR to enum filter_vals and make the function returns the error code. Also pass error_str so that it can set proper error message when error occurred. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 91 +++-- 1

[PATCH 01/14] tools lib traceevent: Get rid of malloc_or_die() in show_error()

2013-12-08 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index 2500e75583fc..0fc905c230ad 100644 ---

[PATCH 09/14] tools lib traceevent: Get rid of die() in add_right()

2013-12-08 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index 5efe66a682bd..a1ad609a860f 100644 ---

[PATCH 13/14] tools lib traceevent: Refactor test_filter() to get rid of die()

2013-12-08 Thread Namhyung Kim
The test_filter() function is for testing given filter is matched to a given record. However it doesn't handle error cases properly so add a new argument error_str to save error info during the test and also pass it to internal test functions. For now, it just save the error but does nothing

[PATCH 14/14] tools lib traceevent: Get rid of die() in some string conversion funcitons

2013-12-08 Thread Namhyung Kim
Those functions are for stringify filter arguments. As caller of those functions handles NULL string properly, it seems that it's enough to return NULL rather than calling die(). Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 51 ++--- 1

[PATCH 06/14] tools lib traceevent: Get rid of malloc_or_die() in find_event()

2013-12-08 Thread Namhyung Kim
Make it return -2 to distinguish malloc allocation failure. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/parse-filter.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index

[PATCHSET 00/14] tools lib traceevent: Get rid of *die() calls from parse-filter.c

2013-12-08 Thread Namhyung Kim
Hello, This patchset tries to remove all die() calls in event filter parsing code. The only remaining bits are in trace-seq.c which implement print functions and I want to hear what's the best way we can handle the error case during the print. I also put this patches on

[PATCH][RESEND] score: remove unused CPU_SCORE7 Kconfig parameter

2013-12-08 Thread Michael Opdenacker
This removes the CPU_SCORE7 Kconfig parameter, which was no longer used anywhere in the source code and Makefiles. Signed-off-by: Michael Opdenacker --- arch/score/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/score/Kconfig b/arch/score/Kconfig index

[PATCH][RESEND] score: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/score/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/score/kernel/time.c

[PATCH][RESEND] powerpc: remove unused REDBOOT Kconfig parameter

2013-12-08 Thread Michael Opdenacker
This removes the REDBOOT Kconfig parameter, which was no longer used anywhere in the source code and Makefiles. Signed-off-by: Michael Opdenacker --- arch/powerpc/Kconfig| 3 --- arch/powerpc/platforms/83xx/Kconfig | 1 - arch/powerpc/platforms/8xx/Kconfig | 1 - 3 files

[PATCH][RESEND] m32r: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/m32r/kernel/time.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/m32r/kernel/time.c b/arch/m32r/kernel/time.c index

[PATCH][RESEND] ia64/xen: remove unused NO_IDLE_HZ Kconfig parameter

2013-12-08 Thread Michael Opdenacker
This removes the NO_IDLE_HZ Kconfig parameter, which was no longer used anywhere in the source code and Makefiles. Signed-off-by: Michael Opdenacker --- arch/ia64/xen/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/ia64/xen/Kconfig b/arch/ia64/xen/Kconfig index

RE: [f2fs-dev] [PATCH 3/3 V2] f2fs: introduce f2fs_cache_node_page() to add page into node_inode cache

2013-12-08 Thread Jaegeuk Kim
2013-12-09 (월), 10:14 +0800, Chao Yu: > Hi, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaegeuk@samsung.com] > > Sent: Monday, December 09, 2013 7:37 AM > > To: Chao Yu > > Cc: linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; > >

[PATCH][RESEND] avr32: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker Acked-by: Hans-Christian Egtvedt --- arch/avr32/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] arm: plat-orion: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
Hi Jason, On 10/17/2013 02:54 PM, Jason Cooper wrote: > On Sat, Oct 12, 2013 at 05:49:20AM +0200, Michael Opdenacker wrote: >> This patch proposes to remove the use of the IRQF_DISABLED flag >> >> It's a NOOP since 2.6.35 and it will be removed one day. >> >> Signed-off-by: Michael Opdenacker >>

Re: [PATCH] ARM: dts: mxs: Add iio-hwmon to crystalfontz boards

2013-12-08 Thread Shawn Guo
On Fri, Dec 06, 2013 at 09:47:23PM +0100, Alexandre Belloni wrote: > Signed-off-by: Alexandre Belloni > --- > > This won't work until those patches are applied: > https://lkml.org/lkml/2013/12/6/676 I won't have this patch in my tree until next cycle. But if this DTS change does not cause any

[PATCH][RESEND] ARM: w90x900: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker Acked-by: Wan zongshun --- arch/arm/mach-w90x900/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-08 Thread Dongsheng Yang
On 12/08/2013 11:32 PM, David Ahern wrote: On 12/9/13, 10:12 AM, Dongsheng Yang wrote: On 12/08/2013 10:42 PM, David Ahern wrote: On 12/9/13, 8:20 AM, Dongsheng Yang wrote: How about introduce an option named --guestpid? Then we can make the usage of perf kvm more clear: * perf kvm

[PATCH][RESEND] ARM: spear: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-spear/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-spear/time.c

[PATCH][RESEND] ARM: mmp: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-mmp/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/time.c

[PATCH][RESEND] ARM: misc: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag from miscellaneous code in mach-xxx and plat-xxx This flag is a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-ebsa110/core.c | 2 +-

Re: Re: Re: [RFC PATCH tip 0/5] tracing filters with BPF

2013-12-08 Thread Masami Hiramatsu
(2013/12/08 1:21), Jovi Zhangwei wrote: > On Sat, Dec 7, 2013 at 7:58 AM, Masami Hiramatsu > wrote: >> (2013/12/06 14:19), Jovi Zhangwei wrote: >>> Hi Alexei, >>> >>> On Thu, Dec 5, 2013 at 12:40 PM, Alexei Starovoitov >>> wrote: > On Tue, Dec 3, 2013 at 4:01 PM, Andi Kleen wrote: >>

[PATCH][RESEND] ARM: LPC32xx: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-lpc32xx/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-lpc32xx/timer.c

[PATCH][RESEND] ARM: IXP4xx: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-ixp4xx/common.c| 2 +- arch/arm/mach-ixp4xx/dsmg600-setup.c | 3 +-- arch/arm/mach-ixp4xx/fsg-setup.c | 6

[PATCH][RESEND] ARM: cns3xxx: remove deprecated IRQF_DISABLED

2013-12-08 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- arch/arm/mach-cns3xxx/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-cns3xxx/core.c

  1   2   3   4   5   6   7   >