PATH: //usr/lib/python3.9/site-packages/tuned/profiles/functions
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 base.py
↓
X
📄 function_assertion.py
↓
X
📄 function_assertion_non_equal.py
↓
X
📄 function_calc_isolated_cores.py
↓
X
📄 function_check_net_queue_count.py
↓
X
📄 function_cpuinfo_check.py
↓
X
📄 function_cpulist2devs.py
↓
X
📄 function_cpulist2hex.py
↓
X
📄 function_cpulist2hex_invert.py
↓
X
📄 function_cpulist_invert.py
↓
X
📄 function_cpulist_online.py
↓
X
📄 function_cpulist_pack.py
↓
X
📄 function_cpulist_present.py
↓
X
📄 function_cpulist_unpack.py
↓
X
📄 function_exec.py
↓
X
📄 function_hex2cpulist.py
↓
X
📄 function_intel_recommended_pstate.py
↓
X
📄 function_kb2s.py
↓
X
📄 function_log.py
↓
X
📄 function_lscpu_check.py
↓
X
📄 function_package2cpus.py
↓
X
📄 function_package2uncores.py
↓
X
📄 function_regex_search_ternary.py
↓
X
📄 function_s2kb.py
↓
X
📄 function_strip.py
↓
X
📄 function_virt_check.py
↓
X
📄 parser.py
↓
X
📄 repository.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: function_exec.py
import os import tuned.logs from . import base from tuned.utils.commands import commands class execute(base.Function): """ Executes process and substitutes its output. """ def __init__(self): # unlimited number of arguments, min 1 argument (the name of executable) super(execute, self).__init__("exec", 0, 1) def execute(self, args): if not super(execute, self).execute(args): return None (ret, out) = self._cmd.execute(args) if ret == 0: return out return None
SIMPAN PERUBAHAN