Home
last modified time | relevance | path

Searched refs:hlircounter (Results 1 – 1 of 1) sorted by relevance

/external/bcc/src/cc/frontends/p4/compiler/
DebpfCounter.py13 def __init__(self, hlircounter, program): argument
14 assert isinstance(hlircounter, p4_counter)
17 self.name = hlircounter.name
18 self.hlircounter = hlircounter
20 width = hlircounter.min_width
26 "{0}: Counters with {1} bits", hlircounter, width)
30 if ((hlircounter.binding is None) or
31 (hlircounter.binding[0] != P4_DIRECT)):
33 "{0}: counter which is not direct", hlircounter)
35 self.autoIncrement = (hlircounter.binding != None and
[all …]