diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2024-07-05 14:43:02 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2024-07-05 18:19:13 -0700 |
commit | 0bad6be63f625fda5aca7e57ac2bd11751a92864 (patch) | |
tree | ffa62e97f34e2f8fd82c1de0cc4e50440c1ff294 /tools | |
parent | a1743ac7ed91ce40d742a351b1600da4f75972b1 (diff) |
drm-uapi/xe: Sync with Perf/Observation layer uapi updates
Align with kernel commit 8169b2097d88 ("drm/xe/uapi: Rename xe perf layer
as xe observation layer") which changes uapi to rename perf streams to
observation streams.
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/xe-perf/xe_perf_configs.c | 2 | ||||
-rw-r--r-- | tools/xe-perf/xe_perf_recorder.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/xe-perf/xe_perf_configs.c b/tools/xe-perf/xe_perf_configs.c index af33c0078..bd37fef5c 100644 --- a/tools/xe-perf/xe_perf_configs.c +++ b/tools/xe-perf/xe_perf_configs.c @@ -228,7 +228,7 @@ main(int argc, char *argv[]) continue; if (purge) { - if (intel_xe_perf_ioctl(drm_fd, DRM_XE_PERF_OP_REMOVE_CONFIG, &metric_id) == 0) + if (intel_xe_perf_ioctl(drm_fd, DRM_XE_OBSERVATION_OP_REMOVE_CONFIG, &metric_id) == 0) fprintf(stdout, "\tRemoved config %s id=%03" PRIu64 " name=%s\n", entry->d_name, metric_id, metric_name(perf, entry->d_name)); else diff --git a/tools/xe-perf/xe_perf_recorder.c b/tools/xe-perf/xe_perf_recorder.c index bd2d645fa..9cf51f3e1 100644 --- a/tools/xe-perf/xe_perf_recorder.c +++ b/tools/xe-perf/xe_perf_recorder.c @@ -443,7 +443,7 @@ perf_open(struct recording_context *ctx) .properties_ptr = to_user_pointer(properties), }; - stream_fd = intel_xe_perf_ioctl(ctx->drm_fd, DRM_XE_PERF_OP_STREAM_OPEN, ¶m); + stream_fd = intel_xe_perf_ioctl(ctx->drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, ¶m); if (stream_fd < 0) { errno = 0; goto exit; @@ -541,7 +541,7 @@ static int get_stream_status(int perf_fd, u32 *oa_status) struct drm_xe_oa_stream_status status; int ret; - ret = perf_ioctl(perf_fd, DRM_XE_PERF_IOCTL_STATUS, &status); + ret = perf_ioctl(perf_fd, DRM_XE_OBSERVATION_IOCTL_STATUS, &status); if (ret) return ret; |