[PATCH perf/core v11 04/23] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" ---

[PATCH perf/core v11 06/23] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the

[PATCH perf/core v11 05/23] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" ---

[PATCH perf/core v11 02/23] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff

[PATCH perf/core v11 02/23] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH perf/core v11 04/23] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c | 76

[PATCH perf/core v11 06/23] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the

[PATCH perf/core v11 05/23] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c |

[PATCH perf/core v11 07/23] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu ---

[PATCH perf/core v11 03/23] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12

[PATCH perf/core v11 07/23] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v11: - Check failure of probe_cache operations and warn it. Changes in

[PATCH perf/core v11 03/23] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12 +---

[PATCH perf/core v11 00/23] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Resend: Sorry, I missed some last patches... Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according

[PATCH perf/core v11 00/23] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Resend: Sorry, I missed some last patches... Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according

[PATCH perf/core v11 01/23] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular

[PATCH perf/core v11 01/23] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular

[PATCH perf/core v11 04/20] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" ---

[PATCH perf/core v11 04/20] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c | 76

[PATCH 1/3] nfsd: Always lock state exclusively.

2016-06-14 Thread Oleg Drokin
It used to be the case that state had an rwlock that was locked for write by downgrades, but for read for upgrades (opens). Well, the problem is if there are two competing opens for the same state, they step on each other toes potentially leading to leaking file descriptors from the state

[PATCH 1/3] nfsd: Always lock state exclusively.

2016-06-14 Thread Oleg Drokin
It used to be the case that state had an rwlock that was locked for write by downgrades, but for read for upgrades (opens). Well, the problem is if there are two competing opens for the same state, they step on each other toes potentially leading to leaking file descriptors from the state

[PATCH 2/3] nfsd: Extend the mutex holding region around in nfsd4_process_open2()

2016-06-14 Thread Oleg Drokin
To avoid racing entry into nfs4_get_vfs_file(). Make init_open_stateid() return with locked stateid to be unlocked by the caller. Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH 2/3] nfsd: Extend the mutex holding region around in nfsd4_process_open2()

2016-06-14 Thread Oleg Drokin
To avoid racing entry into nfs4_get_vfs_file(). Make init_open_stateid() return with locked stateid to be unlocked by the caller. Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/nfs4state.c

[PATCH perf/core v11 18/20] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in

[PATCH perf/core v11 18/20] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Split off

[PATCH perf/core v11 14/20] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on

[PATCH perf/core v11 14/20] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in

[PATCH perf/core v11 20/20] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on

[PATCH perf/core v11 19/20] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a

[PATCH perf/core v11 17/20] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8

[PATCH perf/core v11 20/20] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on

[PATCH perf/core v11 19/20] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a

[PATCH perf/core v11 17/20] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files

[PATCH perf/core v11 15/20] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined

[PATCH perf/core v11 13/20] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as

[PATCH perf/core v11 12/20] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name

[PATCH perf/core v11 16/20] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 15/20] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined events (to be used in -e):

[PATCH perf/core v11 13/20] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as other cached events, via perf probe

[PATCH perf/core v11 12/20] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can

[PATCH perf/core v11 16/20] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in

[PATCH perf/core v11 11/20] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find

[PATCH perf/core v11 10/20] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes

[PATCH perf/core v11 09/20] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo

[PATCH perf/core v11 08/20] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 10/20] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In

[PATCH perf/core v11 09/20] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

[PATCH perf/core v11 11/20] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find these markers from the

[PATCH perf/core v11 08/20] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, On Tue, 14 Jun 2016 19:04:44 +0200, Richard Cochran write: >> Well, I guess I should have said, I am not too familiar with the >> breadth of current audio hardware, high end or low end. Of course I >> would like to see even consumer devices work with AVB, but it is up to >> the ALSA

[PATCH perf/core v11 02/20] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff

[PATCH perf/core v11 03/20] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12

[PATCH perf/core v11 01/20] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular

[PATCH 3/3] nfsd: Make init_open_stateid() a bit more whole

