发明名称 Selective logging of network requests based on subsets of the program that were executed
摘要 In an embodiment, in response to detecting a request by a program to access a network, if the request is the first time that the program requests to access the network, a subset of instructions is replaced in the program with supervisor call instructions. The supervisor call instructions cause respective interrupts of execution of the program. In response to each of the respective interrupts of execution of the program, the supervisor call instructions that caused the respective interrupts are replaced with the respective swapped instructions, and if a number of the respective interrupts of execution exceed a trap threshold, all remaining of the respective swapped instructions are stored to the program.
申请公布号 US8966068(B2) 申请公布日期 2015.02.24
申请号 US201313741688 申请日期 2013.01.15
申请人 International Business Machines Corporation 发明人 Bates Cary L.;Helgeson Lee Nee;King Justin K.;Schlicht Michelle A.
分类号 G06F15/16;H04L29/08 主分类号 G06F15/16
代理机构 代理人 Gamon Owen J.
主权项 1. A method comprising: in response to detecting a request by a program to access a network, if the request is a first time that the program requests to access the network, replacing a subset of instructions in the program with supervisor call instructions and saving the subset of instructions as respective swapped instructions, wherein the supervisor call instructions cause respective interrupts of execution of the program; if a number of network accesses requested by the program is less than a first network threshold, performing complete logging of the request; and in response to each of the respective interrupts of execution of the program, replacing the supervisor call instructions that caused the respective interrupts with the respective swapped instructions and if a number of the respective interrupts of execution exceed a trap threshold, storing all remaining of the respective swapped instructions to the program.
地址 Armonk NY US