Core Review - Added infrastructure to automatically generate field offsets for .S files

1 view
Skip to first unread message

Davide Libenzi

unread,
Dec 4, 2015, 8:17:43 PM12/4/15
to Akaros
Here is the proper code review for what posted previously.
It is missing the proper hooking into .S files. I can do that once Barrett changes touching those are in.

https://github.com/brho/akaros/compare/master...dlibenzi:asm_offsets

The following changes since commit 2fa42319139e4cc5ca853546363f84443d0ead00:

  Rename 'reallocarray' to 'kreallocarray'. (2015-11-25 18:02:04 -0500)

are available in the git repository at:

  g...@github.com:dlibenzi/akaros asm_offsets

for you to fetch changes up to 9d4814ec131f82e674be991eb2655755c09cfa24:

  Added ability to generate C structure offset definitions for asm files (2015-12-04 17:10:49 -0800)

----------------------------------------------------------------
Davide Libenzi (1):
      Added ability to generate C structure offset definitions for asm files

 Makefile                   | 12 +++++-
 kern/include/.gitignore    |  1 +
 kern/include/gen_offsets.h |  9 +++++
 kern/src/asm-offsets.c     | 59 ++++++++++++++++++++++++++++++
 scripts/gen_offsets        | 91 ++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 171 insertions(+), 1 deletion(-)
 create mode 100644 kern/include/.gitignore
 create mode 100644 kern/include/gen_offsets.h
 create mode 100644 kern/src/asm-offsets.c
 create mode 100755 scripts/gen_offsets

Davide Libenzi

unread,
Dec 8, 2015, 7:49:45 PM12/8/15
to Akaros
I did a small change to the script. If you are already done, or started, doesn't matter, as I can apply the diff later on.

Barret Rhoden

unread,
Dec 9, 2015, 12:18:31 PM12/9/15
to aka...@googlegroups.com
On 2015-12-08 at 16:49 "'Davide Libenzi' via Akaros"
<aka...@googlegroups.com> wrote:
> I did a small change to the script. If you are already done, or
> started, doesn't matter, as I can apply the diff later on.

I haven't started yet, so feel free to update this branch.

Barret

Davide Libenzi

unread,
Dec 9, 2015, 1:29:29 PM12/9/15
to Akaros
That was done yesterday. Branch is ready.
I also changed the open coded offset of field, to the offsetof() macro in common.


--
You received this message because you are subscribed to the Google Groups "Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akaros+un...@googlegroups.com.
To post to this group, send email to aka...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages