+"""
+Contains various helper functions and information for benchmarking RTEMS CAN GW implementation.
+"""
+
import subprocess
import sys
import os
def original_name_from_histogram_name(hist_name):
"""Retuns name of the original test from the name of its histogram."""
- return "-".join(hist_name.split("-")[:-1])
\ No newline at end of file
+ return "-".join(hist_name.split("-")[:-1])
+
+def set_txqueuelen(length):
+ """Sets txqueuelen on can0 interface to given length"""
+ subprocess.call("ifconfig can0 txqueuelen {}".format(length).split())