@@ -377,12 +377,7 @@ class MLNXCOUNTERS():
377
377
378
378
class ROCESTATPMDA(PMDA):
379
379
"""
380
- A ROCE Performance Metrics Domain Agent.
381
- Install it and make basic use of it, as follows:
382
-
383
- # $PCP_PMDAS_DIR/rocestat/Install
384
- [select python option]
385
- $ pminfo -fmdtT rocestat
380
+ A ROCESTAT Performance Metrics Domain Agent.
386
381
"""
387
382
388
383
# Cluster definitions
@@ -397,9 +392,7 @@ class ROCESTATPMDA(PMDA):
397
392
pm_type_32 = c_api.PM_TYPE_U32
398
393
pm_type_64 = c_api.PM_TYPE_U64
399
394
pm_type_double = c_api.PM_TYPE_DOUBLE
400
- pm_type_str = c_api.PM_TYPE_STRING
401
395
402
- null_indom = c_api.PM_INDOM_NULL
403
396
inst_sem = c_api.PM_SEM_INSTANT
404
397
count_sem = c_api.PM_SEM_COUNTER
405
398
@@ -595,14 +588,6 @@ class ROCESTATPMDA(PMDA):
595
588
596
589
return [c_api.PM_ERR_PMID, 0]
597
590
598
-
599
- def roce_store_callback(self, cluster, item, inst, val):
600
- """
601
- Store callback, executed when a request to write to a metric happens
602
- """
603
- self.log("storing values\n")
604
-
605
-
606
591
def __init__(self, name, domain, user, logfile):
607
592
608
593
super().__init__(name, domain, logfile)
@@ -615,9 +600,7 @@ class ROCESTATPMDA(PMDA):
615
600
616
601
self.register_metrics(name)
617
602
self.set_fetch(self.roce_stat_fetch)
618
-
619
603
self.set_fetch_callback(self.roce_fetch_callback)
620
- self.set_store_callback(self.roce_store_callback)
621
604
622
605
@staticmethod
623
606
def log(message):
@@ -636,7 +619,7 @@ if __name__ == "__main__":
636
619
# This PMDA starts up in the "notready" state, see the Install script where
637
620
# the IPC protocol is ipc_prot="binary notready". See also pmcd(1) man page.
638
621
# The "binary notready" setting can also be manually configured in pmcd.conf.
639
- pmda = ROCESTATPMDA(name='rocestat', domain=257 , user="root", logfile='rocestat.log')
622
+ pmda = ROCESTATPMDA(name='rocestat', domain=254 , user="root", logfile='rocestat.log')
640
623
641
624
pmda.pmda_ready()
642
625
if not pmda.in_pmda_setup():
0 commit comments