mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
lib: add a function to indicate activity
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -246,6 +246,21 @@ void igt_progress(const char *header, uint64_t i, uint64_t total)
|
||||
(long long unsigned)i * 100 / total);
|
||||
}
|
||||
|
||||
/**
|
||||
* igt_print_activity:
|
||||
*
|
||||
* Print a '.' to indicate activity. This is printed without a newline and
|
||||
* only if output is to a terminal.
|
||||
*/
|
||||
void igt_print_activity(void)
|
||||
{
|
||||
if (!isatty(STDOUT_FILENO))
|
||||
return;
|
||||
|
||||
igt_info(".");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
/* mappable aperture trasher helper */
|
||||
drm_intel_bo **trash_bos;
|
||||
int num_trash_bos;
|
||||
|
||||
@@ -41,6 +41,7 @@ void igt_permute_array(void *array, unsigned size,
|
||||
unsigned i,
|
||||
unsigned j));
|
||||
void igt_progress(const char *header, uint64_t i, uint64_t total);
|
||||
void igt_print_activity(void);
|
||||
bool igt_check_boolean_env_var(const char *env_var, bool default_value);
|
||||
|
||||
bool igt_aub_dump_enabled(void);
|
||||
|
||||
Reference in New Issue
Block a user