Sha256: 1070b8515edb91b424908620899234623072c6ff7c9cb80be6bef1a40828cdde

Contents?: true

Size: 1.17 KB

Versions: 38

Compression:

Stored size: 1.17 KB

Contents

This is a reference implementation of the ITT API _dynamic part_
that performs tracing data from ITT API functions calls to log files.

To use this solution it is required to build it like a shared library and add
full library path to the `INTEL_LIBITTNOTIFY64/INTEL_LIBITTNOTIFY32` environment variable:

**On Linux**
```
make
export INTEL_LIBITTNOTIFY64=<build_dir>/libittnotify_refcol.so
```

**On FreeBSD**
```
make
setenv INTEL_LIBITTNOTIFY64 <build_dir>/libittnotify_refcol.so
```

Temp directory is used by default to save log files.
To change log directory use the `INTEL_LIBITTNOTIFY_LOG_DIR` environment variable:

**On Linux**
```
export INTEL_LIBITTNOTIFY_LOG_DIR=<log_dir>
```

**On FreeBSD**
```
setenv INTEL_LIBITTNOTIFY_LOG_DIR <log_dir>
```

This implementation adds logging of some of the ITT API functions calls.
Adding logging of the other ITT API functions calls are welcome.
The solution provides 4 functions with different log levels
that takes printf format for logging:
```
LOG_FUNC_CALL_INFO(const char *msg_format, ...);
LOG_FUNC_CALL_WARN(const char *msg_format, ...);
LOG_FUNC_CALL_ERROR(const char *msg_format, ...);
LOG_FUNC_CALL_FATAL(const char *msg_format, ...);
```

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/ittapi-sys-0.3.5/c-library/src/ittnotify_refcol/README.md
wasmtime-14.0.1 ./ext/cargo-vendor/ittapi-sys-0.3.5/c-library/src/ittnotify_refcol/README.md
wasmtime-14.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.5/c-library/src/ittnotify_refcol/README.md
wasmtime-13.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-12.0.1 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-12.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-11.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-10.0.1 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-10.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-9.0.4 ./ext/cargo-vendor/ittapi-sys-0.3.4/c-library/src/ittnotify_refcol/README.md
wasmtime-9.0.1 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-8.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-7.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-6.0.1 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-6.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-5.0.0 ./ext/cargo-vendor/ittapi-sys-0.3.3/c-library/src/ittnotify_refcol/README.md
wasmtime-0.4.1 ./ext/cargo-vendor/ittapi-sys-0.3.2/c-library/src/ittnotify_refcol/README.md
wasmtime-0.4.0 ./ext/cargo-vendor/ittapi-sys-0.3.2/c-library/src/ittnotify_refcol/README.md