mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 00:10:18 +00:00
trace_dcp: Add SilentEp to shut individual tracers up
Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
parent
b5e16b2a67
commit
f5ed6f89b0
1 changed files with 8 additions and 0 deletions
|
@ -137,6 +137,14 @@ class AFKEp(EP):
|
|||
self.state.rxbuf_info = (off, size)
|
||||
self.create_bufs()
|
||||
|
||||
class SilentEp(AFKEp):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.state.verbose = 0
|
||||
|
||||
def log(self, msg):
|
||||
pass
|
||||
|
||||
def epic_service_cmd(group, cmd):
|
||||
def f(x):
|
||||
x.is_cmd = True
|
||||
|
|
Loading…
Reference in a new issue