Skip to content

Commit

Permalink
Removed unused ptr_to_u64() function
Browse files Browse the repository at this point in the history
ptr_to_u64() was added in commit 5ab53fa "Add support for multi
kprobe", but was not used anywhere. Clean up attached_probe.cpp by
removing ptr_to_u64().

Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
  • Loading branch information
shunghsiyu authored and viktormalik committed Dec 14, 2023
1 parent bd048dc commit 1772c21
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/attached_probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,11 +909,6 @@ void AttachedProbe::load_prog(BPFfeature &feature)
cache_progfd();
}

static inline uint64_t ptr_to_u64(const void *ptr)
{
return (uint64_t)(unsigned long)ptr;
}

void AttachedProbe::attach_multi_kprobe(void)
{
DECLARE_LIBBPF_OPTS(bpf_link_create_opts, opts);
Expand Down

0 comments on commit 1772c21

Please sign in to comment.