Git Product home page Git Product logo

Comments (2)

codecnotsupported avatar codecnotsupported commented on July 24, 2024 1

this statement is unclear to me: "It required the following functions to be integrated with the application." Do you mean that your application failed to compile or it failed to run inside VTune? Or just that you were not able to in fact mark the regions because the API is not yet available in the Rust bindings?

The latter.

are you using ittapi-sys directly? Or do you want to get these mark functions in to the high-level bindings?

I was using ittapi-sys directly because there wasn't a high-level API binding. High-level bindings would be preferred.

this statement is also confusing me: "Most functions in the public API have a ITTAPI which seem to be missing here for both of these functions." What do you mean by that?

In ittnotify.h, most public API functions are prefixed with ITTAPI and __itt_mark_pt_region_begin/end seems to be a exception to this rule.
I have no clue what the ITTAPI prefix does. I am merely denoting this anomaly just in case it means something to you.

Example:

void __itt_mark_pt_region_begin(__itt_pt_region region);

void ITTAPI __itt_thread_ignore(void);

from ittapi.

abrown avatar abrown commented on July 24, 2024

I think this is a good find. If you notice in the binding-generation code, it doesn't have an allowlist_function entry:

.allowlist_var("ITT.*")
.allowlist_var("__itt.*")
.header(concat(INCLUDE_PATH, "/ittnotify.h"))

When I add .allowlist_function("__itt.*") in there, I see many more functions now present in the bindings, including the ones you mention. But now I'm wondering why I didn't add that in the first place (@ekovanova, were we supposed to use the pointer versions like __itt_*_ptr__3_0 instead?).

@codecnotsupported, a couple more questions:

  • this statement is unclear to me: "It required the following functions to be integrated with the application." Do you mean that your application failed to compile or it failed to run inside VTune? Or just that you were not able to in fact mark the regions because the API is not yet available in the Rust bindings?
  • are you using ittapi-sys directly? Or do you want to get these mark functions in to the high-level bindings?
  • this statement is also confusing me: "Most functions in the public API have a ITTAPI which seem to be missing here for both of these functions." What do you mean by that?

Thanks again for the report!

from ittapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.