summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPriyanka Dandamudi <priyanka.dandamudi@intel.com>2023-10-04 11:37:47 +0530
committerPriyanka Dandamudi <priyanka.dandamudi@intel.com>2023-10-04 11:42:09 +0530
commit2eb58faf82d3cd5e2e74154a7319cff56eb40762 (patch)
tree573d5c5d58c50495254d84d656f138b8e6642bb6 /lib
parent43df1747605a8d8f4819daa293920407077f1df4 (diff)
Revert "tests/xe/perf_pmu: Tests for the XE pmu interface"
This reverts commit 43df1747605a8d8f4819daa293920407077f1df4. Tests has been moved to tests/intel instead of tests/xe. So, reverting this and sending a new one with changes. Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com> Reviewed-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_perf.c36
-rw-r--r--lib/igt_perf.h5
2 files changed, 0 insertions, 41 deletions
diff --git a/lib/igt_perf.c b/lib/igt_perf.c
index 3866c6d77..ffe078adc 100644
--- a/lib/igt_perf.c
+++ b/lib/igt_perf.c
@@ -69,36 +69,6 @@ const char *i915_perf_device(int i915, char *buf, int buflen)
return buf;
}
-const char *xe_perf_device(int xe, char *buf, int buflen)
-{
- char *s;
- char pref[] = "xe_";
- int len = strlen(pref);
-
-
- if (!buf || buflen < len)
- return "xe";
-
- memcpy(buf, pref, len);
-
- if (!bus_address(xe, buf + len, buflen - len))
- buf[len - 1] = '\0';
-
- /* Convert all colons in the address to '_', thanks perf! */
- for (s = buf; *s; s++)
- if (*s == ':')
- *s = '_';
-
- return buf;
-}
-
-uint64_t xe_perf_type_id(int xe)
-{
- char buf[80];
-
- return igt_perf_type_id(xe_perf_device(xe, buf, sizeof(buf)));
-}
-
uint64_t i915_perf_type_id(int i915)
{
char buf[80];
@@ -177,12 +147,6 @@ int perf_igfx_open_group(uint64_t config, int group)
PERF_FORMAT_TOTAL_TIME_ENABLED | PERF_FORMAT_GROUP);
}
-int perf_xe_open(int xe, uint64_t config)
-{
- return _perf_open(xe_perf_type_id(xe), config, -1,
- PERF_FORMAT_TOTAL_TIME_ENABLED);
-}
-
int perf_i915_open(int i915, uint64_t config)
{
return _perf_open(i915_perf_type_id(i915), config, -1,
diff --git a/lib/igt_perf.h b/lib/igt_perf.h
index 3d9ba2917..4d86e31ae 100644
--- a/lib/igt_perf.h
+++ b/lib/igt_perf.h
@@ -61,15 +61,10 @@ int igt_perf_open_group(uint64_t type, uint64_t config, int group);
const char *i915_perf_device(int i915, char *buf, int buflen);
uint64_t i915_perf_type_id(int i915);
-const char *xe_perf_device(int xe, char *buf, int buflen);
-uint64_t xe_perf_type_id(int);
-
int perf_igfx_open(uint64_t config);
int perf_igfx_open_group(uint64_t config, int group);
int perf_i915_open(int i915, uint64_t config);
int perf_i915_open_group(int i915, uint64_t config, int group);
-int perf_xe_open(int xe, uint64_t config);
-
#endif /* I915_PERF_H */