How to instrument an initcall?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want to insert an initcall in a given program. The initcall should be executed
before any real computation starts. For example, given program as
main () {
  ...
}

I would like to transform to
main () {
  my_initcall();
}

I know how to add a call instruction in gimple tree but I am not sure
how to insert
the call inst into the right place. Any suggestion?

Thank

Haifeng

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux