rawdev: add private data size to info query
[dpdk.git] / app / test / get-coremask.sh
1 #! /bin/sh -e
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2019 Intel Corporation
4
5 if [ "$(uname)" = "Linux" ] ; then
6         cat /sys/devices/system/cpu/present
7 elif [ "$(uname)" = "FreeBSD" ] ; then
8         ncpus=$(/sbin/sysctl -n hw.ncpu)
9         echo 0-$(expr $ncpus - 1)
10 else
11 # fallback
12         echo 0-3
13 fi