qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] trace: floating-point values blacklisted


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] trace: floating-point values blacklisted
Date: Wed, 26 Jun 2019 13:57:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

[I forgot to Cc the list, resending]

Hi Stefan, Lluís,

When trying to add a trace event to report a float value, I get:

trace-events:11: Argument type 'float' is not in whitelist. Only
standard C types and fixed size integer types should be used. struct,
union, and other complex pointer types should be declared as 'void *'
Traceback (most recent call last):
  File "./scripts/tracetool.py", line 152, in <module>
    main(sys.argv)
  File "./scripts/tracetool.py", line 143, in main
    events.extend(tracetool.read_events(fh, arg))
  File "./scripts/tracetool/__init__.py", line 365, in read_events
    event = Event.build(line)
  File "./scripts/tracetool/__init__.py", line 283, in build
    args = Arguments.build(groups["args"])
  File "./scripts/tracetool/__init__.py", line 133, in build
    validate_type(arg_type)
  File "./scripts/tracetool/__init__.py", line 86, in validate_type
    "declared as 'void *'" % name)

Floating-point types are specified in the optional Annex F of the
standard ("IEC 60559 floating-point arithmetic").

Is there a specific reason to not trace them, or simply nobody ever had
to trace them?

Thanks,

Phil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]