trace.cpp 626 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
/*******************************************************************************
 * Copyright 2019 UChicago Argonne, LLC.
 * (c.f. AUTHORS, LICENSE)
 *
 * This file is part of the Argo containers project.
 * For more info, see https://xgitlab.cels.anl.gov/argo/containers
 *
 * SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/

Swann Perarnau's avatar
Swann Perarnau committed
11 12 13 14 15 16 17 18 19 20 21 22
#include "trace.hpp"
#include <cassert>
bitmask_t   __trace_mask = 0;

void set_mask(bitmask_t& mask, bitmask_t mask_pos, bool activate)
{
	assert(mask_pos <=64);
	if(activate)
		mask |= mask_pos;
	else
		mask &= (~mask_pos);
}