mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
tools: print a warning for tools replaced by intel_reg
Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
87f15fc3da
commit
aa75f37397
@ -94,6 +94,9 @@ int main(int argc, char *argv[])
|
|||||||
int i, nregs, count = 1, reg_stride;
|
int i, nregs, count = 1, reg_stride;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
if (!IS_VALLEYVIEW(dev->device_id) &&
|
if (!IS_VALLEYVIEW(dev->device_id) &&
|
||||||
!IS_CHERRYVIEW(dev->device_id)) {
|
!IS_CHERRYVIEW(dev->device_id)) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
|
@ -89,6 +89,9 @@ int main(int argc, char** argv)
|
|||||||
int i, nregs;
|
int i, nregs;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
if (!IS_VALLEYVIEW(dev->device_id) &&
|
if (!IS_VALLEYVIEW(dev->device_id) &&
|
||||||
!IS_CHERRYVIEW(dev->device_id)) {
|
!IS_CHERRYVIEW(dev->device_id)) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
|
@ -2931,6 +2931,9 @@ int main(int argc, char** argv)
|
|||||||
char *file = NULL, *reg_name = NULL;
|
char *file = NULL, *reg_name = NULL;
|
||||||
uint32_t reg_val, power_well;
|
uint32_t reg_val, power_well;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "d:h")) != -1) {
|
while ((opt = getopt(argc, argv, "d:h")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'd':
|
case 'd':
|
||||||
|
@ -74,6 +74,9 @@ int main(int argc, char** argv)
|
|||||||
int decode_bits = 0;
|
int decode_bits = 0;
|
||||||
int dwords = 1;
|
int dwords = 1;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "dfhc:")) != -1) {
|
while ((ch = getopt(argc, argv, "dfhc:")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'd':
|
case 'd':
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
@ -36,6 +37,9 @@ int main(int argc, char** argv)
|
|||||||
int mmio_bar;
|
int mmio_bar;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
pci_dev = intel_get_pci_device();
|
pci_dev = intel_get_pci_device();
|
||||||
devid = pci_dev->device_id;
|
devid = pci_dev->device_id;
|
||||||
intel_mmio_use_pci_bar(pci_dev);
|
intel_mmio_use_pci_bar(pci_dev);
|
||||||
|
@ -36,6 +36,9 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
uint32_t reg, value;
|
uint32_t reg, value;
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
printf("Usage: %s addr value\n", argv[0]);
|
printf("Usage: %s addr value\n", argv[0]);
|
||||||
printf(" WARNING: This is dangerous to you and your system's health.\n");
|
printf(" WARNING: This is dangerous to you and your system's health.\n");
|
||||||
|
@ -57,6 +57,9 @@ int main(int argc, char *argv[])
|
|||||||
int i, ch;
|
int i, ch;
|
||||||
const char *cmdname = argv[0];
|
const char *cmdname = argv[0];
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "m")) != -1) {
|
while ((ch = getopt(argc, argv, "m")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'm':
|
case 'm':
|
||||||
|
@ -57,6 +57,9 @@ int main(int argc, char *argv[])
|
|||||||
int ch;
|
int ch;
|
||||||
const char *cmdname = argv[0];
|
const char *cmdname = argv[0];
|
||||||
|
|
||||||
|
fprintf(stderr, "WARNING: Use of %s has been deprecated and replaced by"
|
||||||
|
" intel_reg.\n", argv[0]);
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "m")) != -1) {
|
while ((ch = getopt(argc, argv, "m")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'm':
|
case 'm':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user