Ejemplo n.º 1
0
static int
reset_file_open(struct inode *inode, struct file *filp)
{
    if((filp->f_flags & O_ACCMODE) != O_RDONLY)
    {
        struct trace_file* trace_file =
            (struct trace_file*)inode->i_private;
        trace_file_reset(trace_file);
    }
    return nonseekable_open(inode, filp);
}
Ejemplo n.º 2
0
/*
 * Unregister pretty print for data.
 * Clean all data from the trace.
 */
void kedr_trace_pp_unregister(void)
{
    trace_file_reset(trace_file);
}
Ejemplo n.º 3
0
/*
 * Unregister pretty print for data.
 * Clean all data from the trace.
 */
void granary_trace_pp_unregister(void)
{
    trace_file_reset(trace_file);
}