Comments (2)
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:
Line 452 in 9fdc830
Line 529 in 9fdc830
from ittapi.
I think this is a good find. If you notice in the binding-generation code, it doesn't have an allowlist_function
entry:
ittapi/rust/ittapi-sys/tests/bindgen-up-to-date.rs
Lines 33 to 35 in 9fdc830
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 thesemark
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)
- License issue about object files HOT 4
- __itt_marker on VTune HOT 2
- Data races over function pointer initialization
- Check that the Rust build script stays in sync with CMake configuration HOT 1
- Compile ittapi-rs' C code on Windows HOT 7
- ci: building the C library silently fails HOT 1
- OpenBSD like FreeBSD uses stdlib.h not malloc.h HOT 1
- Codespell errors HOT 2
- Request to replace the .o files with source code compilation in the include folder
- How to use __itt_pt_region_create HOT 1
- Where is `IttnotifyInfo` defined/declared? HOT 3
- Better error messages HOT 1
- Profiling a function from Dynamic Loaded library
- error: useless cast to type โlong long unsigned intโ
- [Tsan] Data race detection in mutex_init_and_lock HOT 1
- Add Security Policy HOT 2
- About the latest release HOT 5
- IP issues of AdvisorAnnotate.cs and advisor_annotate.f90 HOT 1
- Add option to build library as a shared object. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ittapi.