static __init int init_schk(void) { printk("Hello\n"); // // Settting up kprobes; // jp.kp.symbol_name = "fb_set_var"; jp.entry= JPROBE_ENTRY(jp_fb_set_var); register_jprobe(&jp); jp0.kp.symbol_name = "fb_ioctl"; jp0.entry= JPROBE_ENTRY(jp_fb_ioctl); register_jprobe(&jp0); return 0; }
NIPQUAD(inet->saddr), ntohs(inet->sport), NIPQUAD(inet->daddr), ntohs(inet->dport), size, tp->snd_nxt, tp->snd_una, tp->snd_cwnd, tcp_current_ssthresh(sk), tp->snd_wnd); } jprobe_return(); return 0; } static struct jprobe tcp_send_probe = { .kp = { .symbol_name = "tcp_sendmsg", }, .entry = JPROBE_ENTRY(jtcp_sendmsg), }; static int tcpprobe_open(struct inode * inode, struct file * file) { kfifo_reset(tcpw.fifo); do_gettimeofday(&tcpw.tstart); return 0; } static ssize_t tcpprobe_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) { int error = 0, cnt = 0; unsigned char *tbuf;