Skip to content

Commit

Permalink
Include huge pages in contrail-vrouter-dpdk core dump.
Browse files Browse the repository at this point in the history
Change-Id: I6f19baeff12a1af07b0309486b33b53f2abbca51
Partial-bug: 1522646
  • Loading branch information
srajag committed Dec 10, 2015
1 parent 3d7f98c commit ccea3d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common/control_files/vrouter-functions.sh
Expand Up @@ -192,6 +192,17 @@ vrouter_dpdk_start() {
fi
done

# Include huge pages in core dump of contrail-vrouter-dpdk process
pid=$(pidof contrail-vrouter-dpdk)
if [ -f /proc/$pid/coredump_filter ]; then
cdump_filter=`cat /proc/$pid/coredump_filter`
cdump_filter=$((0x40 | 0x$cdump_filter))
echo $cdump_filter > /proc/$pid/coredump_filter
else
cdump_filter=0x73
echo $cdump_filter > /proc/$pid/coredump_filter
fi

echo "$(date): Waiting for Agent to configure ${DPDK_VHOST}..."
loops=0
while [ ! -L /sys/class/net/${DPDK_VHOST} ]
Expand Down

0 comments on commit ccea3d4

Please sign in to comment.