Skip to content

Instantly share code, notes, and snippets.

View ds-hwang's full-sized avatar

Dongseong Hwang ds-hwang

View GitHub Profile
@ds-hwang
ds-hwang / gist:ceb2a0a8e42ad79db39b
Last active August 29, 2015 14:22
interrupts of vgem vs intel drm
VGEM case
localhost ~ # itop -a
INT NAME RATE MAX
0 [ 0 0 ] 0 Ints/s (max: 0)
1 [ 51 26 ] 0 Ints/s (max: 0)
8 [ 0 0 ] 0 Ints/s (max: 0)
9 [ 728 224 ] 0 Ints/s (max: 25)
12 [4008 1144 ] 0 Ints/s (max: 0)
16 [1858 5559 ] 6 Ints/s (max: 31)
18 [ 0 0 ] 0 Ints/s (max: 0)
@ds-hwang
ds-hwang / gist:d7970b049793778571b5
Created May 12, 2015 16:56
vgem_fb_test buildable
/*
* Copyright 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
@ds-hwang
ds-hwang / gist:7565587062a67de02ae2
Created April 8, 2015 11:26
drm intel crash: intel_do_flush_locked failed: Invalid argument
[4256:4256:0408/131841:10978434736:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[4256:4268:0408/131841:10978454212:ERROR:gpu_lock.cc(22)] Failed to open lock file '/run/frecon': No such file or directory
[4256:4256:0408/131841:10978494344:ERROR:proxy_service.cc(1506)] ProxyConfigService for ChromeOS should be created in profile_io_data.cc::CreateProxyConfigService and this should be used only for examples.
[4256:4256:0408/131841:10978497602:ERROR:fake_shill_device_client.cc(34)] Shill Error for: /device/cellular1: org.chromium.flimflam.Error.InvalidArguments : Failed
[4256:4268:0408/131841:10978606928:ERROR:gl_context_egl.cc(194)] eglSwapInterval failed with error EGL_SUCCESS
[4280:4280:0408/131842:10978943307:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[4289:4289:0408/131842:10979147344:ERROR:renderer_main.cc(200)] Running without renderer san
[8280:8280:0330/193141:281075820668:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[8280:8280:0330/193141:281075877604:ERROR:proxy_service.cc(1456)] ProxyConfigService for ChromeOS should be created in profile_io_data.cc::CreateProxyConfigService and this should be used only for examples.
[8292:8292:0330/193141:281076237556:ERROR:gpu_lock.cc(22)] Failed to open lock file '/run/frecon': No such file or directory
[8292:8292:0330/193142:281076393394:ERROR:gl_context_egl.cc(194)] eglSwapInterval failed with error EGL_SUCCESS
[8310:8310:0330/193142:281076443675:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[8320:8320:0330/193142:281076645316:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[8280:8288:0330/193142:281076662865:WARNING:backend_impl.cc(1778)] Destroying invalid entry.
bo_create: buf 57 (chromium-gpu-memory-buffer) 262144b
bo_cr
@ds-hwang
ds-hwang / gist:8d6173b3ed43dff734e4
Created March 2, 2015 08:14
my yocto conf for chromium
diff --git a/bblayers.conf b/bblayers.conf
index 4513d30..1ef46c7 100644
--- a/bblayers.conf
+++ b/bblayers.conf
@@ -9,6 +9,9 @@ BBLAYERS ?= " \
/d/workspace/yocto/poky/meta \
/d/workspace/yocto/poky/meta-yocto \
/d/workspace/yocto/poky/meta-yocto-bsp \
+ /d/workspace/yocto/meta-browser \
+ /d/workspace/yocto/meta-openembedded/meta-oe \
@ds-hwang
ds-hwang / gist:7ee43f9dffe3ba270be3
Created February 17, 2015 10:32
embedded gbm error log
[29199:29199:0217/122203:325687003945:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[29199:29199:0217/122203:325687012361:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29199:29206:0217/122203:325687061119:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29199:29206:0217/122203:325687061279:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29199:29206:0217/122203:325687061299:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Permission denied
[29199:29206:0217/122203:325687061315:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event1: Permission denied
[29199:29206:0217/122203:325687061331:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event6: Permissio
@ds-hwang
ds-hwang / gist:63cedc82019320584a0d
Last active August 29, 2015 14:15
chromeos gbm error log
[29053:29053:0217/122136:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Failed to create secure directory (/run/user/1000/pulse): Permission denied
[29053:29053:0217/122136:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29053:29064:0217/122136:ERROR:owner_key_util_impl.cc(27)] Could not get size of /home/dshwang/.config/chromium/stub_owner.key
[29053:29053:0217/122136:ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/*
LaunchProcess: failed to execvp:
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29053:29062:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Perm

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing

@ds-hwang
ds-hwang / gist:26e765892240aeb6e56b
Last active August 29, 2015 14:03
Data and code to measure CopyTextureChromium vs CopyTexImage2D
Measure time of coping texture by 1000x times between CopyTextureChromium (i.e. GL Drawing) and CopyTexImage2D
Linux (Intel IvyBridge i7-3520M)
GL Drawing TexImage2D
14060 5107
14110 5568
14837 5614
14963 5636
14997 5713
15015 5726
export GYP_GENERATOR_FLAGS="output_dir=out_android"
export GYP_DEFINES='werror= dcheck_always_on=1 OS=android fastbuild=1 clang=1 component=shared_library'
ninja -C out_android/Release $option chrome_shell_apk libwebviewchromium android_webview_apk content_shell_apk blink_tests