MCPcopy Create free account
hub / github.com/iovisor/bcc / push

Method push

src/python/bcc/table.py:1321–1325  ·  view source on GitHub ↗
(self, leaf, flags=0)

Source from the content-addressed store, hash-verified

1319 return leaf
1320
1321 def push(self, leaf, flags=0):
1322 res = lib.bpf_update_elem(self.map_fd, None, ct.byref(leaf), flags)
1323 if res < 0:
1324 errstr = os.strerror(ct.get_errno())
1325 raise Exception("Could not push to table: %s" % errstr)
1326
1327 def pop(self):
1328 leaf = self.Leaf()

Callers 3

test_stackMethod · 0.45
test_queueMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_stackMethod · 0.36
test_queueMethod · 0.36