linux/kernel/trace/trace_nop.c
<<
>>
< Prefs
<
   1/*
   2 * nop tracer
   3 *
   4 * Copyright (C) 2008 Steven Noonan <steven@uplinklabs.net>
   5 *
   6 */
   7
   8#include <linux/module.h>
   9#include <linux/fs.h>
  10#include <linux/debugfs.h>
  11#include <linux/ftrace.h>
  12
  13#include "trace.h"
  14
  15/* Our two options */
  16enum {
  17        TRACE_NOP_OPT_ACCEPT = 0x1,
  18        TRACE_NOP_OPT_REFUSE = 0x2
  19};
  20
  21/* Options for the tracer (see trace_options file) */
  22static struct tracer_opt nop_opts[] = {
  23        /* Option that will be ascepted by set_flag callback */
  24        { TRACER_OPT(test_nop_ascept, TRACE_NOP_OPT_ACCEPT) },
  25        /* Option that will be refused by set_flag callback */
  26        { TRACER_OPT(test_nop_refuse, TRACE_NOP_OPT_REFUSE) },
  27        { } /* Always set a last empty entry */
  28};
  29
  30static struct tracer_flags nop_flags = {
  31        /* You can check your flags value here when you want. */
  32        ..6.4A0.P"L32">  3A="line" name="L3sref">.6.4A0.P"L32">  3A="line" name="L3sr2ult: l/t */
   3comme33 class="sref">.6.4A0.P"L32">] = {
nop_opts[] = {
  243/a>        {   253/a>          263/a>        { tracer_fla_arraytracectx_nop_f  273/a>        { }   283/a>};
tracecerr=TRACEnop_ftracer_fla_arraytracetr  293/a>
  304/a>static struct /* You can check your flags value hNothing to do!  314/a>        /*}.c#L32" id="L32" class="line" name="432">  324/a>        .   3traceceACERACEnop_ftracer_fla_arraytracetr   4ode=T44_nopp.c#L31" id="L31" class="line" name="425">  254/a>        /* Option that will be refused by sNothing to do!  264/a>        { /*}.c#L32" id="L32" class="line" name="427">  274/a>        { }   284/a>};
traceRACEnop_f_ini/a>, tracer_fla_arraytracetr  294/a>
  305/a>static struct /* You can s="sref">tracectx_nop_fnop_opts  315/a>        /* You can s="sref">tracecerr=TRACEnop_ftracetr  325/a>        .   3/*}.c#L32" id="L32" class="line" name="5">   4   5comme55=tracer_flavoidass="sref">traceRACEnop_f_rese/a>, tracer_fla_arraytracetr  265/a>        {   275/a>        { } tracetr  285/a>};
/*}.c#L32" id="L32" class="line" name="529">  295/a>
  306/a>static struct   316/a>         tle) se/ting of a */  326/a>        .   3
   4   5traceRACEref="kera>, traceu       ef="+cul" clas>.6.4A0.P"L32">]lda> = {
.6.4A0.P"L32">bi/a>, tracese/a>,    6ode=T66_nopp.c#L31" id="L31" class="line" name="627">  276/a>        { }   286/a>};
  296/a>
  307/a>static struct   317/a>        /* You canifr ss="sref">tracebi/a>, nop_optsTRACE_NOP_OPT_ACCEPT) },
  327/a>        .traceKERN_DEBUGEPT) },
for the tracgs"ing"ace_nopRACEnde=T   3   4tracese/a>,    5   6   7
  287/a>};
/* You canifr ss="sref">tracebi/a>, nop_optsTRACE_NOP_OPT_REFUSE) },
  297/a>
traceKERN_DEBUGEPT) },
for the tracgs"ing"ace_nopRACEnde=T/span> "kernse/ to %d: w*//span>.e.h" clce_nop.c#L7" id="L7" class="line" name="L7830">  308/a>static struct   318/a>        tracese/a>,   328/a>        .traceEINVALa>,    3   4   5   6/*}.c#L32" id="L32" class="line" name="8">   7
   8#include <  298/a>
tracer_flagnop_flagsnop_flag_T/sad_mostly  309/a>static struct   319/a>        .6.4A0.P"L32"> clafor the tracgs"ing"ace_nopRACe.h" clce_nopp.c#L27" id="L27" class="line" name="932">  329/a>        ..6.4A0.P"L32">ini/a>, traceRACEnop_f_ini/a>,    3.6.4A0.P"L32">rese/a>, traceRACEnop_f_rese/a>,    4.6.4A0.P"L32">wait_pipas="sref">tracepoll_wait_pipa   5s="sref">traceCONFIG_Fhref="SELFTESCEPT) },
   6.6.4A0.P"L32">selfnde=a>, nop_opts   7
   8#include <.6.4A0.P"L32">> = {
s="sref">traceRACE> = {
   9#include <.6.4A0.P"L32">sef="kera>, s="sref">traceRACEref="kera>,   10#include <  11<0/a>#include <  12<0/a>
LXR er (uni/yPT_ACCn" n experi(seeal versflaga hc#L10" idmai/to:s/l@#L27" id="L27" cla 12<0/1">" cla 12<0/1(see. hrefootg<>
Te) origsubinal LXR " c.a 12<0/1 kindly h id/traceourceforgetrac/pwww.redpill-a 1 er0/1">Redpill L 1 er AS(seeal erviderp.c#L 12<" nnopp.t auace_oagaa/s="col haicecolince 1995. hrefootag/bodyotg/html