lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aEIR8SBXrV9PgQ0L@krava>
Date: Thu, 5 Jun 2025 23:53:53 +0200
From: Jiri Olsa <olsajiri@...il.com>
To: Tao Chen <chen.dylane@...ux.dev>
Cc: ast@...nel.org, daniel@...earbox.net, john.fastabend@...il.com,
	andrii@...nel.org, martin.lau@...ux.dev, eddyz87@...il.com,
	song@...nel.org, yonghong.song@...ux.dev, kpsingh@...nel.org,
	sdf@...ichev.me, haoluo@...gle.com, bpf@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH bpf-next] bpf: Add show_fdinfo for perf_event

On Thu, Jun 05, 2025 at 12:37:22AM +0800, Tao Chen wrote:

SNIP

> +static void bpf_perf_link_fdinfo_uprobe(const struct perf_event *event,
> +					struct seq_file *seq)
> +{
> +	const char *name;
> +	int err;
> +	u32 prog_id, type;
> +	u64 offset, addr;
> +	unsigned long missed;
> +
> +	err = bpf_get_perf_event_info(event, &prog_id, &type, &name,
> +				      &offset, &addr, &missed);

hi,
addr now gets ref_ctr_offset:
  823153334042 bpf: Add support to retrieve ref_ctr_offset for uprobe perf link

so let's display that

thanks,
jirka



> +	if (err)
> +		return;
> +
> +	if (type == BPF_FD_TYPE_URETPROBE)
> +		type = BPF_PERF_EVENT_URETPROBE;
> +	else
> +		type = BPF_PERF_EVENT_UPROBE;
> +
> +	seq_printf(seq,
> +		   "name:\t%s\n"
> +		   "offset:\t%llu\n"
> +		   "event_type:\t%u\n"
> +		   "cookie:\t%llu\n",
> +		   name, offset, type, event->bpf_cookie);
> +
> +}
>  #endif
>  

SNIP

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