Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 11415138: Linux: create a library loader code generator for dlopen and use it for libpci. (Closed)

Created:
8 years ago by Paweł Hajdan Jr.
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, pam+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Linux: create a library loader code generator for dlopen and use it for libpci. BUG=162733 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170010

Patch Set 1 #

Patch Set 2 : hard dependency #

Patch Set 3 : gyp fix #

Total comments: 4

Patch Set 4 : fixes #

Total comments: 9

Patch Set 5 : another try #

Total comments: 20

Patch Set 6 : fixes #

Total comments: 14

Patch Set 7 : fixes #

Patch Set 8 : sorted #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -131 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M build/linux/system.gyp View 1 2 3 4 5 6 2 chunks +66 lines, -0 lines 0 comments Download
M content/content_gpu.gypi View 1 2 3 3 chunks +1 line, -20 lines 0 comments Download
M content/gpu/gpu_info_collector_linux.cc View 1 2 3 4 5 7 chunks +21 lines, -111 lines 0 comments Download
A tools/generate_library_loader/generate_library_loader.py View 1 2 3 4 5 6 1 chunk +248 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Paweł Hajdan Jr.
Please review: mark: gyp code and code generator in tools/ zmo: content/gpu piman: content/content_gpu.gypi OWNERS
8 years ago (2012-11-26 23:39:08 UTC) #1
piman
https://codereview.chromium.org/11415138/diff/5001/content/content_gpu.gypi File content/content_gpu.gypi (right): https://codereview.chromium.org/11415138/diff/5001/content/content_gpu.gypi#newcode53 content/content_gpu.gypi:53: '<!@(pkg-config --cflags libpci)', You need to go through the ...
8 years ago (2012-11-27 00:09:18 UTC) #2
Zhenyao Mo
content/gpu LGTM
8 years ago (2012-11-27 18:52:17 UTC) #3
Paweł Hajdan Jr.
PTAL https://codereview.chromium.org/11415138/diff/5001/content/content_gpu.gypi File content/content_gpu.gypi (right): https://codereview.chromium.org/11415138/diff/5001/content/content_gpu.gypi#newcode53 content/content_gpu.gypi:53: '<!@(pkg-config --cflags libpci)', On 2012/11/27 00:09:18, piman wrote: ...
8 years ago (2012-11-27 19:52:18 UTC) #4
Mark Mentovai
As cute as your tool is, I think having the loader files be generated makes ...
8 years ago (2012-11-27 20:10:20 UTC) #5
Mark Mentovai
https://codereview.chromium.org/11415138/diff/6004/content/gpu/gpu_info_collector_linux.cc File content/gpu/gpu_info_collector_linux.cc (right): https://codereview.chromium.org/11415138/diff/6004/content/gpu/gpu_info_collector_linux.cc#newcode179 content/gpu/gpu_info_collector_linux.cc:179: !libpci_loader.Load("libpci.so")) { In a world where libpci.so.3 isn’t present ...
8 years ago (2012-11-27 21:01:18 UTC) #6
Zhenyao Mo
https://codereview.chromium.org/11415138/diff/6004/content/gpu/gpu_info_collector_linux.cc File content/gpu/gpu_info_collector_linux.cc (right): https://codereview.chromium.org/11415138/diff/6004/content/gpu/gpu_info_collector_linux.cc#newcode179 content/gpu/gpu_info_collector_linux.cc:179: !libpci_loader.Load("libpci.so")) { On 2012/11/27 21:01:18, Mark Mentovai wrote: > ...
8 years ago (2012-11-27 21:18:50 UTC) #7
Mark Mentovai
I don’t understand. If it’s not available as libpci.so.3, it’s not binary-compatible, right?
8 years ago (2012-11-27 21:20:14 UTC) #8
Zhenyao Mo
On 2012/11/27 21:20:14, Mark Mentovai wrote: > I don’t understand. If it’s not available as ...
8 years ago (2012-11-27 21:27:32 UTC) #9
Mark Mentovai
Binary compatibility means that the binary interface remains the same. If a program linked against ...
8 years ago (2012-11-27 21:42:37 UTC) #10
Zhenyao Mo
On 2012/11/27 21:42:37, Mark Mentovai wrote: > Binary compatibility means that the binary interface remains ...
8 years ago (2012-11-27 21:54:15 UTC) #11
Mark Mentovai
That bug report claims Arch Linux was in use. https://www.archlinux.org/packages/core/i686/pciutils/files/ and https://www.archlinux.org/packages/core/x86_64/pciutils/files/ say that they ...
8 years ago (2012-11-27 21:58:37 UTC) #12
Paweł Hajdan Jr.
Thank you for a good review! https://codereview.chromium.org/11415138/diff/4014/build/linux/system.gyp File build/linux/system.gyp (right): https://codereview.chromium.org/11415138/diff/4014/build/linux/system.gyp#newcode286 build/linux/system.gyp:286: '<(SHARED_INTERMEDIATE_DIR)/libpci_loader/libpci_loader.cc', On 2012/11/27 ...
8 years ago (2012-11-27 22:27:24 UTC) #13
Mark Mentovai
Can I see the generated .h and .cc again now that you’ve made these changes?
8 years ago (2012-11-27 22:33:16 UTC) #14
Mark Mentovai
https://codereview.chromium.org/11415138/diff/4014/build/linux/system.gyp File build/linux/system.gyp (right): https://codereview.chromium.org/11415138/diff/4014/build/linux/system.gyp#newcode309 build/linux/system.gyp:309: 'hard_dependency': 1, Paweł Hajdan Jr. wrote: > On 2012/11/27 ...
8 years ago (2012-11-27 23:09:11 UTC) #15
Paweł Hajdan Jr.
piman: ping Mark, PTAL https://codereview.chromium.org/11415138/diff/6004/tools/generate_library_loader/generate_library_loader.py File tools/generate_library_loader/generate_library_loader.py (right): https://codereview.chromium.org/11415138/diff/6004/tools/generate_library_loader/generate_library_loader.py#newcode119 tools/generate_library_loader/generate_library_loader.py:119: this->%(function_name)s = &::%(function_name)s; On 2012/11/27 ...
8 years ago (2012-11-28 01:05:51 UTC) #16
piman
LGTM once other reviewers are happy
8 years ago (2012-11-28 01:22:59 UTC) #17
Mark Mentovai
> I was considering that too. Not sure how to provide those getters > though. ...
8 years ago (2012-11-28 04:29:12 UTC) #18
Paweł Hajdan Jr.
On 2012/11/28 04:29:12, Mark Mentovai wrote: > > I was considering that too. Not sure ...
8 years ago (2012-11-28 18:02:51 UTC) #19
Mark Mentovai
8 years ago (2012-11-28 18:33:01 UTC) #20
OK. LGTM. If you’re inclined to do further fixes, let’s do it in another
changelist.

Powered by Google App Engine
This is Rietveld 408576698