Skip to content

Instantly share code, notes, and snippets.

@syndtr
syndtr / gist:30cbcc15a22a06c0b0dc
Created November 20, 2014 16:14
table checksum mismatch
=============== Nov 20, 2014 (WIB) ===============
11:24:25.124771 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
11:24:25.125021 db@open opening
11:24:25.125610 db@janitor F·2 G·0
11:24:25.125664 db@open done T·627.373us
11:24:25.415954 mem@flush N·20000 S·5MiB
11:24:25.489430 mem@flush created L2@3 N·20000 S·5MiB "\x01\x00\f..\x00\x00\x00,v8654":"\x02\xff\xe9..\x00\x00\x00,v17455"
11:24:25.489525 mem@flush committed F·1 T·73.506306ms
11:24:25.490097 journal@remove removed @1
11:24:25.715249 mem@flush N·20000 S·5MiB
@syndtr
syndtr / gist:a97bef48b12df8181d6b
Created November 20, 2014 04:07
corrupted ikey
This file has been truncated, but you can view the full file.
--- FAIL: TestDb_GoleveldbIssue72and83 (9.21 seconds)
storage_test.go:495: I: storage created: /tmp/goleveldb-test10000801300
db_test.go:79: opening DB
storage_test.go:386: I: storage locked
storage_test.go:393: L: log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
storage_test.go:411: I: get files, type=0xf count=0
storage_test.go:229: I: file created, num=0 type=manifest
storage_test.go:441: I: set manifest, num=0
storage_test.go:393: L: db@open opening
storage_test.go:411: I: get files, type=0x2 count=0
@syndtr
syndtr / test1
Created October 12, 2014 01:51
goleveldb write gctrace
gc1(1): 6+0+1589+0 us, 0 -> 0 MB, 18 (19-1) objects, 0/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 1+9+359+0 us, 0 -> 0 MB, 367 (368-1) objects, 13/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+285+0 us, 0 -> 0 MB, 440 (511-71) objects, 37/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 1+0+535+0 us, 0 -> 0 MB, 1574 (1718-144) objects, 45/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 1+0+327+0 us, 0 -> 4 MB, 559 (1723-1164) objects, 59/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 1+0+223+0 us, 4 -> 8 MB, 92262 (104173-11911) objects, 59/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 1+0+217+0 us, 5 -> 10 MB, 102245 (217467-115222) objects, 356/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 1+0+234+0 us, 6 -> 13 MB, 142533 (375734-233201) objects, 388/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc9(1): 1+0+249+0 us, 6 -> 15 MB, 140746 (531874-391128) objects, 513/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yiel
@syndtr
syndtr / android-pm.patch
Created March 12, 2012 08:24
Android PM driver. It is utilize linux wakeup_source and also provide early suspend like implementation.
diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig
index 05f1105..b18990a 100644
--- a/drivers/staging/android/Kconfig
+++ b/drivers/staging/android/Kconfig
@@ -81,6 +81,13 @@ config ANDROID_INTF_ALARM_DEV
elapsed realtime, and a non-wakeup alarm on the monotonic clock.
Also exports the alarm interface to user-space.
+config ANDROID_PM
+ bool "Android PM support"
@syndtr
syndtr / gist:1339406
Created November 4, 2011 14:13
mxt224 mt protocol fix
diff --git a/drivers/input/touchscreen/mxt224.c b/drivers/input/touchscreen/mxt224.c
index 07143b1..47766bf 100644
--- a/drivers/input/touchscreen/mxt224.c
+++ b/drivers/input/touchscreen/mxt224.c
@@ -59,6 +59,7 @@ struct mxt224_data {
struct input_dev *input_dev;
struct early_suspend early_suspend;
u32 finger_mask;
+ u32 touch_mask;
int gpio_read_done;
@syndtr
syndtr / dmesg.log
Created September 24, 2011 06:46
i2c won't wakeup after sleeping when a phone call received (on samsung fascinate)
s5pv210_setup_sdhci_cfg_card MMC_SD card inderted
s5pv210_setup_sdhci_cfg_card MMC_SD card inderted
<6>wakeup wake lock: wlan_wake
<6>kr3dh: <trace> kr3dh_resume()
writing odr value 0xa0
<6>fsa9480 7-0025: dev1: 0x8, dev2: 0x0
<6>s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[ wm8994_samsung.c (wm8994_resume,3353) ] wm8994_resume..
<6>PM: resume of devices complete after 336.659 msecs
<6>[ wm8994_samsung.c (wm8994_resume,3355) ] ------WM8994 Revision = [3]-------