[tip:perf/core] perf top: Support lookup of symbols in other mount namespaces.

2017-07-26 Thread tip-bot for Krister Johansen
Commit-ID: 868a832918f621b7576655c00067f20326ef3931 Gitweb: http://git.kernel.org/tip/868a832918f621b7576655c00067f20326ef3931 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:12 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf top: Support lookup of symbols in other mount namespaces.

2017-07-26 Thread tip-bot for Krister Johansen
Commit-ID: 868a832918f621b7576655c00067f20326ef3931 Gitweb: http://git.kernel.org/tip/868a832918f621b7576655c00067f20326ef3931 Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:12 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jul 2017 22:43:16 -0300 perf top

[tip:perf/core] perf probe: Allow placing uprobes in alternate namespaces.

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: 544abd44c7064c8a58a6bd2073d757f6b91d98c5 Gitweb: http://git.kernel.org/tip/544abd44c7064c8a58a6bd2073d757f6b91d98c5 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:10 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf probe: Allow placing uprobes in alternate namespaces.

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: 544abd44c7064c8a58a6bd2073d757f6b91d98c5 Gitweb: http://git.kernel.org/tip/544abd44c7064c8a58a6bd2073d757f6b91d98c5 Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:10 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:10 -0300 perf probe

[tip:perf/core] perf buildid-cache: Cache debuginfo

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: d2396999c998b4e0006aef247e154eff0ed3d8f9 Gitweb: http://git.kernel.org/tip/d2396999c998b4e0006aef247e154eff0ed3d8f9 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:13 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf buildid-cache: Cache debuginfo

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: d2396999c998b4e0006aef247e154eff0ed3d8f9 Gitweb: http://git.kernel.org/tip/d2396999c998b4e0006aef247e154eff0ed3d8f9 Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:13 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:11 -0300 perf

[tip:perf/core] perf buildid-cache: Support binary objects from other namespaces

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: f045b8c4b36baddcfbdd4d3d956446e688b0b3cd Gitweb: http://git.kernel.org/tip/f045b8c4b36baddcfbdd4d3d956446e688b0b3cd Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:11 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf buildid-cache: Support binary objects from other namespaces

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: f045b8c4b36baddcfbdd4d3d956446e688b0b3cd Gitweb: http://git.kernel.org/tip/f045b8c4b36baddcfbdd4d3d956446e688b0b3cd Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:11 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:11 -0300 perf

[tip:perf/core] perf maps: Lookup maps in both intitial mountns and inner mountns.

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: bf2e710b3cb8445c052f2ff50b4875a2523bb279 Gitweb: http://git.kernel.org/tip/bf2e710b3cb8445c052f2ff50b4875a2523bb279 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:09 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf maps: Lookup maps in both intitial mountns and inner mountns.

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: bf2e710b3cb8445c052f2ff50b4875a2523bb279 Gitweb: http://git.kernel.org/tip/bf2e710b3cb8445c052f2ff50b4875a2523bb279 Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:09 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:09 -0300 perf maps

[tip:perf/core] perf symbols: Find symbols in different mount namespace

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: 843ff37bb59edbe51d64e77ba1b3245a15a4dd9f Gitweb: http://git.kernel.org/tip/843ff37bb59edbe51d64e77ba1b3245a15a4dd9f Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Wed, 5 Jul 2017 18:48:08 -0700 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf symbols: Find symbols in different mount namespace

2017-07-20 Thread tip-bot for Krister Johansen
Commit-ID: 843ff37bb59edbe51d64e77ba1b3245a15a4dd9f Gitweb: http://git.kernel.org/tip/843ff37bb59edbe51d64e77ba1b3245a15a4dd9f Author: Krister Johansen AuthorDate: Wed, 5 Jul 2017 18:48:08 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:09 -0300 perf

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-11 Thread Krister Johansen
On Tue, Jul 11, 2017 at 09:51:16AM -0300, Arnaldo Carvalho de Melo wrote: > Right, we need to use the build-id and look it up in a database > populated somehow. > > perf right now, by default, collects the build-ids in a table, at the > end of the recording session, trying not to disrupt the

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-11 Thread Krister Johansen
On Tue, Jul 11, 2017 at 09:51:16AM -0300, Arnaldo Carvalho de Melo wrote: > Right, we need to use the build-id and look it up in a database > populated somehow. > > perf right now, by default, collects the build-ids in a table, at the > end of the recording session, trying not to disrupt the

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 07:52:49PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > > On 07/07/2017 09:36 PM, Krister Johansen wrote: >

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 07:52:49PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > > On 07/07/2017 09:36 PM, Krister Johansen wrote: >

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > >> Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: &g

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > >> Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: &g

