Home page logo

wireshark logo Wireshark mailing list archives

Re: Enabling linux kernel jit compiler from dumpcap?
From: Anders Broman <anders.broman () ericsson com>
Date: Thu, 22 Aug 2013 15:18:50 +0000

Included a patch if someone want to have a go at it.

From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Anders Broman
Sent: den 22 augusti 2013 13:47
To: wireshark-dev () wireshark org
Subject: [Wireshark-dev] Enabling linux kernel jit compiler from dumpcap?

Should we add code to enable the JIT compiler from dumpcap?

From netsniff-ng bpf.c<http://lingrok.org/xref/netsniff-ng/bpf.c>

int enable_kernel_bpf_jit_compiler(void)
                int fd;
                ssize_t ret;
                char *file = "/proc/sys/net/core/bpf_jit_enable";

                fd = open(file, O_WRONLY);
                if (unlikely(fd < 0))
                                return -1;

                ret = write(fd, "1", strlen("1"));

                return ret;


Attachment: dumpcap.patch
Description: dumpcap.patch

Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]