Skip to content

Instantly share code, notes, and snippets.

View TApplencourt's full-sized avatar
🇷🇪

Thomas Applencourt TApplencourt

🇷🇪
View GitHub Profile
@TApplencourt
TApplencourt / filer.cpp
Created October 14, 2022 21:14
bt2_filter
#include "utlist.h"
#include <babeltrace2/babeltrace.h>
#include <stdio.h>
#include <stdlib.h>
struct el {
const bt_message *message;
struct el *next, *prev;
};
# This code will be executed by multiple processes
# each process will have a RANKID
MPI_RANK=$PALS_RANKID
# UUID for each process
THAPI_LOCK_DIR=$HOME/.lttng_mpi/$MPI_RANK
rm -rf $THAPI_LOCK_DIR
mkdir -p $THAPI_LOCK_DIR/
# Independ lttng session