Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
extern initcall_t __initcall_start[];
extern initcall_t __initcall0_start[];
extern initcall_t __initcall1_start[];
extern initcall_t __initcall2_start[];
extern initcall_t __initcall3_start[];
extern initcall_t __initcall4_start[];
extern initcall_t __initcall5_start[];
extern initcall_t __initcall6_start[];
extern initcall_t __initcall7_start[];
extern initcall_t __initcall_end[];
#define INIT_CALLS_LEVEL(level) \
VMLINUX_SYMBOL(__initcall##level##_start) = .; \
*(.initcall##level##.init) \
*(.initcall##level##s.init) \
#define INIT_CALLS \
VMLINUX_SYMBOL(__initcall_start) = .; \
*(.initcallearly.init) \
INIT_CALLS_LEVEL(0) \
INIT_CALLS_LEVEL(1) \
In [44]: data
Out[44]:
[93184.0,
95047.68,
96948.63359999999,
100826.57894399998,
102843.11052287997,
104899.97273333758,
109095.97164267108,
111277.8910755245,
fig = pylab.figure()
ax = fig.add_subplot(111)
ax.yaxis.grid(color='gray', linestyle='dashed')
ax.xaxis.grid(color='gray', linestyle='dashed')
ax.plot(dates, data, 'o-')
fig.show()
configure:3373: checking whether the C compiler works
configure:3395: /tmp/buildroot-buildroot-linaro-udev/output/host/usr/bin/arm-linux-gnueabihf-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -lrt >&5
/tmp/buildroot-buildroot-linaro-udev/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: warning: libpthread.so.0, needed by /tmp/buildroot-buildroot-linaro-udev/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so, not found (try using -rpath or -rpath-link)
/tmp/buildroot-buildroot-linaro-udev/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so: undefined reference to `pthread_detach@GLIBC_2.4'
/tmp/buildroot-buildroot-linaro-udev/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so: undefined reference to `pthread_barrier_wait@GLIBC_
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2013.08-git-00447-g748b45a Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOSTARCH_NEEDS_IA32_LIBS=y
# BR2_arcle is not set
# BR2_arceb is not set
BR2_arm=y
# BR2_armeb is not set
diff --git a/magit.el b/magit.el
index 4b3c1fa..4d5a108 100644
--- a/magit.el
+++ b/magit.el
@@ -1075,13 +1075,29 @@ Read `completing-read' documentation for the meaning of the argument."
(defun magit-cmd-insert (cmd args)
(insert (magit-cmd-output cmd args)))
+(defun magit-perf-log (msg)
+ "Log a msg to the magit perf log"
(defun magit-perf-log (msg)
"Log a msg to the magit perf log"
(flet ((message (&rest args) (ignore)))
(with-temp-buffer
(insert msg)
(append-to-file (point-min)
(point-max)
"/tmp/magit-perf-log.txt"))))
(defun magit-cmd-output (cmd args)
diff --git a/magit.el b/magit.el
index 4b3c1fa..949365b 100644
--- a/magit.el
+++ b/magit.el
@@ -1076,12 +1076,19 @@ Read `completing-read' documentation for the meaning of the argument."
(insert (magit-cmd-output cmd args)))
(defun magit-cmd-output (cmd args)
- (with-output-to-string
- (with-current-buffer standard-output
diff --git a/magit.el b/magit.el
index 4b3c1fa..c03146c 100644
--- a/magit.el
+++ b/magit.el
@@ -1076,12 +1076,14 @@ Read `completing-read' documentation for the meaning of the argument."
(insert (magit-cmd-output cmd args)))
(defun magit-cmd-output (cmd args)
+ (message "no problem here")
(with-output-to-string