[PATCH] uprobe: Find last occurrence of ':' when parsing uprobe PATH:OFFSET

2017-01-13 Thread Kenny Yu
6 p:uprobes/p__root_testing_bash_with_colon_0x6 /root/testing/bash:with:colon:0x0006 Signed-off-by: Kenny Yu <kenn...@fb.com> Reviewed-by: Omar Sandoval <osan...@fb.com> --- kernel/trace/trace_uprobe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH] uprobe: Find last occurrence of ':' when parsing uprobe PATH:OFFSET

2017-01-13 Thread Kenny Yu
6 p:uprobes/p__root_testing_bash_with_colon_0x6 /root/testing/bash:with:colon:0x0006 Signed-off-by: Kenny Yu Reviewed-by: Omar Sandoval --- kernel/trace/trace_uprobe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trace/trace_uprobe.c b/

[PATCH] cgroup: Use lld instead of ld when printing pids controller events_limit

2016-06-21 Thread Kenny Yu
', but argument 3 has type 'long long int' [-Wformat=] seq_printf(sf, "max %ld\n", atomic64_read(>events_limit)); ^ Signed-off-by: Kenny Yu <kenn...@fb.com> --- kernel/cgroup_pids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] cgroup: Use lld instead of ld when printing pids controller events_limit

2016-06-21 Thread Kenny Yu
', but argument 3 has type 'long long int' [-Wformat=] seq_printf(sf, "max %ld\n", atomic64_read(>events_limit)); ^ Signed-off-by: Kenny Yu --- kernel/cgroup_pids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup_pi

Re: [PATCH v3] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
Thanks for the feedback Tejun! On 6/21/16, 1:12 PM, "Tejun Heo" <hte...@gmail.com on behalf of t...@kernel.org> wrote: >Hello, > >Just a couple nits. > >On Tue, Jun 21, 2016 at 09:56:38AM -0700, Kenny Yu wrote: >> Summary: > >No need for "Sum

Re: [PATCH v3] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
Thanks for the feedback Tejun! On 6/21/16, 1:12 PM, "Tejun Heo" wrote: >Hello, > >Just a couple nits. > >On Tue, Jun 21, 2016 at 09:56:38AM -0700, Kenny Yu wrote: >> Summary: > >No need for "Summary:" tag. > >> This patch adds more

[PATCH v4] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
controller. Signed-off-by: Kenny Yu <kenn...@fb.com> Acked-by: Johannes Weiner cmpxchg.org> --- kernel/cgroup_pids.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup_pids.c b/kernel/cgroup_pids.c index b93cbe3..bd249

[PATCH v4] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
controller. Signed-off-by: Kenny Yu Acked-by: Johannes Weiner cmpxchg.org> --- kernel/cgroup_pids.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup_pids.c b/kernel/cgroup_pids.c index b93cbe3..bd2490b 100644 --- a/ker

[PATCH v3] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu <kenn...@fb.

[PATCH v3] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu Acked

[PATCH v2] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu <kenn...@fb.

[PATCH v2] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-21 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu Acked

[PATCH] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-20 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu <kenn...@fb.

[PATCH] cgroup: Add pids controller event when fork fails because of pid limit

2016-06-20 Thread Kenny Yu
in the events file represents the number of times fork failed because of the pids controller. This change also adds an atomic boolean to prevent logging too much (e.g. a fork bomb). The message is logged once per cgroup until the next time the pids limit changes. Signed-off-by: Kenny Yu --- kernel