Maxime Chretien
2197d1f58c
find_compatible_dts.py: Reformat copyright notice
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
e1ea5a0b74
find_compatible_dts.py: Remove uneeded code
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
acc02a4f14
README: Update default and min threads number
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
ef88295bd8
apy.py: Quote ident when it's a DT compatible
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
bd93e4da67
update.py: Simplify threads handling
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
1bd4cd464a
update.py: Split updateComps in two threads
...
One thread that parse C and DT files and one that parse Documentations
files
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
6e2a37fef9
update.py: Update versions file tree in a separate thread
...
We don't need multiple threads for that as it is significantly faster
than defs, refs, docs and comps
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
ac170c8932
query.py: improve compatible string handling
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
76c68265d3
DT compatibles : Add a separate database for documentation
...
Idxes needs to be sorted in RefLists but documentation idxes are lower
than others and we added them latter in the RefList so there was a
problem. The easiest solution to solve that is to create a separate
database for documentations.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
6bb9d5f848
update.py: Improve comps database
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
e08ce8435c
web.py: Display incomplete informations instead of nothing
...
Sometimes due to indexing problems, some definitions are missing.
Or for DT compatible strings, they are used in dts files but not
in C files.
So instead of showing nothing, we show the informations we have and a
message saying that we have no definitions or references indexed.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
71e469f9af
update.py: fix some typos
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
52e918120d
query: return elements correctly
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
b7ee70d851
web.py : Fix some problems and tidy up if statements
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
84c463d815
filters/dtscomp* : Fix regex and conflict with idents
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
4a8c99b7e5
database: Enable db.comps only when needed
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
737f7094a1
find_compatible_dts.py : Fix problems with windows encoding
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
9e54d93594
projects: Enable DT compatible strings support for thoses who use DT
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
4dec3ee4e9
web : Add DT compatible strings support
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
40151b6b87
query.py: Add support for DT compatible strings
...
The output is the same as other queries and files are sorted this way:
Defined : C/CPP/ASM files, where the drivers define the compatible
string
Documented : Documentation files, where the compatible string is documented
Referenced : DTS/DTSI files, where the compatible string is used to bind
a driver to a piece of hardware
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
81fa361c54
database: Add support for dts compatible strings
...
They can be found in C, DTS and documentation files
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Maxime Chretien
73f354b3f2
Add compatible string parser for c, dts and bindings documentation files
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 15:37:59 +02:00
Michael Opdenacker
f1c7009919
Merge pull request #153 from MaximeChretien/fix-utils
...
index-all-repositories : Fetch all tags
2020-06-08 14:33:27 +02:00
Maxime Chretien
2e4d967cdb
index-all-repositories : Fetch all tags
...
This is needed for old linux versions
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-08 08:46:18 +02:00
Michael Opdenacker
100ef94665
Merge pull request #152 from MaximeChretien/db-creation-speed
...
Update.py : Improve threading
2020-06-05 10:30:51 +02:00
Michael Opdenacker
a58798c212
Merge pull request #149 from MaximeChretien/old-linux
...
Add support for old Linux versions
2020-06-05 08:10:37 +02:00
Michael Opdenacker
04136e690d
Merge pull request #151 from cxw42/issue-150
...
Detect function definitions in .S files
2020-06-05 08:02:54 +02:00
Christopher White
1a26548527
t/100: update to look in specific section [minor]
...
Use the {def} and {ref} features of run_produces_ok() to look for
regexes only in the correct sections. This improves the ability of the
test to detect regressions.
2020-06-04 08:35:38 -04:00
Christopher White
50b83a4376
Add ENTRY tests
2020-06-04 08:33:59 -04:00
Christopher White
9ebed89cbe
Added additional test files
...
- drivers/firmware/broadcom/bcm74xx_sprom.c is GPL 2+
- arch/arm/xen/hypercall.S, when distributed with Elixir, is
MIT-like.
2020-06-04 08:25:31 -04:00
Christopher White
359f89af53
Detect function definitions in .S files
...
Issue 150
2020-06-04 08:22:54 -04:00
Christopher White
85f83574cf
Added test of function definitions in .S files
...
Issue 150
2020-06-03 11:01:42 -04:00
Maxime Chretien
455b5b6766
update.py: fix import mistake
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-03 10:27:28 +02:00
Maxime Chretien
b92556655c
update.py: Update copyright notice
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-03 10:18:46 +02:00
Maxime Chretien
f6838a3889
README & scripts : Update for threads argument of update.py
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-03 10:07:09 +02:00
Maxime Chretien
8b29bccfb3
update.py: Pass number of threads as a cmdline argument
...
The threads are then distributed among the functions using a specific
rule (see code comments)
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-03 10:06:58 +02:00
Maxime Chretien
5626c39546
Add support for old Linux versions
...
This add support for linux 0.01 to 2.6.12-rc1
Some versions are missing like 0.02 to 0.10 (not included) but it looks like
they have been deleted over time.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 13:46:14 +02:00
Maxime Chretien
c72f5292ef
update.py : Improve flexibility and use 4 threads for refs
...
It's now easier to change the number of threads for each functions
Refs are always what remains at the end so more threads will be helpfull
to finish faster
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 13:46:03 +02:00
Maxime Chretien
9ff3cff564
update.py: Use 7 threads and reduce locking
...
Use 7 threads to do more things at once and spread the load
Lock file before the loop so we don't lock and unlock all the time
This will hopefully reduce database creation time
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 13:46:03 +02:00
Michael Opdenacker
b487a73d25
Merge pull request #148 from MaximeChretien/members
...
Enable struct, enum and union members indexing
2020-06-02 11:11:01 +02:00
Maxime Chretien
a69230f986
lib.py: Add int, long and char to the blacklist
...
They are sometimes seen as struct members here :
https://elixir.bootlin.com/linux/latest/source/arch/m68k/include/asm/amigahw.h#L278
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 10:18:55 +02:00
Maxime Chretien
8fd2bc4700
script.sh: Index struct, enum and union members in C files
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 10:18:55 +02:00
Michael Opdenacker
70a4151871
Merge pull request #143 from MaximeChretien/improve-ui
...
Improve Elixir UI
2020-05-28 12:09:32 +02:00
Maxime Chretien
2ae95c8efd
http/style.css: Center select text
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 12:02:34 +02:00
Maxime Chretien
5e287d9a7e
templates/layout.html: Add tooltip on search select element
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:46:05 +02:00
Maxime Chretien
0385f29296
web.py/query.py: Add option to search identifiers in all families
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:37:17 +02:00
Maxime Chretien
9dd20eab54
http/style.css: Improve select colors
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:02:29 +02:00
Michael Opdenacker
72e34b5ec2
Merge pull request #140 from MaximeChretien/ctags-repo
...
README: Update ctags link to refer to official repo
2020-05-27 10:44:36 +02:00
Michael Opdenacker
fb8e567c34
Merge pull request #141 from MaximeChretien/fix-travis
...
travis: Update ctags package name
2020-05-27 10:43:48 +02:00
Maxime Chretien
ce9a73f05e
travis: Update ctags package name
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-27 10:27:50 +02:00