Debian Codegraph @

tapset/linux/ipmib-filter-default.stp

raw
1 /*
2 * Copyright (C) 2009 IBM Corp.
3 * Copyright (C) 2010 Red Hat Inc.
4 *
5 * This file is part of systemtap, and is free software. You can
6 * redistribute it and/or modify it under the terms of the GNU General
7 * Public License (GPL); either version 2, or (at your option) any
8 * later version.
9 */
10
11 /**
12 * sfunction ipmib_filter_key - Default filter function for ipmib.* probes
13 *
14 * @skb: pointer to the struct sk_buff
15 * @op: value to be counted if @skb passes the filter
16 * @SourceIsLocal: 1 is local operation and 0 is non-local operation
17 *
18 * This function is a default filter function.
19 * The user can replace this function with their own.
20 * The user-supplied filter function returns an index key based on the values
21 * in @skb.
22 * A return value of 0 means this particular @skb should be not be counted.
23 */
24 function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long)
25 {
26 if (!skb) return 0
27 return 1
28 }