# patch **Repository Path**: yorifang/patch ## Basic Information - **Project Name**: patch - **Description**: No description available - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-11 - **Last Updated**: 2021-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This is a demo patch that tests libcare. ## 1. Make the patch ```bash # git clone https://gitee.com/yorifang/patch.git # make install DESTDIR=target # sudo libcare-patch-make --clean demo.patch ``` the patch file is then generated ```bash #ls patchroot 1 ↵ de6c5728d8cc566f1f8f3b267165a1fc65bf3301.kpatch ``` ## 2. Patch the target process Run the target exe ``` ./target/demo ``` And then patch and verify the libcare patch target. ```bash # libcare-ctl -v patch -p $(pidof demo) patchroot ``` ## 3. unpatch the target process ```bash # libcare-ctl -v unpatch -p $(pidof demo) ```