What is the use of function size in linux kernel?
up vote
0
down vote
favorite
kernel oops shows info about RIP in the format of function() + offset/size but I have not found the 'size' info useful in debugging so far. As far as I know it is a static value defined by compiler/linker and has little to do with stack.
So in what situation would that be helpful or is it sort of redundant?
linux-kernel
add a comment |
up vote
0
down vote
favorite
kernel oops shows info about RIP in the format of function() + offset/size but I have not found the 'size' info useful in debugging so far. As far as I know it is a static value defined by compiler/linker and has little to do with stack.
So in what situation would that be helpful or is it sort of redundant?
linux-kernel
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
kernel oops shows info about RIP in the format of function() + offset/size but I have not found the 'size' info useful in debugging so far. As far as I know it is a static value defined by compiler/linker and has little to do with stack.
So in what situation would that be helpful or is it sort of redundant?
linux-kernel
kernel oops shows info about RIP in the format of function() + offset/size but I have not found the 'size' info useful in debugging so far. As far as I know it is a static value defined by compiler/linker and has little to do with stack.
So in what situation would that be helpful or is it sort of redundant?
linux-kernel
linux-kernel
asked Nov 8 at 6:12
luke
636
636
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41
add a comment |
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53202348%2fwhat-is-the-use-of-function-size-in-linux-kernel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you seen this post? The first is offset from the beginning of the function and the second is total length of the function. Do you need the explanation how knowing the length of a function can be useful?
– red0ct
Nov 8 at 7:34
Thanks and yes I have checked that. Any idea what is the use of function length? seems to me the offset + file symbol is good enough to root cause those issues.
– luke
Nov 9 at 5:41