2016-06-14 Thread Oleg Drokin
Move the state selection logic inside from the caller, always making it return correct stp to use. Signed-off-by: J . Bruce Fields Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 27 --- 1 file changed, 12 insertions(+),

[PATCH perf/core v11 07/20] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu ---

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, On Tue, 14 Jun 2016 19:04:44 +0200, Richard Cochran write: >> Well, I guess I should have said, I am not too familiar with the >> breadth of current audio hardware, high end or low end. Of course I >> would like to see even consumer devices work with AVB, but it is up to >> the ALSA

[PATCH perf/core v11 02/20] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH perf/core v11 03/20] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12 +---

[PATCH perf/core v11 01/20] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular

[PATCH 3/3] nfsd: Make init_open_stateid() a bit more whole

2016-06-14 Thread Oleg Drokin
Move the state selection logic inside from the caller, always making it return correct stp to use. Signed-off-by: J . Bruce Fields Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git

[PATCH perf/core v11 07/20] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v11: - Check failure of probe_cache operations and warn it. Changes in

[PATCH 0/3] nfsd state handling fixes

2016-06-14 Thread Oleg Drokin
These three patches do the much discussed job of making nfsd state handling more robust in face of races where several opens arrive for the same file at the same time from the same client. This does not yet handle a case when one of those opens gets an error and others don't. Also this is

[PATCH perf/core v11 06/20] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the

[PATCH perf/core v11 05/20] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" ---

[PATCH 0/3] nfsd state handling fixes

2016-06-14 Thread Oleg Drokin
These three patches do the much discussed job of making nfsd state handling more robust in face of races where several opens arrive for the same file at the same time from the same client. This does not yet handle a case when one of those opens gets an error and others don't. Also this is

[PATCH perf/core v11 06/20] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the

[PATCH perf/core v11 05/20] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c |

[PATCH perf/core v11 00/20] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according to Arnaldo's comments. Changes in v11: -

[PATCH perf/core v11 00/20] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according to Arnaldo's comments. Changes in v11: -

