kprobes.c (353816f43d1fb340ff2d9a911dd5d0799c09f6a5) | kprobes.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* arch/sparc64/kernel/kprobes.c 2 * 3 * Copyright (C) 2004 David S. Miller <davem@davemloft.net> 4 */ 5 6#include <linux/kernel.h> 7#include <linux/kprobes.h> 8#include <linux/module.h> --- 503 unchanged lines hidden (view full) --- 512 unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline; 513 514 INIT_HLIST_HEAD(&empty_rp); 515 kretprobe_hash_lock(current, &head, &flags); 516 517 /* 518 * It is possible to have multiple instances associated with a given 519 * task either because an multiple functions in the call path | 1/* arch/sparc64/kernel/kprobes.c 2 * 3 * Copyright (C) 2004 David S. Miller <davem@davemloft.net> 4 */ 5 6#include <linux/kernel.h> 7#include <linux/kprobes.h> 8#include <linux/module.h> --- 503 unchanged lines hidden (view full) --- 512 unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline; 513 514 INIT_HLIST_HEAD(&empty_rp); 515 kretprobe_hash_lock(current, &head, &flags); 516 517 /* 518 * It is possible to have multiple instances associated with a given 519 * task either because an multiple functions in the call path |
520 * have a return probe installed on them, and/or more then one return | 520 * have a return probe installed on them, and/or more than one return |
521 * return probe was registered for a target function. 522 * 523 * We can handle this because: 524 * - instances are always inserted at the head of the list 525 * - when multiple return probes are registered for the same 526 * function, the first instance's ret_addr will point to the 527 * real return address, and all the rest will point to 528 * kretprobe_trampoline --- 65 unchanged lines hidden --- | 521 * return probe was registered for a target function. 522 * 523 * We can handle this because: 524 * - instances are always inserted at the head of the list 525 * - when multiple return probes are registered for the same 526 * function, the first instance's ret_addr will point to the 527 * real return address, and all the rest will point to 528 * kretprobe_trampoline --- 65 unchanged lines hidden --- |