Re: [PATCH 4.9 00/41] 4.9.37-stable review

2017-07-10 Thread Krister Johansen
Hey Greg, On Mon, Jul 10, 2017 at 07:10:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.37 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please >

Re: [PATCH 4.9 00/41] 4.9.37-stable review

2017-07-10 Thread Krister Johansen
Hey Greg, On Mon, Jul 10, 2017 at 07:10:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.37 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please >

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-07 Thread Krister Johansen
On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: > > Teach perf how to resolve symbols from binaries that are in a different > > mount namespace from the tool. This allows perf to gene

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-07 Thread Krister Johansen
On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: > > Teach perf how to resolve symbols from binaries that are in a different > > mount namespace from the tool. This allows perf to gene

[PATCH v2 tip/perf/core 4/6] perf buildid-cache: support binary objects from other namespaces

2017-07-05 Thread Krister Johansen
alternate mount namespaces. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/Documentation/perf-buildid-cache.txt | 5 +++ tools/perf/Documentation/perf-probe.txt | 5 +++ tools/perf/builtin-buildid-cache.c | 52 ++--- tool

[PATCH v2 tip/perf/core 4/6] perf buildid-cache: support binary objects from other namespaces

2017-07-05 Thread Krister Johansen
alternate mount namespaces. Signed-off-by: Krister Johansen --- tools/perf/Documentation/perf-buildid-cache.txt | 5 +++ tools/perf/Documentation/perf-probe.txt | 5 +++ tools/perf/builtin-buildid-cache.c | 52 ++--- tools/perf/builtin-probe.c

[PATCH v2 tip/perf/core 3/6] perf probe: allow placing uprobes in alternate namespaces.

2017-07-05 Thread Krister Johansen
Teaches perf how to place a uprobe on a file that's in a different mount namespace. The user must add the probe using the --target-ns argument to perf probe. Once it has been placed, it may be recorded against without further namespace-specific commands. Signed-off-by: Krister Johansen &l

[PATCH v2 tip/perf/core 3/6] perf probe: allow placing uprobes in alternate namespaces.

2017-07-05 Thread Krister Johansen
Teaches perf how to place a uprobe on a file that's in a different mount namespace. The user must add the probe using the --target-ns argument to perf probe. Once it has been placed, it may be recorded against without further namespace-specific commands. Signed-off-by: Krister Johansen

[PATCH v2 tip/perf/core 6/6] perf buildid-cache: cache debuginfo

2017-07-05 Thread Krister Johansen
. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/builtin-buildid-cache.c | 2 +- tools/perf/util/annotate.c | 2 +- tools/perf/util/build-id.c | 72 +++--- tools/perf/util/build-id.h | 3 +- tools/perf/util

[PATCH v2 tip/perf/core 2/6] perf maps: lookup maps in both intitial mountns and inner mountns.

2017-07-05 Thread Krister Johansen
. If all else fails, use the original pid. This allows us to locate a symbol map file in the mount namespace, if it was generated there. However, we also try the tool's /tmp in case it's there instead. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/util/machine.c

[PATCH v2 tip/perf/core 5/6] perf top: support lookup of symbols in other mount namespaces.

2017-07-05 Thread Krister Johansen
The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tool

[PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-05 Thread Krister Johansen
Teach perf how to resolve symbols from binaries that are in a different mount namespace from the tool. This allows perf to generate meaningful stack traces even if the binary resides in a different mount namespace from the tool. Signed-off-by: Krister Johansen <k...@templeofstupid.

[PATCH v2 tip/perf/core 6/6] perf buildid-cache: cache debuginfo

2017-07-05 Thread Krister Johansen
. Signed-off-by: Krister Johansen --- tools/perf/builtin-buildid-cache.c | 2 +- tools/perf/util/annotate.c | 2 +- tools/perf/util/build-id.c | 72 +++--- tools/perf/util/build-id.h | 3 +- tools/perf/util/dso.c | 8

[PATCH v2 tip/perf/core 2/6] perf maps: lookup maps in both intitial mountns and inner mountns.

2017-07-05 Thread Krister Johansen
. If all else fails, use the original pid. This allows us to locate a symbol map file in the mount namespace, if it was generated there. However, we also try the tool's /tmp in case it's there instead. Signed-off-by: Krister Johansen --- tools/perf/util/machine.c| 4 +-- tools/perf/util/map.c

[PATCH v2 tip/perf/core 5/6] perf top: support lookup of symbols in other mount namespaces.

2017-07-05 Thread Krister Johansen
The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen --- tools/perf/Documentation/perf-top.txt | 4

[PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-05 Thread Krister Johansen
Teach perf how to resolve symbols from binaries that are in a different mount namespace from the tool. This allows perf to generate meaningful stack traces even if the binary resides in a different mount namespace from the tool. Signed-off-by: Krister Johansen --- tools/perf/util/dso.c

[PATCH v2 tip/perf/core 0/6] namespace tracing improvements

2017-07-05 Thread Krister Johansen
ons (Brendan) - add perf-probe examples for uprobes and USDT (Brendan) Krister Johansen (6): perf symbols: find symbols in different mount namespace perf maps: lookup maps in both intitial mountns and inner mountns. perf probe: allow placing uprobes in alternate namespaces. perf buildid-ca

[PATCH v2 tip/perf/core 0/6] namespace tracing improvements

2017-07-05 Thread Krister Johansen
ons (Brendan) - add perf-probe examples for uprobes and USDT (Brendan) Krister Johansen (6): perf symbols: find symbols in different mount namespace perf maps: lookup maps in both intitial mountns and inner mountns. perf probe: allow placing uprobes in alternate namespaces. perf buildid-ca

Re: [PATCH tip/perf/core 3/7] perf probe: allow placing uprobes in alternate namespaces.

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:46:41PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:55PM -0700, Krister Johansen escreveu: > > Teaches perf how to place a uprobe on a file that's in a different mount > > namespace. The user must add the probe using the --tar

Re: [PATCH tip/perf/core 3/7] perf probe: allow placing uprobes in alternate namespaces.

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:46:41PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:55PM -0700, Krister Johansen escreveu: > > Teaches perf how to place a uprobe on a file that's in a different mount > > namespace. The user must add the probe using the --tar

Re: [PATCH tip/perf/core 6/7] perf documentation: updates for target-ns.

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:48:36PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:58PM -0700, Krister Johansen escreveu: > > Update the perf documentation to describe the --target-ns option to > > probe and buildid-cache. Note the existence of the n

Re: [PATCH tip/perf/core 6/7] perf documentation: updates for target-ns.

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:48:36PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:58PM -0700, Krister Johansen escreveu: > > Update the perf documentation to describe the --target-ns option to > > probe and buildid-cache. Note the existence of the n

Re: [PATCH tip/perf/core 1/7] perf symbols: find symbols in different mount namespace

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:38:27PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:53PM -0700, Krister Johansen escreveu: > > Teach perf how to resolve symbols from binaries that are in a different > > mount namespace from the tool. This allows perf to gene

Re: [PATCH tip/perf/core 1/7] perf symbols: find symbols in different mount namespace

2017-07-05 Thread Krister Johansen
On Mon, Jul 03, 2017 at 03:38:27PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 30, 2017 at 07:18:53PM -0700, Krister Johansen escreveu: > > Teach perf how to resolve symbols from binaries that are in a different > > mount namespace from the tool. This allows perf to gene

Re: [PATCH 4.9 131/172] perf probe: Fix to probe on gcc generated functions in modules

2017-07-05 Thread Krister Johansen
Hey Greg, > 4.9-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Masami Hiramatsu > > > [ Upstream commit 613f050d68a8ed3c0b18b9568698908ef7bbc1f7 ] > > Fix to probe on gcc generated functions on modules. Since >

Re: [PATCH 4.9 131/172] perf probe: Fix to probe on gcc generated functions in modules

2017-07-05 Thread Krister Johansen
Hey Greg, > 4.9-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Masami Hiramatsu > > > [ Upstream commit 613f050d68a8ed3c0b18b9568698908ef7bbc1f7 ] > > Fix to probe on gcc generated functions on modules. Since > probing on a module is

[PATCH tip/perf/core 2/7] perf maps: lookup maps in both intitial mountns and inner mountns.

2017-06-30 Thread Krister Johansen
. If all else fails, use the original pid. This allows us to locate a symbol map file in the mount namespace, if it was generated there. However, we also try the tool's /tmp in case it's there instead. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/util/machine.c

[PATCH tip/perf/core 2/7] perf maps: lookup maps in both intitial mountns and inner mountns.

2017-06-30 Thread Krister Johansen
. If all else fails, use the original pid. This allows us to locate a symbol map file in the mount namespace, if it was generated there. However, we also try the tool's /tmp in case it's there instead. Signed-off-by: Krister Johansen --- tools/perf/util/machine.c| 19 -- tools/perf/util

[PATCH tip/perf/core 1/7] perf symbols: find symbols in different mount namespace

2017-06-30 Thread Krister Johansen
Teach perf how to resolve symbols from binaries that are in a different mount namespace from the tool. This allows perf to generate meaningful stack traces even if the binary resides in a different mount namespace from the tool. Signed-off-by: Krister Johansen <k...@templeofstupid.

[PATCH tip/perf/core 7/7] perf buildid-cache: cache debuginfo

2017-06-30 Thread Krister Johansen
. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/builtin-buildid-cache.c | 2 +- tools/perf/util/annotate.c | 2 +- tools/perf/util/build-id.c | 72 +++--- tools/perf/util/build-id.h | 3 +- tools/perf/util

[PATCH tip/perf/core 5/7] perf top: support lookup of symbols in other mount namespaces.

2017-06-30 Thread Krister Johansen
The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/b

[PATCH tip/perf/core 6/7] perf documentation: updates for target-ns.

2017-06-30 Thread Krister Johansen
Update the perf documentation to describe the --target-ns option to probe and buildid-cache. Note the existence of the new --force flag to top. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/Documentation/perf-buildid-cache.txt | 5 + tools/perf/Documentatio

[PATCH tip/perf/core 1/7] perf symbols: find symbols in different mount namespace

2017-06-30 Thread Krister Johansen
Teach perf how to resolve symbols from binaries that are in a different mount namespace from the tool. This allows perf to generate meaningful stack traces even if the binary resides in a different mount namespace from the tool. Signed-off-by: Krister Johansen --- tools/perf/util/dso.c

[PATCH tip/perf/core 7/7] perf buildid-cache: cache debuginfo

2017-06-30 Thread Krister Johansen
. Signed-off-by: Krister Johansen --- tools/perf/builtin-buildid-cache.c | 2 +- tools/perf/util/annotate.c | 2 +- tools/perf/util/build-id.c | 72 +++--- tools/perf/util/build-id.h | 3 +- tools/perf/util/dso.c | 8

[PATCH tip/perf/core 5/7] perf top: support lookup of symbols in other mount namespaces.

2017-06-30 Thread Krister Johansen
The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen --- tools/perf/builtin-top.c | 15 +++ 1

[PATCH tip/perf/core 6/7] perf documentation: updates for target-ns.

2017-06-30 Thread Krister Johansen
Update the perf documentation to describe the --target-ns option to probe and buildid-cache. Note the existence of the new --force flag to top. Signed-off-by: Krister Johansen --- tools/perf/Documentation/perf-buildid-cache.txt | 5 + tools/perf/Documentation/perf-probe.txt | 5

[PATCH tip/perf/core 3/7] perf probe: allow placing uprobes in alternate namespaces.

2017-06-30 Thread Krister Johansen
Teaches perf how to place a uprobe on a file that's in a different mount namespace. The user must add the probe using the --target-ns argument to perf probe. Once it has been placed, it may be recorded against without further namespace-specific commands. Signed-off-by: Krister Johansen &l

[PATCH tip/perf/core 0/7] namespace tracing improvements

2017-06-30 Thread Krister Johansen
Krister Johansen (7): perf symbols: find symbols in different mount namespace perf maps: lookup maps in both intitial mountns and inner mountns. perf probe: allow placing uprobes in alternate namespaces. perf buildid-cache: support binary objects from other namespaces perf top: support lookup

[PATCH tip/perf/core 4/7] perf buildid-cache: support binary objects from other namespaces

2017-06-30 Thread Krister Johansen
alternate mount namespaces. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/builtin-buildid-cache.c | 52 +++--- tools/perf/builtin-probe.c | 2 +- tools/perf/tests/sdt.c | 4 +-- tools/perf/util/build-id.c

[PATCH tip/perf/core 3/7] perf probe: allow placing uprobes in alternate namespaces.

2017-06-30 Thread Krister Johansen
Teaches perf how to place a uprobe on a file that's in a different mount namespace. The user must add the probe using the --target-ns argument to perf probe. Once it has been placed, it may be recorded against without further namespace-specific commands. Signed-off-by: Krister Johansen

[PATCH tip/perf/core 0/7] namespace tracing improvements

2017-06-30 Thread Krister Johansen
Krister Johansen (7): perf symbols: find symbols in different mount namespace perf maps: lookup maps in both intitial mountns and inner mountns. perf probe: allow placing uprobes in alternate namespaces. perf buildid-cache: support binary objects from other namespaces perf top: support lookup

[PATCH tip/perf/core 4/7] perf buildid-cache: support binary objects from other namespaces

2017-06-30 Thread Krister Johansen
alternate mount namespaces. Signed-off-by: Krister Johansen --- tools/perf/builtin-buildid-cache.c | 52 +++--- tools/perf/builtin-probe.c | 2 +- tools/perf/tests/sdt.c | 4 +-- tools/perf/util/build-id.c | 48

Re: [PATCH 2/4] swait: add the missing killable swaits

2017-06-30 Thread Krister Johansen
On Thu, Jun 29, 2017 at 09:03:42PM -0700, Linus Torvalds wrote: > On Thu, Jun 29, 2017 at 12:15 PM, Marcelo Tosatti wrote: > > On Thu, Jun 29, 2017 at 09:13:29AM -0700, Linus Torvalds wrote: > >> > >> swait uses special locking and has odd semantics that are not at all > >>

Re: [PATCH 2/4] swait: add the missing killable swaits

2017-06-30 Thread Krister Johansen
On Thu, Jun 29, 2017 at 09:03:42PM -0700, Linus Torvalds wrote: > On Thu, Jun 29, 2017 at 12:15 PM, Marcelo Tosatti wrote: > > On Thu, Jun 29, 2017 at 09:13:29AM -0700, Linus Torvalds wrote: > >> > >> swait uses special locking and has odd semantics that are not at all > >> the same as the

Re: [PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-14 Thread Krister Johansen
On Wed, Jun 14, 2017 at 11:02:40AM -0400, Steven Rostedt wrote: > On Wed, 14 Jun 2017 09:10:15 -0400 > Steven Rostedt wrote: > > > Now let's make it simpler. I'll even add the READ_ONCE and WRITE_ONCE > > where applicable. > > > > > > CPU0

Re: [PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-14 Thread Krister Johansen
On Wed, Jun 14, 2017 at 11:02:40AM -0400, Steven Rostedt wrote: > On Wed, 14 Jun 2017 09:10:15 -0400 > Steven Rostedt wrote: > > > Now let's make it simpler. I'll even add the READ_ONCE and WRITE_ONCE > > where applicable. > > > > > > CPU0CPU1 > >

[PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-08 Thread Krister Johansen
. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- include/linux/swait.h | 27 +++ kernel/sched/swait.c | 18 +- 2 files changed, 44 insertions(+), 1 deletion(-) This came out of a discussion that Paul McKenney and I had about whether

[PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-08 Thread Krister Johansen
. Signed-off-by: Krister Johansen --- include/linux/swait.h | 27 +++ kernel/sched/swait.c | 18 +- 2 files changed, 44 insertions(+), 1 deletion(-) This came out of a discussion that Paul McKenney and I had about whether other callers of swake_up() knew

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
On Thu, Jun 08, 2017 at 04:47:43PM -0700, Paul E. McKenney wrote: > On Thu, Jun 08, 2017 at 02:28:14PM -0700, Krister Johansen wrote: > > On Thu, Jun 08, 2017 at 01:55:00PM -0700, Paul E. McKenney wrote: > > > Interesting! This is the first that I have heard that this was an

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
On Thu, Jun 08, 2017 at 04:47:43PM -0700, Paul E. McKenney wrote: > On Thu, Jun 08, 2017 at 02:28:14PM -0700, Krister Johansen wrote: > > On Thu, Jun 08, 2017 at 01:55:00PM -0700, Paul E. McKenney wrote: > > > Interesting! This is the first that I have heard that this was an

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
On Thu, Jun 08, 2017 at 01:55:00PM -0700, Paul E. McKenney wrote: > On Thu, Jun 08, 2017 at 01:11:48PM -0700, Krister Johansen wrote: > > May I impose upon you to CC this patch to stable, and tag it as fixing > > abedf8e241? I ran into this on a production 4.9 branch. When I >

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
On Thu, Jun 08, 2017 at 01:55:00PM -0700, Paul E. McKenney wrote: > On Thu, Jun 08, 2017 at 01:11:48PM -0700, Krister Johansen wrote: > > May I impose upon you to CC this patch to stable, and tag it as fixing > > abedf8e241? I ran into this on a production 4.9 branch. When I >

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
Hi Paul, On Thu, May 25, 2017 at 02:59:18PM -0700, Paul E. McKenney wrote: > Wait/wakeup operations do not guarantee ordering on their own. Instead, > either locking or memory barriers are required. This commit therefore > adds memory barriers to wake_nocb_leader() and nocb_leader_wait(). > >

Re: [PATCH tip/core/rcu 45/88] rcu: Add memory barriers for NOCB leader wakeup

2017-06-08 Thread Krister Johansen
Hi Paul, On Thu, May 25, 2017 at 02:59:18PM -0700, Paul E. McKenney wrote: > Wait/wakeup operations do not guarantee ordering on their own. Instead, > either locking or memory barriers are required. This commit therefore > adds memory barriers to wake_nocb_leader() and nocb_leader_wait(). > >

[tip:perf/urgent] perf callchain: Reference count maps

2017-02-03 Thread tip-bot for Krister Johansen
Commit-ID: aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 Gitweb: http://git.kernel.org/tip/aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Thu, 5 Jan 2017 22:23:31 -0800 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/urgent] perf callchain: Reference count maps

2017-02-03 Thread tip-bot for Krister Johansen
Commit-ID: aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 Gitweb: http://git.kernel.org/tip/aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 Author: Krister Johansen AuthorDate: Thu, 5 Jan 2017 22:23:31 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 2 Feb 2017 11:39:09 -0300 perf

[tip:perf/core] perf callchain: Reference count maps

2017-02-01 Thread tip-bot for Krister Johansen
Commit-ID: 9c68ae98c6f714ef573826cfc9055af1bd5e97b1 Gitweb: http://git.kernel.org/tip/9c68ae98c6f714ef573826cfc9055af1bd5e97b1 Author: Krister Johansen <k...@templeofstupid.com> AuthorDate: Thu, 5 Jan 2017 22:23:31 -0800 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf callchain: Reference count maps

2017-02-01 Thread tip-bot for Krister Johansen
Commit-ID: 9c68ae98c6f714ef573826cfc9055af1bd5e97b1 Gitweb: http://git.kernel.org/tip/9c68ae98c6f714ef573826cfc9055af1bd5e97b1 Author: Krister Johansen AuthorDate: Thu, 5 Jan 2017 22:23:31 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 31 Jan 2017 16:19:06 -0300 perf

Re: [PATCH v3 perf/core] perf script: fix a use after free crash.

2017-01-20 Thread Krister Johansen
Hey Arnaldo, On Thu, Jan 05, 2017 at 10:23:31PM -0800, Krister Johansen wrote: > If dso__load_kcore frees all of the existing maps, but one has already > been attached to a callchain cursor node, then we can get a SIGSEGV in > any function that happens to try to use this invalid cur

Re: [PATCH v3 perf/core] perf script: fix a use after free crash.

2017-01-20 Thread Krister Johansen
Hey Arnaldo, On Thu, Jan 05, 2017 at 10:23:31PM -0800, Krister Johansen wrote: > If dso__load_kcore frees all of the existing maps, but one has already > been attached to a callchain cursor node, then we can get a SIGSEGV in > any function that happens to try to use this invalid cur

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2017-01-05 Thread Krister Johansen
On Wed, Jan 04, 2017 at 12:37:39AM -0800, Krister Johansen wrote: > On Mon, Jan 02, 2017 at 09:30:33PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 02, 2017 at 04:39:04PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Jan 02, 2017 at 02:36:57PM -0300, Arnald

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2017-01-05 Thread Krister Johansen
On Wed, Jan 04, 2017 at 12:37:39AM -0800, Krister Johansen wrote: > On Mon, Jan 02, 2017 at 09:30:33PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 02, 2017 at 04:39:04PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Jan 02, 2017 at 02:36:57PM -0300, Arnald

[PATCH v3 perf/core] perf script: fix a use after free crash.

2017-01-05 Thread Krister Johansen
iterates past the node. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/util/callchain.c | 11 +-- tools/perf/util/callchain.h | 6 ++ tools/perf/util/hist.c | 10 ++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/tools/per

[PATCH v3 perf/core] perf script: fix a use after free crash.

2017-01-05 Thread Krister Johansen
iterates past the node. Signed-off-by: Krister Johansen --- tools/perf/util/callchain.c | 11 +-- tools/perf/util/callchain.h | 6 ++ tools/perf/util/hist.c | 10 ++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2017-01-04 Thread Krister Johansen
On Mon, Jan 02, 2017 at 09:30:33PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jan 02, 2017 at 04:39:04PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Jan 02, 2017 at 02:36:57PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Jan 02, 2017 at 02:35:30PM -0300, Arnaldo Carvalho

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2017-01-04 Thread Krister Johansen
On Mon, Jan 02, 2017 at 09:30:33PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jan 02, 2017 at 04:39:04PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Jan 02, 2017 at 02:36:57PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Jan 02, 2017 at 02:35:30PM -0300, Arnaldo Carvalho

Re: [PATCH v4 0/3] perf: add support for analyzing events for containers

2017-01-04 Thread Krister Johansen
On Tue, Jan 03, 2017 at 04:57:54PM +0530, Hari Bathini wrote: > On Thursday 29 December 2016 07:11 AM, Krister Johansen wrote: > >On Fri, Dec 16, 2016 at 12:06:55AM +0530, Hari Bathini wrote: > >>This patch-set overcomes this limitation by using cgroup identifier as > >>

Re: [PATCH v4 0/3] perf: add support for analyzing events for containers

2017-01-04 Thread Krister Johansen
On Tue, Jan 03, 2017 at 04:57:54PM +0530, Hari Bathini wrote: > On Thursday 29 December 2016 07:11 AM, Krister Johansen wrote: > >On Fri, Dec 16, 2016 at 12:06:55AM +0530, Hari Bathini wrote: > >>This patch-set overcomes this limitation by using cgroup identifier as > >>

Re: [PATCH v4 0/3] perf: add support for analyzing events for containers

2016-12-28 Thread Krister Johansen
On Fri, Dec 16, 2016 at 12:06:55AM +0530, Hari Bathini wrote: > This patch-set overcomes this limitation by using cgroup identifier as > container unique identifier. A new PERF_RECORD_NAMESPACES event that > records namespaces related info is introduced, from which the cgroup > namespace's device

Re: [PATCH v4 0/3] perf: add support for analyzing events for containers

2016-12-28 Thread Krister Johansen
On Fri, Dec 16, 2016 at 12:06:55AM +0530, Hari Bathini wrote: > This patch-set overcomes this limitation by using cgroup identifier as > container unique identifier. A new PERF_RECORD_NAMESPACES event that > records namespaces related info is introduced, from which the cgroup > namespace's device

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-12-28 Thread Krister Johansen
Aborted (core dumped) > [root@jouet ~]# > > > I'll try to investigate this further later/tomorrow, find the updated patch > below. > > - Arnaldo > > commit af04d2c4a5d1f6bd7f4971118e4e1153cc7c2506 > Author: Krister Johansen <k...@tem

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-12-28 Thread Krister Johansen
Aborted (core dumped) > [root@jouet ~]# > > > I'll try to investigate this further later/tomorrow, find the updated patch > below. > > - Arnaldo > > commit af04d2c4a5d1f6bd7f4971118e4e1153cc7c2506 > Author: Krister Johansen > Date: Tue Oct

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-12-01 Thread Krister Johansen
Hey Arnaldo, On Tue, Nov 22, 2016 at 04:01:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 10, 2016 at 04:40:46PM -0800, Krister Johansen escreveu: > > Thanks. As part of processing this did you run into any problems? > > Would you like me to rebase against the latest p

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-12-01 Thread Krister Johansen
Hey Arnaldo, On Tue, Nov 22, 2016 at 04:01:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 10, 2016 at 04:40:46PM -0800, Krister Johansen escreveu: > > Thanks. As part of processing this did you run into any problems? > > Would you like me to rebase against the latest p

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-11-10 Thread Krister Johansen
On Wed, Oct 26, 2016 at 11:44:53AM -0200, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 25, 2016 at 05:20:10PM -0700, Krister Johansen escreveu: > > On Tue, Oct 11, 2016 at 02:28:39AM -0700, Krister Johansen wrote: > > > If dso__load_kcore frees all of the existing maps, b

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-11-10 Thread Krister Johansen
On Wed, Oct 26, 2016 at 11:44:53AM -0200, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 25, 2016 at 05:20:10PM -0700, Krister Johansen escreveu: > > On Tue, Oct 11, 2016 at 02:28:39AM -0700, Krister Johansen wrote: > > > If dso__load_kcore frees all of the existing maps, b

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-10-25 Thread Krister Johansen
On Tue, Oct 11, 2016 at 02:28:39AM -0700, Krister Johansen wrote: > If dso__load_kcore frees all of the existing maps, but one has already > been attached to a callchain cursor node, then we can get a SIGSEGV in > any function that happens to try to use this invalid cursor. Use the >

Re: [PATCH v2 perf/core] perf script: fix a use after free crash.

2016-10-25 Thread Krister Johansen
On Tue, Oct 11, 2016 at 02:28:39AM -0700, Krister Johansen wrote: > If dso__load_kcore frees all of the existing maps, but one has already > been attached to a callchain cursor node, then we can get a SIGSEGV in > any function that happens to try to use this invalid cursor. Use the >

Re: [PATCH v4 3/3] Make core_pattern support namespace

2016-10-25 Thread Krister Johansen
On Tue, Oct 25, 2016 at 03:28:56PM +0800, Cao Shufeng wrote: > From: Zhao Lei > It will bring us following benefit: > 1: Each container can change their own coredump setting >based on operation on /proc/sys/kernel/core_pattern > 2: Coredump setting changed in host will

Re: [PATCH v4 3/3] Make core_pattern support namespace

2016-10-25 Thread Krister Johansen
On Tue, Oct 25, 2016 at 03:28:56PM +0800, Cao Shufeng wrote: > From: Zhao Lei > It will bring us following benefit: > 1: Each container can change their own coredump setting >based on operation on /proc/sys/kernel/core_pattern > 2: Coredump setting changed in host will not affect >running

[PATCH v2 perf/core] perf script: fix a use after free crash.

2016-10-11 Thread Krister Johansen
iterates past the node. Signed-off-by: Krister Johansen <k...@templeofstupid.com> --- tools/perf/util/callchain.c | 13 +++-- tools/perf/util/callchain.h | 6 ++ tools/perf/util/hist.c | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/callcha

[PATCH v2 perf/core] perf script: fix a use after free crash.

2016-10-11 Thread Krister Johansen
iterates past the node. Signed-off-by: Krister Johansen --- tools/perf/util/callchain.c | 13 +++-- tools/perf/util/callchain.h | 6 ++ tools/perf/util/hist.c | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util

  1   2   >