Re: [PATCH v5 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-14 Thread Frank Wang
Hi Heiko, On 2016/6/14 21:27, Heiko Stübner wrote: Am Montag, 13. Juni 2016, 10:10:10 schrieb Frank Wang: The newer SoCs (rk3366, rk3399) take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is

Re: [PATCH v5 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-14 Thread Frank Wang
Hi Heiko, On 2016/6/14 21:27, Heiko Stübner wrote: Am Montag, 13. Juni 2016, 10:10:10 schrieb Frank Wang: The newer SoCs (rk3366, rk3399) take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, > On Mon, Jun 13, 2016 at 01:47:13PM +0200, Richard Cochran wrote: >> 3. ALSA support for tunable AD/DA clocks. The rate of the Listener's >>DA clock must match that of the Talker and the other Listeners. >>Either you adjust it in HW using a VCO or similar, or you do >>

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, > On Mon, Jun 13, 2016 at 01:47:13PM +0200, Richard Cochran wrote: >> 3. ALSA support for tunable AD/DA clocks. The rate of the Listener's >>DA clock must match that of the Talker and the other Listeners. >>Either you adjust it in HW using a VCO or similar, or you do >>

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen wrote: >> >>> On 06/14/2016 09:47 AM, Nadav Amit wrote: Lukasz Anaczkowski wrote: >> From: Andi Kleen

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen wrote: >> >>> On 06/14/2016 09:47 AM, Nadav Amit wrote: Lukasz Anaczkowski wrote: >> From: Andi Kleen >> +void fix_pte_leak(struct mm_struct *mm, unsigned long addr, pte_t *ptep) >> +{

[ANNOUNCE] autofs 5.1.2 release

2016-06-14 Thread Ian Kent
Hi all, An update is overdue so here it is. It's mostly a bug fix update. autofs == The package can be found at: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5 It is autofs-5.1.2.tar.[gz|xz] No source rpm is there as it can be produced by using: rpmbuild -ts autofs-5.1.2.tar.gz and

[ANNOUNCE] autofs 5.1.2 release

2016-06-14 Thread Ian Kent
Hi all, An update is overdue so here it is. It's mostly a bug fix update. autofs == The package can be found at: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5 It is autofs-5.1.2.tar.[gz|xz] No source rpm is there as it can be produced by using: rpmbuild -ts autofs-5.1.2.tar.gz and

Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
>From 48552e96e4e33f8830cb6a59154fe148425532fd Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Wed, 15 Jun 2016 10:58:10 +0800 Subject: [PATCH v4,0/5] Add MediaTek USB3 DRD Driver These patches introduce the MediaTek USB3 dual-role controller driver. The driver can

[PATCH v4,2/5] dt-bindings: mt8173-mtu3: add devicetree bindings

2016-06-14 Thread Chunfeng Yun
add a DT binding doc for MediaTek USB3 DRD driver Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-mtu3.txt| 86 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt8173-mtu3.txt

[PATCH v4,1/5] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-06-14 Thread Chunfeng Yun
Some resources, such as IPPC register etc, shared with device driver are moved into common glue layer when xHCI driver is the host side of dual-role mode and they should be changed as optional properties if they are required ones before. For clarity, add a new part of binding to support host side

Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
>From 48552e96e4e33f8830cb6a59154fe148425532fd Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Wed, 15 Jun 2016 10:58:10 +0800 Subject: [PATCH v4,0/5] Add MediaTek USB3 DRD Driver These patches introduce the MediaTek USB3 dual-role controller driver. The driver can be configured as Dual-Role

[PATCH v4,2/5] dt-bindings: mt8173-mtu3: add devicetree bindings

2016-06-14 Thread Chunfeng Yun
add a DT binding doc for MediaTek USB3 DRD driver Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-mtu3.txt| 86 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt8173-mtu3.txt diff --git

[PATCH v4,1/5] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-06-14 Thread Chunfeng Yun
Some resources, such as IPPC register etc, shared with device driver are moved into common glue layer when xHCI driver is the host side of dual-role mode and they should be changed as optional properties if they are required ones before. For clarity, add a new part of binding to support host side

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Andy Lutomirski
On Tue, Jun 14, 2016 at 7:44 PM, Nadav Amit wrote: > Andy Lutomirski wrote: > >> On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >>> Andy Lutomirski wrote: >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Andy Lutomirski
On Tue, Jun 14, 2016 at 7:44 PM, Nadav Amit wrote: > Andy Lutomirski wrote: > >> On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >>> Andy Lutomirski wrote: >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen

[PATCH v4,3/5] usb: xhci-mtk: make IPPC register optional

2016-06-14 Thread Chunfeng Yun
Make IPPC register optional to support host side of dual-role mode, due to it is moved into common glue layer for simplification. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 32 +++- 1 file changed, 27 insertions(+), 5

[PATCH v4,5/5] arm64: dts: mediatek: add USB3 DRD driver

2016-06-14 Thread Chunfeng Yun
USB3 DRD driver is added for MT8173-EVB, and xHCI driver becomes its subnode Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 46 +-- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 28 2 files

[PATCH v4,3/5] usb: xhci-mtk: make IPPC register optional

2016-06-14 Thread Chunfeng Yun
Make IPPC register optional to support host side of dual-role mode, due to it is moved into common glue layer for simplification. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git

[PATCH v4,5/5] arm64: dts: mediatek: add USB3 DRD driver

2016-06-14 Thread Chunfeng Yun
USB3 DRD driver is added for MT8173-EVB, and xHCI driver becomes its subnode Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 46 +-- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 28 2 files changed, 65 insertions(+), 9

[PATCH v4,4/5] usb: Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
This patch adds support for the MediaTek USB3 controller integrated into MT8173. It can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only (xHCI) modes. Signed-off-by: Chunfeng Yun --- drivers/usb/Kconfig|2 +

[PATCH v4,4/5] usb: Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
This patch adds support for the MediaTek USB3 controller integrated into MT8173. It can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only (xHCI) modes. Signed-off-by: Chunfeng Yun --- drivers/usb/Kconfig|2 + drivers/usb/Makefile |1 +

Re: [PATCH 2/3] staging: lustre: lnet: Allocate MEs and small MDs in own kmem_caches

2016-06-14 Thread James Simmons
> > This may also possibly help to save cycles due to high usage and > > contention when using a generic kmem_cache (when they stay separate > > from others, thanks for the precision!). > > Have you measured this? > > This isn't applicable for 4.7-rc at this time, _unless_ it fixes a bug, >

Re: [PATCH 2/3] staging: lustre: lnet: Allocate MEs and small MDs in own kmem_caches

2016-06-14 Thread James Simmons
> > This may also possibly help to save cycles due to high usage and > > contention when using a generic kmem_cache (when they stay separate > > from others, thanks for the precision!). > > Have you measured this? > > This isn't applicable for 4.7-rc at this time, _unless_ it fixes a bug, >

Re: [PATCH] USB: core: fix missing include

2016-06-14 Thread Peter Chen
On Tue, Jun 14, 2016 at 01:08:08PM +0200, Arnd Bergmann wrote: > On Wednesday, June 8, 2016 3:04:27 AM CEST kbuild test robot wrote: > > >> drivers/usb/core/of.c:32:21: error: redefinition of > > >> 'usb_of_get_child_node' > > struct device_node *usb_of_get_child_node(struct device_node

Re: [PATCH] USB: core: fix missing include

2016-06-14 Thread Peter Chen
On Tue, Jun 14, 2016 at 01:08:08PM +0200, Arnd Bergmann wrote: > On Wednesday, June 8, 2016 3:04:27 AM CEST kbuild test robot wrote: > > >> drivers/usb/core/of.c:32:21: error: redefinition of > > >> 'usb_of_get_child_node' > > struct device_node *usb_of_get_child_node(struct device_node

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Andy Lutomirski wrote: > On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >> Andy Lutomirski wrote: >> >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen >>> wrote: On 06/14/2016 01:16 PM, Nadav

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Andy Lutomirski wrote: > On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >> Andy Lutomirski wrote: >> >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen >>> wrote: On 06/14/2016 01:16 PM, Nadav Amit wrote: > Dave Hansen wrote: > >> On 06/14/2016 09:47 AM, Nadav Amit

Re: [PATCH V2] block: correctly fallback for zeroout

2016-06-14 Thread Mike Snitzer
On Tue, Jun 14 2016 at 10:30pm -0400, Martin K. Petersen wrote: > > "Mike" == Mike Snitzer writes: > > Mike, > > Mike> so long story short: making this change to remove this so-called > Mike> "stupid behaviour" will require code like > Mike>

Re: [PATCH V2] block: correctly fallback for zeroout

2016-06-14 Thread Mike Snitzer
On Tue, Jun 14 2016 at 10:30pm -0400, Martin K. Petersen wrote: > > "Mike" == Mike Snitzer writes: > > Mike, > > Mike> so long story short: making this change to remove this so-called > Mike> "stupid behaviour" will require code like > Mike> drivers/md/dm-thin.c:issue_discard(() to check

Re: [PATCH v4 0/8] Replay Protected Memory Block (RPMB) subsystem

2016-06-14 Thread Arve Hjønnevåg
On Tue, Jun 14, 2016 at 2:05 PM, Winkler, Tomas wrote: wrote: > Few storage technology such is EMMC, UFS, and NVMe support RPMB >hardware partition with common protocol and frame layout. > The RPMB partition cannot be accessed via standard block layer,

Re: [PATCH v4 0/8] Replay Protected Memory Block (RPMB) subsystem

2016-06-14 Thread Arve Hjønnevåg
On Tue, Jun 14, 2016 at 2:05 PM, Winkler, Tomas wrote: wrote: > Few storage technology such is EMMC, UFS, and NVMe support RPMB >hardware partition with common protocol and frame layout. > The RPMB partition cannot be accessed via standard block layer, but >by a set of

<    1   2   3   4   5   6   7   8   9   10   >