[PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c

Masanari Iida posted 1 patch 4 years, 6 months ago
tools/perf/util/bpf_counter_cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c
Posted by Masanari Iida 4 years, 6 months ago
This patch fixes a spelling typo in error message.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 tools/perf/util/bpf_counter_cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/bpf_counter_cgroup.c b/tools/perf/util/bpf_counter_cgroup.c
index cbc6c2bca488..fea5f2ca03f6 100644
--- a/tools/perf/util/bpf_counter_cgroup.c
+++ b/tools/perf/util/bpf_counter_cgroup.c
@@ -266,7 +266,7 @@ static int bperf_cgrp__read(struct evsel *evsel)
 		idx = evsel->core.idx;
 		err = bpf_map_lookup_elem(reading_map_fd, &idx, values);
 		if (err) {
-			pr_err("bpf map lookup falied: idx=%u, event=%s, cgrp=%s\n",
+			pr_err("bpf map lookup failed: idx=%u, event=%s, cgrp=%s\n",
 			       idx, evsel__name(evsel), evsel->cgrp->name);
 			goto out;
 		}
-- 
2.25.0

Re: [PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c
Posted by Namhyung Kim 4 years, 6 months ago
Hello,

On Fri, Dec 24, 2021 at 4:57 PM Masanari Iida <standby24x7@gmail.com> wrote:
>
> This patch fixes a spelling typo in error message.
>
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>

Acked-by: Namhyung Kim <namhyung@kernel.org>

Thanks,
Namhyung


> ---
>  tools/perf/util/bpf_counter_cgroup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/bpf_counter_cgroup.c b/tools/perf/util/bpf_counter_cgroup.c
> index cbc6c2bca488..fea5f2ca03f6 100644
> --- a/tools/perf/util/bpf_counter_cgroup.c
> +++ b/tools/perf/util/bpf_counter_cgroup.c
> @@ -266,7 +266,7 @@ static int bperf_cgrp__read(struct evsel *evsel)
>                 idx = evsel->core.idx;
>                 err = bpf_map_lookup_elem(reading_map_fd, &idx, values);
>                 if (err) {
> -                       pr_err("bpf map lookup falied: idx=%u, event=%s, cgrp=%s\n",
> +                       pr_err("bpf map lookup failed: idx=%u, event=%s, cgrp=%s\n",
>                                idx, evsel__name(evsel), evsel->cgrp->name);
>                         goto out;
>                 }
> --
> 2.25.0
>
Re: [PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c
Posted by Arnaldo Carvalho de Melo 4 years, 4 months ago
Em Tue, Dec 28, 2021 at 10:25:08AM -0800, Namhyung Kim escreveu:
> Hello,
> 
> On Fri, Dec 24, 2021 at 4:57 PM Masanari Iida <standby24x7@gmail.com> wrote:
> >
> > This patch fixes a spelling typo in error message.
> >
> > Signed-off-by: Masanari Iida <standby24x7@gmail.com>
> 
> Acked-by: Namhyung Kim <namhyung@kernel.org>
> 
> Thanks,
> Namhyung

Thanks, applied.

- Arnaldo

 
> 
> > ---
> >  tools/perf/util/bpf_counter_cgroup.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/perf/util/bpf_counter_cgroup.c b/tools/perf/util/bpf_counter_cgroup.c
> > index cbc6c2bca488..fea5f2ca03f6 100644
> > --- a/tools/perf/util/bpf_counter_cgroup.c
> > +++ b/tools/perf/util/bpf_counter_cgroup.c
> > @@ -266,7 +266,7 @@ static int bperf_cgrp__read(struct evsel *evsel)
> >                 idx = evsel->core.idx;
> >                 err = bpf_map_lookup_elem(reading_map_fd, &idx, values);
> >                 if (err) {
> > -                       pr_err("bpf map lookup falied: idx=%u, event=%s, cgrp=%s\n",
> > +                       pr_err("bpf map lookup failed: idx=%u, event=%s, cgrp=%s\n",
> >                                idx, evsel__name(evsel), evsel->cgrp->name);
> >                         goto out;
> >                 }
> > --
> > 2.25.0
> >

-- 

- Arnaldo