afs.h (025db80c9e421efef11f2b83b7f78a11476f06db) afs.h (2c099014a0a456012c1778e80adce839bf956b77)
1/* AFS tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 306 unchanged lines hidden (view full) ---

315
316 TP_printk(" c=%p ret=%d ab=%d [%p]",
317 __entry->call,
318 __entry->ret,
319 __entry->abort_code,
320 __entry->rx_call)
321 );
322
1/* AFS tracepoints
2 *
3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version

--- 306 unchanged lines hidden (view full) ---

315
316 TP_printk(" c=%p ret=%d ab=%d [%p]",
317 __entry->call,
318 __entry->ret,
319 __entry->abort_code,
320 __entry->rx_call)
321 );
322
323TRACE_EVENT(afs_send_pages,
324 TP_PROTO(struct afs_call *call, struct msghdr *msg,
325 pgoff_t first, pgoff_t last, unsigned int offset),
326
327 TP_ARGS(call, msg, first, last, offset),
328
329 TP_STRUCT__entry(
330 __field(struct afs_call *, call )
331 __field(pgoff_t, first )
332 __field(pgoff_t, last )
333 __field(unsigned int, nr )
334 __field(unsigned int, bytes )
335 __field(unsigned int, offset )
336 __field(unsigned int, flags )
337 ),
338
339 TP_fast_assign(
340 __entry->call = call;
341 __entry->first = first;
342 __entry->last = last;
343 __entry->nr = msg->msg_iter.nr_segs;
344 __entry->bytes = msg->msg_iter.count;
345 __entry->offset = offset;
346 __entry->flags = msg->msg_flags;
347 ),
348
349 TP_printk(" c=%p %lx-%lx-%lx b=%x o=%x f=%x",
350 __entry->call,
351 __entry->first, __entry->first + __entry->nr - 1, __entry->last,
352 __entry->bytes, __entry->offset,
353 __entry->flags)
354 );
355
356TRACE_EVENT(afs_sent_pages,
357 TP_PROTO(struct afs_call *call, pgoff_t first, pgoff_t last,
358 pgoff_t cursor, int ret),
359
360 TP_ARGS(call, first, last, cursor, ret),
361
362 TP_STRUCT__entry(
363 __field(struct afs_call *, call )
364 __field(pgoff_t, first )
365 __field(pgoff_t, last )
366 __field(pgoff_t, cursor )
367 __field(int, ret )
368 ),
369
370 TP_fast_assign(
371 __entry->call = call;
372 __entry->first = first;
373 __entry->last = last;
374 __entry->cursor = cursor;
375 __entry->ret = ret;
376 ),
377
378 TP_printk(" c=%p %lx-%lx c=%lx r=%d",
379 __entry->call,
380 __entry->first, __entry->last,
381 __entry->cursor, __entry->ret)
382 );
383
323#endif /* _TRACE_AFS_H */
324
325/* This part must be outside protection */
326#include <trace/define_trace.h>
384#endif /* _TRACE_AFS_H */
385
386/* This part must be outside protection */
387#include <trace/define_trace.h>