struct process_attr_tracker *tracker;
int integral_value;
enum process_attr_tracker_status status;
- struct ust_app *app;
/*
* Convert process attribute tracker value to the integral
/* Add session to application */
switch (process_attr) {
case LTTNG_PROCESS_ATTR_VIRTUAL_PROCESS_ID:
- app = ust_app_find_by_pid(integral_value);
- if (app) {
- should_update_apps = true;
- }
+ should_update_apps = ust_app_with_pid_exists(integral_value);
break;
default:
should_update_apps = true;
struct process_attr_tracker *tracker;
int integral_value;
enum process_attr_tracker_status status;
- struct ust_app *app;
/*
* Convert process attribute tracker value to the integral
/* Add session to application */
switch (process_attr) {
case LTTNG_PROCESS_ATTR_VIRTUAL_PROCESS_ID:
- app = ust_app_find_by_pid(integral_value);
- if (app) {
- should_update_apps = true;
- }
+ should_update_apps = ust_app_with_pid_exists(integral_value);
break;
default:
should_update_apps = true;