2022-12-27 16:15:04

by Thomas Weißschuh

[permalink] [raw]
Subject: [PATCH v2 7/8] objtool: optimize layout of struct special_alt

Reduce the size of struct special_alt from 72 to 64 bytes.

Signed-off-by: Thomas Weißschuh <[email protected]>
---
tools/objtool/include/objtool/special.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/include/objtool/special.h b/tools/objtool/include/objtool/special.h
index dc4721e19002..86d4af9c5aa9 100644
--- a/tools/objtool/include/objtool/special.h
+++ b/tools/objtool/include/objtool/special.h
@@ -19,6 +19,7 @@ struct special_alt {
bool skip_orig;
bool skip_alt;
bool jump_or_nop;
+ u8 key_addend;

struct section *orig_sec;
unsigned long orig_off;
@@ -27,7 +28,6 @@ struct special_alt {
unsigned long new_off;

unsigned int orig_len, new_len; /* group only */
- u8 key_addend;
};

int special_get_alts(struct elf *elf, struct list_head *alts);

--
2.39.0


2023-02-01 16:26:39

by tip-bot2 for Haifeng Xu

[permalink] [raw]
Subject: [tip: objtool/core] objtool: Optimize layout of struct special_alt

The following commit has been merged into the objtool/core branch of tip:

Commit-ID: 391e6d2abd652b460d9017b2f8a8ded508c09558
Gitweb: https://git.kernel.org/tip/391e6d2abd652b460d9017b2f8a8ded508c09558
Author: Thomas Weißschuh <[email protected]>
AuthorDate: Tue, 27 Dec 2022 16:01:03
Committer: Josh Poimboeuf <[email protected]>
CommitterDate: Mon, 30 Jan 2023 16:28:20 -08:00

objtool: Optimize layout of struct special_alt

Reduce the size of struct special_alt from 72 to 64 bytes.

Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Josh Poimboeuf <[email protected]>
---
tools/objtool/include/objtool/special.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/include/objtool/special.h b/tools/objtool/include/objtool/special.h
index dc4721e..86d4af9 100644
--- a/tools/objtool/include/objtool/special.h
+++ b/tools/objtool/include/objtool/special.h
@@ -19,6 +19,7 @@ struct special_alt {
bool skip_orig;
bool skip_alt;
bool jump_or_nop;
+ u8 key_addend;

struct section *orig_sec;
unsigned long orig_off;
@@ -27,7 +28,6 @@ struct special_alt {
unsigned long new_off;

unsigned int orig_len, new_len; /* group only */
- u8 key_addend;
};

int special_get_alts(struct elf *elf, struct list_head *alts);

2023-02-04 10:17:43

by tip-bot2 for Haifeng Xu

[permalink] [raw]
Subject: [tip: objtool/core] objtool: Optimize layout of struct special_alt

The following commit has been merged into the objtool/core branch of tip:

Commit-ID: a20717aca33b1ff133f513721050fe6c3d7f97b5
Gitweb: https://git.kernel.org/tip/a20717aca33b1ff133f513721050fe6c3d7f97b5
Author: Thomas Weißschuh <[email protected]>
AuthorDate: Tue, 27 Dec 2022 16:01:03
Committer: Josh Poimboeuf <[email protected]>
CommitterDate: Wed, 01 Feb 2023 09:15:24 -08:00

objtool: Optimize layout of struct special_alt

Reduce the size of struct special_alt from 72 to 64 bytes.

Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Josh Poimboeuf <[email protected]>
---
tools/objtool/include/objtool/special.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/include/objtool/special.h b/tools/objtool/include/objtool/special.h
index dc4721e..86d4af9 100644
--- a/tools/objtool/include/objtool/special.h
+++ b/tools/objtool/include/objtool/special.h
@@ -19,6 +19,7 @@ struct special_alt {
bool skip_orig;
bool skip_alt;
bool jump_or_nop;
+ u8 key_addend;

struct section *orig_sec;
unsigned long orig_off;
@@ -27,7 +28,6 @@ struct special_alt {
unsigned long new_off;

unsigned int orig_len, new_len; /* group only */
- u8 key_addend;
};

int special_get_alts(struct elf *elf, struct list_head *alts);