Commit Graph

31 Commits

Author SHA1 Message Date
shubham kumar f2b48b97d2 refactor: Prework to get sampling unit through ioctl query on xe
Related-To: NEO-13777

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2025-02-03 10:37:46 +01:00
Katarzyna Cencelewska b2f8da5109 fix: return pointer instead of reference from getOsInterface
on tbx this will be a nullpointer

Related-To: HSD-18040897834
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2025-01-21 12:52:39 +01:00
shubham kumar 8c18e94ea0 fix: Correct notifyNReports behaviour on Linux
Related-To: NEO-8752

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-26 05:33:43 +01:00
Robert Krzemień fe1fd22371 fix: stop direct submission before oa configuration activation
Related-To: NEO-12778
Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
2024-10-22 14:26:44 +02:00
Jaroslaw Warchulski ab9afed574 fix: add WSL path in os_metric_oa_enumeration_imp
Related-To: GSD-9130
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-08-14 15:25:52 +02:00
shubham kumar 0002eb3fcc feature: adding eu stall support on windows
Related-To: NEO-12174


Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-08-06 06:47:11 +02:00
shubham kumar e78c8edcf3 refactor: prework for adding eu stall support on windows
Related-To: NEO-9492

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-07-12 16:27:24 +02:00
Jablonski, Mateusz d724627098 fix: fix compilation error in clang on Windows (1/n)
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2023-10-23 10:36:23 +02:00
Joshua Santosh Ranjan e27046af1f feature: Add support for internal Metrics
Related-To: LOCI-4561

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2023-07-26 08:22:49 +02:00
Matias Cabral cfa187aec6 feature: Support for metrics group exp extension
Support zet_metric_global_timestamps_resolution_exp_t

Resolves: LOCI-4350

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2023-06-16 07:48:32 +02:00
Mateusz Jablonski cb7437b6b7 refactor l0 tools: cleanup cmake files
append sources in current directory

Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-03-16 14:05:14 +01:00
Joshua Santosh Ranjan e2177f44f3 [Metrics]Fix OA buffer size request for streamer
This patch uses maximum OA buffer size for the
platform when opening an io stream.

Related-To: LOCI-4103

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2023-03-14 11:10:11 +01:00
Matias Cabral 9c1c24e35a Detect metrics library new name
Linux library name changing from libmd.so.1 to libigdmd.so.1

Related-To: LOCI-3159

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2022-06-28 18:39:20 +02:00
Mateusz Jablonski 5bf1c84ed3 Cleanup includes in sampler, image, builtin and event
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-03 10:21:59 +02:00
Joshua Santosh Ranjan 10f98b45db Metrics Add Os specific implementation Structure for IP Sampling
This patch adds OS specific implementation for IP Sampling.
Implementation for linux is provided as part of this patch.

Related-To: LOCI-2787

--- master-files
level_zero/tools/source/metrics/linux/os_metric_ip_sampling_imp_linux.cpp
level_zero/tools/source/metrics/os_metric_ip_sampling.h
level_zero/tools/source/metrics/windows/os_metric_ip_sampling_imp_windows.cpp
level_zero/tools/test/unit_tests/sources/metrics/linux/test_metric_ip_sampling_linux_prelim.cpp
level_zero/tools/test/unit_tests/sources/metrics/linux/test_metric_ip_sampling_linux_upstream.cpp
level_zero/tools/test/unit_tests/sources/metrics/windows/test_metric_ip_sampling_windows.cpp
--- master-files

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-02-18 23:15:44 +01:00
Joshua Santosh Ranjan cec0ea2809 Metrics Rename OA specific files
Rename OA specific files with _oa so that
implementation of other metric sources
could be added seamlessly.

Related-To: LOCI-2945

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-02-14 18:35:19 +01:00
Joshua Santosh Ranjan f1c50a8c89 Metric Refactor Metric Context
Rename Metric Context and move OA specific functions
and members from Metric Context to OA specific class(MetricSource).
This refactoring is done so that additional Metric Source
like Stall Sampling could be Seamlessly implemented.

Related-To: LOCI-2753


Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-02-03 21:34:14 +01:00
Joshua Santosh Ranjan e1ef9ac79a Revert "Metric Detect Paranoid mode and fail gracefully"
This reverts commit a720282358dff08fb36b95eaf9bf184efa315f48.

This revert is to avoid suggesting to disable paranoid mode.
This revert also avoids L0 metrics mandating paranoid mode
setting.

Related-To: LOCI-2822

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-12-23 19:30:47 +01:00
Joshua Santosh Ranjan 7aae29f2cd Metric Detect Paranoid mode and fail gracefully
Related-To: LOCI-2143

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-10-13 22:17:50 +02:00
Jaroslaw Chodor 0e9aa45e46 Improving OS abstraction
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-23 21:40:37 +02:00
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00
Piotr Maciejewski aa05b5adb4 L0 and Ocl Metric Api sub device support
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com>
2021-03-15 17:14:55 +01:00
Piotr Maciejewski 4a5599b1ee L0 Metrics Api: multi adapter support
Switching to Metrics Discovery adapter interface.
2021-01-13 22:45:59 +01:00
Pawel Cieslak fb821f21f5 Cmake format script
Related-To: NEO-1157

Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
Piotr Maciejewski 982c26202b Metric query/tracer fixes.
1. Disable oa configuration cache on Linux.
2. Do not allow to create mertic query during tracer usage and vice versa.

Change-Id: I139416a92ac8604c8b46b254b533abf6038c2351
2020-05-12 22:58:22 +02:00
Piotr Maciejewski c6cd582f78 Enable Performance Counters for OCL and L0.
Change-Id: I1920b9d406c092fbc26fc6ca27766db297a1958b
2020-04-02 12:04:56 +02:00
Jaime Arteaga d96e462754 Reorganize Level Zero Core API files
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-25 11:21:43 +01:00
Piotr Maciejewski e438da0f92 L0 Metrics Api fixes:
1. DEBUG_BREAK_IF instead of UNRECOVERABLE_IF.
2. Proper oa configuration deinitialization.

Change-Id: I2b966fb627d4a79ad1c0a1589b9e0916ea640545
2020-03-23 22:37:20 +01:00
Mateusz Hoppe 307a5cb822 Link tools and experimental sources to object library
Related-To: NEO-4480

Change-Id: I16da4434ec24753eabdb1bce9e38ed2e1e83ed6c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-23 08:57:19 +01:00
Jaime Arteaga 462f3cdda8 Cleanup comments in Metrics (2)
Change-Id: I1393b14e35d9624cbb22613ae2c21c6361df24fe
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-16 12:07:22 -07:00
Brandon Fliflet 27f4bce42f Initial support for oneAPI Level Zero
Change-Id: I221df8427b1844237a4d9d900c58512706b0be0f
2020-03-06 14:53:29 +01:00