public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [Question] How can I get floating point registers on arm64
@ 2023-03-02 19:05 Grant Seltzer Richman
  2023-03-08  0:28 ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Seltzer Richman @ 2023-03-02 19:05 UTC (permalink / raw)
  To: bpf

Hi everyone,

I'm writing a uprobe program that I'm attaching to a function in a go
program on arm64. The function takes a float and as such loads the
parameters via 64-bit floating point registers i.e. `D0`.

However, the struct pt_regs context that uprobe programs have access
to only has a single set of 31 64-bit registers. These appear to be
the regular general purpose integer registers. My question is - how do
I access the second set of registers? If this question doesn't make
sense, am I misunderstanding how arm64 works?

Thanks so much,
Grant

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-09 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-02 19:05 [Question] How can I get floating point registers on arm64 Grant Seltzer Richman
2023-03-08  0:28 ` Andrii Nakryiko
2023-03-08 14:20   ` Grant Seltzer Richman
2023-03-09  3:54     ` Dave Marchevsky
2023-03-09 18:36       ` Grant Seltzer Richman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox