From 5706c03b5b2b7621a3a18a6c2c9dcf4a3342de11 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 14 Nov 2024 15:40:18 -0800 Subject: [PATCH] Revert "ocperf: Drop obsolete method name" This reverts commit 0e9ac23a23829f7d8a4177c3adbd0872faf5780a. --- ocperf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ocperf.py b/ocperf.py index 50bb4bb9..3c2a19ee 100755 --- a/ocperf.py +++ b/ocperf.py @@ -453,7 +453,7 @@ def __init__(self, name, row): # XXX cannot separate sockets # extra: perf flags # flags: emon flags - def output(self, newextra="", noname=False, period=False, name="", flags="", noexplode=False): + def output_newstyle(self, newextra="", noname=False, period=False, name="", flags="", noexplode=False): e = self o = "/event=%#x" % e.code if e.umask: @@ -514,6 +514,7 @@ def check_qual(q): return False self.newextra = ",".join(filter(check_qual, convert_uncore(self.newextra, ()).split(","))) + output = output_newstyle def ffs(flag): assert flag != 0