summarylogtreecommitdiffstats
path: root/irq-tune.patch
diff options
context:
space:
mode:
authorKonstantin Shalygin2015-11-20 13:14:57 +0600
committerKonstantin Shalygin2015-11-20 13:14:57 +0600
commit5a6c8c1e3b48720ca14239a719797dc3841d72e0 (patch)
treebc842e21ab1b0c01f094f9617ba9bad587d52a2d /irq-tune.patch
downloadaur-irq-tools.tar.gz
Initial commit
Diffstat (limited to 'irq-tune.patch')
-rw-r--r--irq-tune.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/irq-tune.patch b/irq-tune.patch
new file mode 100644
index 000000000000..e7bd81315a09
--- /dev/null
+++ b/irq-tune.patch
@@ -0,0 +1,48 @@
+diff -Naupr irq-tune.orig/irq-eth.json.sample irq-tune/irq-eth.json.sample
+--- irq-tune.orig/irq-eth.json.sample 1970-01-01 07:00:00.000000000 +0700
++++ irq-tune/irq-eth.json.sample 2015-11-20 11:27:04.373296735 +0600
+@@ -0,0 +1,13 @@
++## Can be executed '-a -j irq-eth.json'
++[
++ { "cores": [0], "name": "eth0-0" },
++ { "cores": [1], "name": "eth0-txrx-1" },
++ { "cores": [2], "name": "eth0-txrx-2" },
++ { "cores": [3], "name": "eth0-txrx-3" },
++ { "cores": [4], "name": "eth0-txrx-4" },
++ { "cores": [0], "name": "eth1-0" },
++ { "cores": [1], "name": "eth1-txrx-1" },
++ { "cores": [2], "name": "eth1-txrx-2" },
++ { "cores": [3], "name": "eth1-txrx-3" },
++ { "cores": [4], "name": "eth1-txrx-4" }
++]
+diff -Naupr irq-tune.orig/irq-tune.py irq-tune/irq-tune.py
+--- irq-tune.orig/irq-tune.py 2015-11-20 11:22:45.152527711 +0600
++++ irq-tune/irq-tune.py 2015-11-20 11:25:10.592959185 +0600
+@@ -1,4 +1,4 @@
+-#!/bin/python
++#!/usr/bin/python2
+ # vim: set expandtab ts=4 sw=4:
+
+ # irq-tune
+@@ -109,7 +109,6 @@ def main():
+ parse.error("The file: " + options.jsonfile + "does not exist.")
+
+
+- #json_data = open("irq.json").read()
+ json_data = open(options.jsonfile).read()
+ irqdict = json.loads(json_data)
+
+@@ -120,13 +119,3 @@ def main():
+
+ if __name__ == "__main__":
+ main()
+-
+-# Some debugging junk
+-#
+-# ddpprint.pprint(irqdict,width=120)
+-# bmask = total_mask(cpulist,"binary")
+-# hmask1 = total_mask(cpulist,"hex")
+-# hmask2 = total_mask(irqlist[0]['cores'],"hex")
+-# hreal = total_mask([36],"hex")
+-# print hmask2
+-# print hreal