Skip to content

Instantly share code, notes, and snippets.

Luca Boccassi bluca

Block or report user

Report or block bluca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bluca
bluca / gist:447e952e0672421714b29158257f5011
Created Nov 8, 2016
DPDK headers diff amd64 <> arm64
View gist:447e952e0672421714b29158257f5011
From 9e8a966737201210ee784e48057d803e2cba3016 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <lboccass@brocade.com>
Date: Tue, 8 Nov 2016 15:34:05 +0000
Subject: [PATCH] Header diff amd64 <> arm64
---
include/dpdk/rte_atomic.h | 194 +----------
include/dpdk/rte_atomic_32.h | 220 ++----------
include/dpdk/rte_atomic_64.h | 187 +++-------
include/dpdk/rte_byteorder.h | 92 ++---
View gist:dced45fca317a648ba2b6e99301f4eed
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no --with-libsodium
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
View tweetnacl build
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
View gist:c92513dc54508a7f7e17f6b375d57a24
$ git remote add duzy https://github.com/duzy/libzmq.git
lboccass@BRA-6G85P12:~/git/libzmq (bump_version)$ git fetch duzy
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 8 (delta 7), reused 8 (delta 7), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/duzy/libzmq
* [new branch] master -> duzy/master
* [new branch] revert-1183-size_fix -> duzy/revert-1183-size_fix
$ git cherry-pick duzy/master
View gist:5dba613a8a3f23457f2232fda3760c83
Repotype: debian
Ignore: initscripts
Preinstall: user-setup
# required for preinstall images: [1/409] Can't locate Digest/MD5.pm in @INC
Preinstall: libperl5.24
# preinstall debootstrap --foreign --variant=minbase --print-debs
View gist:5028bae1768c01d587dabe51f7877750
import zmq
import unittest
from unittest.mock import patch
from unittest.mock import MagicMock
class MockZmqSocket(MagicMock):
def __init__(self, **kwds):
super().__init__(**kwds)
View gist:3afe928d0d0ad65b3b32bdc4453af250
#include "testutil.hpp"
#define PAYLOAD_SIZE 229139
#define TERM_SIZE 41
#define NUM_WORKERS 6
#define NUM_ITERS 4
#define NUM_TERMS NUM_WORKERS * NUM_ITERS
void worker_task (void *ep)
{
@bluca
bluca / v2_client.cpp
Last active Jul 1, 2017
ZMQ v2 client and v4 server interop
View v2_client.cpp
#include <assert.h>
#include <string>
#include <iostream>
#include <zmq.h>
#include <string.h>
int main(int argc, char** argv)
{
unsigned long max_nof_messages = 100;
std::string engine_uri = "tcp://127.0.0.1:5656";
View gist:eb779f347d05ff35e6e3bf65b29c156f
diff --git a/app/Makefile b/app/Makefile
index f7f5e2f..f837f43 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -62,15 +62,15 @@ BUILD_TYPE := v17
endif
ifeq ($(BUILD_TYPE),v17)
-COMMON_PRE := $(RTE_SRCDIR)/../lib/common
-LUA_PRE := $(RTE_SRCDIR)/../lib/lua/src
View pyzmq_1244.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <zmq.h>
void freen(void *data, void *hint){
free(data);
}
You can’t perform that action at this time.