2021-12-25 00:57:04

by Masanari Iida

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

This patch fixes a spelling typo in error message.

Signed-off-by: Masanari Iida <[email protected]>
---
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



2021-12-28 18:25:30

by Namhyung Kim

[permalink] [raw]
Subject: Re: [PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c

Hello,

On Fri, Dec 24, 2021 at 4:57 PM Masanari Iida <[email protected]> wrote:
>
> This patch fixes a spelling typo in error message.
>
> Signed-off-by: Masanari Iida <[email protected]>

Acked-by: Namhyung Kim <[email protected]>

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
>

2022-02-09 07:14:18

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: [PATCH] perf bpf: Fix a typo in bpf_counter_cgroup.c

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 <[email protected]> wrote:
> >
> > This patch fixes a spelling typo in error message.
> >
> > Signed-off-by: Masanari Iida <[email protected]>
>
> Acked-by: Namhyung Kim <[email protected]>
>
> 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