tracing/kprobes: Use bool for retprobe checker
[deliverable/linux.git] / kernel / trace / trace_kprobe.c
index 1865d5f765387f55600d063a633e6a7e79bcae3c..0b7386a54b1efde65183ba46d7cca981702023f7 100644 (file)
@@ -46,7 +46,7 @@ struct trace_probe {
        (sizeof(struct probe_arg) * (n)))
 
 
-static __kprobes int trace_probe_is_return(struct trace_probe *tp)
+static __kprobes bool trace_probe_is_return(struct trace_probe *tp)
 {
        return tp->rp.handler != NULL;
 }
@@ -767,6 +767,8 @@ static __kprobes void kretprobe_trace_func(struct kretprobe_instance *ri,
        unsigned long irq_flags;
        struct ftrace_event_call *call = &tp->call;
 
+       tp->nhit++;
+
        local_save_flags(irq_flags);
        pc = preempt_count();
 
This page took 0.024186 seconds and 5 git commands to generate.