SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Add live patching examples in C++ #195

Closed giulianobelinassi closed 1 year ago

giulianobelinassi commented 1 year ago

Libpulp provides livepatching capabilities that is general enough to support many programming languages, not only C. However, writing livepatches in a language that allows more abstractions may not be as straightfoward as in C.

To illustrate this we now provide the following examples in C++:

1-class: Show how C++ methods can be livepatched. 2-private_class: Show how private C++ functions can be livepatched. 3-indirect_call: Show how non-inlined private functions can be called from a livepatch to avoid code growth 4-global_var: Show how a private global variable can be accessed from a livepatch 5-queue: Show how template methods can be livepatched.