get_page_size

Ákos Uzonyi uzonyi.akos at gmail.com
Mon Jun 15 21:06:25 UTC 2020


On Mon, 15 Jun 2020 at 22:05, Bran S <archsbran at gmail.com> wrote:
> Thanks for the explanation, makes sense now.
> One last query, I see that get_page_size() is being called at 25 places.
> What is the reason to not make it a global variable and save all this?
> A design choice?

In C you cannot initialize a global variable by a function call
expression. You would have to initialize the variable manually in all
tests, which is tiresome and error prone.


More information about the Strace-devel mailing list