Lines Matching refs:cs
43 callstack_sample( struct callstack *cs,
59 cs->flags = 0;
62 cs->flags |= CALLSTACK_KERNEL;
64 cs->flags |= CALLSTACK_64BIT;
75 cs->frames,
82 cs->flags |= CALLSTACK_VALID;
83 cs->nframes = nframes;
88 cs->flags |= CALLSTACK_TRUNCATED;
89 cs->flags |= CALLSTACK_VALID;
90 cs->nframes = nframes;
95 cs->nframes = 0;
98 if( cs->nframes >= MAX_CALLSTACK_FRAMES )
102 cs->nframes = 0;
108 kperf_kcallstack_sample( struct callstack *cs, struct kperf_context *context )
110 callstack_sample( cs, context, 0 );
114 kperf_ucallstack_sample( struct callstack *cs, struct kperf_context *context )
116 callstack_sample( cs, context, 1 );
120 callstack_log( struct callstack *cs, uint32_t code )
125 BUF_DATA2( code, cs->flags, cs->nframes );
128 n = cs->nframes / 4;
129 of = cs->nframes % 4;
136 #define SCRUB_FRAME(x) (((x)<cs->nframes)?cs->frames[x]:0)
148 kperf_kcallstack_log( struct callstack *cs )
150 callstack_log( cs, PERF_CS_KDATA );
154 kperf_ucallstack_log( struct callstack *cs )
156 callstack_log( cs, PERF_CS_UDATA );