Skip to content

Commit

Permalink
libbpf-tools/profile: Remove unnecessary parameter
Browse files Browse the repository at this point in the history
Parameter freq of open_and_attach_perf_event is not in use.
So remove it.
  • Loading branch information
Bojun-Seo authored and yonghong-song committed Oct 20, 2024
1 parent 86d006a commit 4138cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbpf-tools/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state)

static int nr_cpus;

static int open_and_attach_perf_event(int freq, struct bpf_program *prog,
static int open_and_attach_perf_event(struct bpf_program *prog,
struct bpf_link *links[])
{
struct perf_event_attr attr = {
Expand Down Expand Up @@ -632,7 +632,7 @@ int main(int argc, char **argv)
goto cleanup;
}

err = open_and_attach_perf_event(env.freq, obj->progs.do_perf_event, links);
err = open_and_attach_perf_event(obj->progs.do_perf_event, links);
if (err)
goto cleanup;

Expand Down

0 comments on commit 4138cc4

Please sign in to comment.