* RISC-V: sys/user.h [not found] <CGME20221209163647eucas1p226b7c480e55c23c51176d610b2adae66@eucas1p2.samsung.com> @ 2022-12-09 16:36 ` Lukasz Stelmach 2022-12-09 17:07 ` Palmer Dabbelt 0 siblings, 1 reply; 5+ messages in thread From: Lukasz Stelmach @ 2022-12-09 16:36 UTC (permalink / raw) To: libc-alpha, andrew, palmer; +Cc: Mateusz Moscicki [-- Attachment #1: Type: text/plain, Size: 263 bytes --] Hi, Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register structures defined there? Kind regards, -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RISC-V: sys/user.h 2022-12-09 16:36 ` RISC-V: sys/user.h Lukasz Stelmach @ 2022-12-09 17:07 ` Palmer Dabbelt [not found] ` <CGME20221209213619eucas1p19f6cdc951c8071488cf12ca618911504@eucas1p1.samsung.com> 0 siblings, 1 reply; 5+ messages in thread From: Palmer Dabbelt @ 2022-12-09 17:07 UTC (permalink / raw) To: l.stelmach; +Cc: libc-alpha, Andrew Waterman, m.moscicki2 On Fri, 09 Dec 2022 08:36:33 PST (-0800), l.stelmach@samsung.com wrote: > Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left > empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register > structures defined there? We don't have a "struct user_regs_struct", IIUC that's for the old flavor of ptrace-based register handling ({GET,SET}REGS vs {GET,SET}REGSET). So I think having it empty is the correct thing to do. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CGME20221209213619eucas1p19f6cdc951c8071488cf12ca618911504@eucas1p1.samsung.com>]
* Re: RISC-V: sys/user.h [not found] ` <CGME20221209213619eucas1p19f6cdc951c8071488cf12ca618911504@eucas1p1.samsung.com> @ 2022-12-09 21:36 ` Lukasz Stelmach 2022-12-10 0:26 ` Palmer Dabbelt 0 siblings, 1 reply; 5+ messages in thread From: Lukasz Stelmach @ 2022-12-09 21:36 UTC (permalink / raw) To: Palmer Dabbelt; +Cc: libc-alpha, Andrew Waterman, m.moscicki2 [-- Attachment #1: Type: text/plain, Size: 673 bytes --] It was <2022-12-09 pią 09:07>, when Palmer Dabbelt wrote: > On Fri, 09 Dec 2022 08:36:33 PST (-0800), l.stelmach@samsung.com wrote: >> Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left >> empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register >> structures defined there? > > We don't have a "struct user_regs_struct", IIUC that's for the old > flavor of ptrace-based register handling ({GET,SET}REGS vs > {GET,SET}REGSET). So I think having it empty is the correct thing to > do. Thanks, this is a precious hint. Now, I know where to look around. -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RISC-V: sys/user.h 2022-12-09 21:36 ` Lukasz Stelmach @ 2022-12-10 0:26 ` Palmer Dabbelt [not found] ` <CGME20221213170125eucas1p1762e0d6aa0b65bbd3d9f7ad2ce31a590@eucas1p1.samsung.com> 0 siblings, 1 reply; 5+ messages in thread From: Palmer Dabbelt @ 2022-12-10 0:26 UTC (permalink / raw) To: l.stelmach; +Cc: libc-alpha, Andrew Waterman, m.moscicki2 On Fri, 09 Dec 2022 13:36:05 PST (-0800), l.stelmach@samsung.com wrote: > It was <2022-12-09 pią 09:07>, when Palmer Dabbelt wrote: >> On Fri, 09 Dec 2022 08:36:33 PST (-0800), l.stelmach@samsung.com wrote: >>> Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left >>> empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register >>> structures defined there? >> >> We don't have a "struct user_regs_struct", IIUC that's for the old >> flavor of ptrace-based register handling ({GET,SET}REGS vs >> {GET,SET}REGSET). So I think having it empty is the correct thing to >> do. > > > Thanks, this is a precious hint. Now, I know where to look around. Those definitions are in <sysdeps/unix/sysv/linux/riscv/sys/ucontext.h> (and also in Linux). ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CGME20221213170125eucas1p1762e0d6aa0b65bbd3d9f7ad2ce31a590@eucas1p1.samsung.com>]
* Re: RISC-V: sys/user.h [not found] ` <CGME20221213170125eucas1p1762e0d6aa0b65bbd3d9f7ad2ce31a590@eucas1p1.samsung.com> @ 2022-12-13 17:01 ` Lukasz Stelmach 0 siblings, 0 replies; 5+ messages in thread From: Lukasz Stelmach @ 2022-12-13 17:01 UTC (permalink / raw) To: Palmer Dabbelt; +Cc: libc-alpha, Andrew Waterman, m.moscicki2 [-- Attachment #1: Type: text/plain, Size: 1391 bytes --] It was <2022-12-09 pią 16:26>, when Palmer Dabbelt wrote: > On Fri, 09 Dec 2022 13:36:05 PST (-0800), l.stelmach@samsung.com wrote: >> It was <2022-12-09 pią 09:07>, when Palmer Dabbelt wrote: >>> On Fri, 09 Dec 2022 08:36:33 PST (-0800), l.stelmach@samsung.com wrote: >>>> Has sysdeps/unix/sysv/linux/riscv/sys/user.h been deliberately left >>>> empty? Why, unlike x86/aarch64/arm, riscv haven't got it's register >>>> structures defined there? >>> >>> We don't have a "struct user_regs_struct", IIUC that's for the old >>> flavor of ptrace-based register handling ({GET,SET}REGS vs >>> {GET,SET}REGSET). So I think having it empty is the correct thing >>> to do. >> >> >> Thanks, this is a precious hint. Now, I know where to look around. > > Those definitions are in > <sysdeps/unix/sysv/linux/riscv/sys/ucontext.h> I missed this one > (and also in Linux). but found this <asm/ptrace.h>. It's not that we didn't have these definitions at all, but because we'are building a small tool that we want to run on different architectures, we're looking into how to access the regiester data in core dumps (we need to read one or two values) without lengthy #if#elifs around the code and includes. We just want this tiny piece of code of ours to be noice (-; Thanks for help (-: -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-13 17:01 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CGME20221209163647eucas1p226b7c480e55c23c51176d610b2adae66@eucas1p2.samsung.com> 2022-12-09 16:36 ` RISC-V: sys/user.h Lukasz Stelmach 2022-12-09 17:07 ` Palmer Dabbelt [not found] ` <CGME20221209213619eucas1p19f6cdc951c8071488cf12ca618911504@eucas1p1.samsung.com> 2022-12-09 21:36 ` Lukasz Stelmach 2022-12-10 0:26 ` Palmer Dabbelt [not found] ` <CGME20221213170125eucas1p1762e0d6aa0b65bbd3d9f7ad2ce31a590@eucas1p1.samsung.com> 2022-12-13 17:01 ` Lukasz Stelmach
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).